The properties()
method sets custom properties for all new events.
Syntax
properties(eventProperties)
Parameters
eventProperties
- Serializable
Object
that will be added to all new events.
Return value
void
Description
All Smartlook events have some built-in properties. Sometimes it's useful to extend them.
Examples
Filter by package
If you want to filter something based on the package your customer uses, add something like this.
Smartlook.properties({ package: 'premium' })