Mobile: How To Add API Based Goals

Updated on June 27, 2018
Download PDF

Note: API Based Goals must both be added in the Mobile Console and your developers must add them to the app’s code using the WalkMe Mobile SDK API.

Steps For Adding API Based Goals in the Mobile Console

  1. In the Mobile Console, click SETTINGS > APP SETTINGS.
  2. Select the GOALS tab and click the + GOAL button.
  3. Click API based goal.
  4. Enter a name in the Goal Name field.
  5. Click ADD ATTRIBUTE once for each attribute you’d like to add.
  6. Give each attribute a name and type (options are TextNumber and Boolean).
  7. The Goal and attribute names should match exactly those that your developers set in the API call to the WalkMe Mobile SDK.

Steps For Adding the Goal 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")
})

Steps For Adding the Goal API in the iOS WalkMe Mobile SDK

See the below usage example:
[ABBI sendGoal:@"Bought a blue sword" withProperites:nil]
[ABBI sendGoal:@"Bought a blue sword" withProperites:@{@"item_name", @"unlimited_calls"}]

Was this article helpful?

Related Articles