Skip to main content

Behaviour activity

The behaviour activity is used to track the behaviours your users are performing. Creating this activity will result in the points, rewards, KPIs and leaderboards associated with the behaviour being assigned to the user, if all the anti-gaming criteria are met.

All the behaviours which match the verb and metadata sent with the activity will be awarded to the user. As an example, consider the following behaviours:

  • Purchase (simple)
  • Purchase brand=Sony (flexible)
  • Purchase brand=Sony category=Laptop (flexible)
  • Purchase brand=Sony category=TV (flexible)

If the user purchases a Sony TV and a Sony Laptop in one purchase we would create an activity which contained the verb "purchase" and the meta data "brand=[Sony]" and "category=[TV,Laptop]". This would match all four of the behaviours above and the points associated to each one would be awarded to the user.

Example

Here's an example of a behaviour activity data that tracks a purchase with multiple products:

JSON

In this example:

  • The user is identified by the email 'john@doe.com'
  • The verb "purchase" will match behaviours configured with this verb
  • The metadata contains attributes that match flexible behaviours
  • Optional adhocPoints can be included to award additional points beyond those defined in the matched behaviours