Skip to content

Conventions for events and properties

Goal of this document is to set the rules and format for creating events and their properties.

  • all lowercase
  • snake_case

Example:

  • LIKE_THIS ❌
  • LikeThis ❌
  • likethis ❌
  • like_this ✅

Where:

  • Verb is one of 5:

    • viewed
    • clicked
    • generated
    • loaded
    • completed

Let’s see if we need more later but right now let’s try and restrict to those 5.

Examples

  • loaded_gift_button
  • seen_gift_button
  • generated_gift_link

Same as events: lowercase, snakecase

  • props like user_id, partner_name should be string

  • prices should be int

  • when several value, simply add ‘list’ at the end of the property, and should be a list / array, for example:

    • cta_copy = ‘Buy Episode’ → cta_copy_list = [‘Buy Episode’, ‘Buy Season’]