track()
method accepts three arguments. The first is the name of the event you wish to track. The second is any arbitrary metadata that you want to associate with the event. Finally, you can send a context object. This allows the event to be associated with a particular user that you have identified or a session created by the Lucky Orange browser library.identify()
. You must provide a unique ID that will then become an alias for a visitor created internally by Lucky Orange. If you also use identify()
in the browser tracking code, the same user's behavior will be combined into one profile.