Ping
Ping the tracking session
POSTtracking/ping
In order to know that a user is still on your website, a ping must be received at least once every 30 seconds. If no ping is received then the session will be timed out.
Note: This function is primarily useful for building custom libraries or advanced tracking processes. In the vast majority of cases the library for your language or the tracking code will manage pinging GoSquared for you.
POST Body
visitor_id | StringRequired The anonymous visitor ID that this action is associated with. | ||||||||||||
page | ObjectRequired | ||||||||||||
| |||||||||||||
engaged_time | NumberDefault Value: Amount of time (in milliseconds) spent actively interacting with the page since the last ping | ||||||||||||
scroll | Object | ||||||||||||
| |||||||||||||
document | Object | ||||||||||||
| |||||||||||||
viewport | Object | ||||||||||||
|
Example Request
The PHP library does not support this function at this time
Live Responseundefined undefined
Your API Key is not authorised for this endpoint