$_token
$_token : string
Provides an API to track events on Mixpanel
$_consumer : \ConsumerStrategies_AbstractConsumer
identify(string|integer $user_id, [optional] string|integer $anon_id)
Identify the user you want to associate to tracked events. The $anon_id must be UUID v4 format and not already merged to an $identified_id. All identify calls with a new and valid $anon_id will trigger a track $identify event, and merge to the $identified_id.
string|integer | $user_id | |
string|integer | $anon_id |
createAlias(string|integer $distinct_id, string|integer $alias) : array
An alias to be merged with the distinct_id. Each alias can only map to one distinct_id. This is helpful when you want to associate a generated id (such as a session id) to a user id or username.
Because aliasing can be extremely vulnerable to race conditions and ordering issues, we'll make a synchronous call directly to Mixpanel when this method is called. If it fails we'll throw an Exception as subsequent events are likely to be incorrectly tracked.
string|integer | $distinct_id | |
string|integer | $alias |
$msg
_getConsumer() : \ConsumerStrategies_AbstractConsumer
Given a strategy type, return a new PersistenceStrategy object