Mobile: How To Add API Based Tracked Events (previously Goals)
Last Updated November 10, 2022
Steps For Adding API Based Tracked Events in the Mobile Console
- In the Mobile Console, click TRACKED EVENTS;
- Click the + TRACKED EVENT button;
- Click API based tracked event;
- Enter a name in the Event Name field;
- Click ADD ATTRIBUTE once for each attribute you'd like to add;
- Give each attribute a name and type (options are Text, Number and Boolean);
- The Event and attribute names should match exactly those that your developers set in the API call to the WalkMe Mobile SDK.
Steps For Adding the Event API in the Android WalkMe Mobile SDK
See the below usage example:
ABBI.sendGoal("Bought a blue sword", null) ABBI.sendGoal("Bought a blue sword", new HashMap()<String, String{ put("item_name", "unlimited_calls") })
Adding the Event API in the iOS WalkMe Mobile SDK
See the below usage example:
[ABBI sendTrackedEvent:@"Bought a blue sword" withProperites:nil] [ABBI sendTrackedEvent:@"Bought a blue sword" withProperites:@{@"item_name", @"unlimited_calls"}]
Was this article helpful?
Yes
No
Thanks for your feedback!