Retrieve realtime 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.
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.
require 'gosquared' gs = Gosquared::RubyLibrary.new('demo','GSN-106863-S') gs.now.engagement gs.now.fetch
Live Responseundefined undefined
Your API Key is not authorised for this endpoint
Please fill in the required fields in the Query Builder