Skip to main content

Simple behaviour

Simple behaviours are fundamental to the platform's functionality. They enable you to track user actions within Mambo using a single piece of information called the "verb".

Understanding verbs

A verb uniquely identifies a behaviour and must be unique across all behaviours in your site. It represents the specific action a user performs within your application.

Common verb examples

In natural language, these actions might be:

  • Completing a course
  • Closing a sale
  • Making a purchase
  • Completing a task
  • Taking a quiz
  • Answering a call
  • Liking a post

Verb formatting rules

The "verb" field only accepts lowercase letters, numbers and underscores. Here are the properly formatted versions of the above examples:

  • complete_course
  • close_sale
  • purchase
  • complete_task
  • take_quiz
  • answer_call
  • like_post

Tracking behaviours

To track a behaviour, you need to create activities and send two essential pieces of information to Mambo:

  • The user's UUID
  • The behaviour's verb

Best practices

When creating verbs:

  • Use descriptive names that clearly indicate the action
  • Keep names concise but meaningful
  • Use underscores to separate words
  • Maintain consistency in naming conventions
  • Document the purpose of each verb

Implementation steps

  1. Define your simple behaviour
  2. Create the necessary activities
  3. Implement tracking in your application
  4. Monitor user engagement