Engagement
Retrieve realtime engagement
GETnow/engagement
Retrieves engagement information of currently online users.
Time on site
The timeOnSite object contains breakdown and average time on site information. The breakdown is an object where each key is the time in seconds a visitor has remained on the site, and the value is the number of visitors in that group. The average key contains a float for the average number of seconds all visitors currently online have remained on the site.
Visit Depth
The visitDepth object contains breakdown and average visit depth information. Visit depth is the total number of pages visited by visitors on a website.
Much like the timeOnSite object, it contains a breakdown object where each key is the total visit depth, and the value is the number of visitors in that group. The average key contains the average visit depth across all visitors currently online on the website.
Example Request
require_once('gosquared-php-sdk/main.php');
$GS = new GoSquared(array(
'site_token' => 'GSN-106863-S',
'api_key' => 'demo'
));
$result = $GS->now->engagement();
Live Responseundefined undefined
Your API Key is not authorised for this endpoint
Please fill in the required fields in the Query Builder