Skip to end of metadata
Go to start of metadata

Events

To use the additional parameters of the custom events for targeting purposes, they must formatted as a valid json string. Use a timestamp to represent a date.

If you want to track a specific event :


Where 1000 is the eventId.

Analytics

You can track specific events like “Add to Cart”, “Purchase” and “Lead”. Here is how to use each of these events.

Lead 

Add to Cart

First of all you will need to create an Item using the AccengageItem class.

Currency should be a valid 3 letters ISO4217 currency (EUR,USD,..) and the 2 last arguments are price and quantity

Now you just have to add it to the Cart.

Purchase

Update Device Info

You can create a device profile for each device in order to qualify the profile (for example, registering whether the user is opt in for or out of some categories of notifications).

A device profile is a set of key/value that are uploaded to Accengage server. In order to update information about a device profile, add the following lines to your code:

Where listUdi is a List<KeyValuePair<string, string>> containign all the informations to update.

Views

You can identify each views of your application that the SDK can refer to using.

where MyView is the name of your view.

iOS

This method must take place in the viewDidAppear and is to be used with TrackScreenDismiss in the viewDidDisappear. Look the Documentation.

  • No labels