Class ParseAnalytics - Handles sending app-open and custom analytics events.
author |
Fosco Marotto [email protected] |
---|---|
package |
Parse |
_toSaveJSON(array $data) : string
array
Data to encode
string
track(string $name, array $dimensions = array()) : mixed
Parse will store a data point at the time of invocation with the given event name.
Dimensions will allow segmentation of the occurrences of this custom event. Keys and values should be strings, and will throw otherwise.
To track a user signup along with additional metadata, consider the following:
$dimensions = array( 'gender' => 'm', 'source' => 'web', 'dayType' => 'weekend' ); ParseAnalytics::track('signup', $dimensions);
There is a default limit of 4 dimensions per event tracked.
Throws |
|
---|
string
The name of the custom event
array
The dictionary of segment information
mixed