Tracking Events and Properties Naming Conventions and Best Practice

Tracking has 2 parts, the event and the properties of the event and captured together will tell you what users are doing.

Data Step 1

Event Naming Best Practice: Object & Action in past tense with "Title Casing" and spacing, eg "Product Added" where Product is the Object and Added is the Action

Data Step 2

Event Property: Be consistency, use nouns and use snake_case (just stay that way), and do not nest properties, most downstream providers can use nested properties. This is what tells us what people are doing on the event. 

Data Step 3

As a further clarity and to avoid having hundreds of events, the event names should be generalized and then the properties should be used for specificity, else you could end up with lets say 

  • Product Added from Contact Page
  • Product Added from List Page
  • Product Added from Recommendation

Or  just "Product Added", with a property of say "source"


Think an example like this: 

Event Name

"Product Added"

Property

{

    "product_id" : "1AB", 

    "price" : "99.00", 

    "source" : "Product Page"

}



Comments

Popular posts from this blog

cf_sql_timestamp vs cf_sql_date vs getdate()

Global SQL Procedure, System Objects and sp_ms_marksystemobject

Ghost Records, Card Recon and PCI Compliance