Track an event
GoSquared events are a versatile way of tracking anything that is happening on your site or app. User actions, application errors, state transitions, and activity of all kinds can be tracked as an event.
Popular events are aggregated by name in the Trends dashboard.
You can search and filter by the top level event name in People CRM. Optionally, you can include extra data in the event body. However, event body data is not currently searchable, but it can be viewed on a per profile basis in People CRM.
How many unique event types/names can I track?
Take some time to think about the name you give to your events. You can name them anything you like, but it's best to use a clear, concise name.
Each GoSquared project can track up to 1000 custom events. Above this limit, events with new names will be ignored.
The anonymous visitor ID that this action is associated with.
A valid ISO 8601 timestamp of when this event happened
IP address of the visitor. Used to detect the visitor's location
ISO 8601 timestamp of when this visitor/person last did a pageview
The People person ID that this action is associated with.
If the identifier used is an email it should be prefixed with
$response = $GS->track_event('Event Name', array( // store extra data along with the event 'additional' => 'data' )); // Associate event with a user $person = $GS->Person('user-id'); $result = $person->track_event('Event Name', array( 'additional' => 'data' ));
Live Responseundefined undefined
Your API Key is not authorised for this endpoint