If you want to track a specific event you can add to your code:
Where 1000 is your eventID and “test” is an argument of this event.
You can track specifics events like “Add to Cart”, “Purchase” and “Lead”. Here is how to use each of these events.
Send your Lead to A4S Servers:
Add to Cart
First, you will need to create an item to track like this one:
Now you just need to specify the cart id and give us the item:
You have 2 ways to send a Purchase tracking, with or without Items.
You can create a Purchase to track like this one:
Note: Currency should be a valid 3 letters ISO4217 currency (EUR,USD,..) and the last argument is the total price of this purchase.
If you want to add items belonging to this purchase, you can:
Note: Don't forget to create each “Item” at first and add them to an “IEnumerable<Item>”.
Update Device Information
You can have a device profile for each device in order to qualify the profile.For example, this will allow the user to opt in for and opt out of some categories of notifications. 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:
Replace “key” and “value” with the segmentation key name and the value you want to set.
The keys and values must match Accengage user information field names and values to allow information to be correctly updated.
You can send a date using UpdateUserField method.
Your date has to be in the following format: “yyyy-MM-dd HH:mm:ss zzz”
Please use the code below to format your date before sending it to Accengage servers:
Identify each Page
By default, the name of each page is the class name i.e. MainPage for MainPage.xaml.
You can customize this page name or set different name depending of the place in the XAML Page. For that, you can use this:
Where your-view is the name of your view.