Tracking Events
Trigger user actions in your Flutter app with Antsomi SDK. Track events, understand user journeys & leverage insights for data-driven marketing.
Antsomi offers two distinct methods to facilitate event tracking within your application. The first method, trackScreen()
, should be triggered whenever your user interacts with any screen within your application. The second method, track()
, serves as a comprehensive solution for tracking various events, encompassing both System Events and Custom Events, providing you with a unified approach to monitor user interactions and behaviors effectively.
Tracking Event Screen View
Screen View events can be effortlessly tracked using the AntsomiSDK's trackScreen()
method in your Flutter application. This method allows you to monitor user interactions with various screens and gather valuable insights.
Tracking Other Events
Other events can be effortlessly tracked using the AntsomiSDK's track()
method within your Flutter application. This method allows you to monitor user interactions and events beyond screen views, providing you with comprehensive insights into user behavior. Additionally, you have the flexibility to include associated data as Event Attributes with each event, enriching your Antsomi dashboard with valuable contextual information.
For example, the add-to-cart event can be tracked by below:
About the setter objectProps()
and eventProps()
objectProps()
and eventProps()
The
objectProps()
setter accepts a map as its parameter, where the key represents the internal code of the CDP Business Object, and the value is another map. This inner map contains key-value pairs, with the key being the internal code of the object attribute and the value representing the attribute value.You can include multiple objects in the setter as needed, but it's important to note that only the object registered in the CDP365 event settings can have its value updated through the event. Any other objects will be excluded from our backend processing.
The
customerProps()
setter functions uniquely; when invoked, it automatically attaches customer data to the event data. This attachment persists until you call theremoveCustomer()
method.Similarly, the
eventProps()
setter operates in a comparable manner. However, it accepts a parameter in the form of a map, where the key corresponds to the Event Attribute's internal code, and the value denotes the attribute value. As with theobjectProps()
setter, you can include multiple attributes as needed. Keep in mind that only the attributes registered in the system can be received in CDP.
For a sample event tracking template, you can refer to one of the links below:
Last updated