virtualPage
function should be called. This function is specifically designed to register dynamic page change events with our tracker, and can be attached to click/swipe events, or to a pixel that is used to trigger content changes. Best practice is to ensure that the virtualPage
function is called each and every time that your website serves up new changes to users dynamically.virtualPage
call. virtualPage
should never be called when a user initially arrives on a page from an external source, and should only be called when a user navigates to subsequent pages without causing the DOM to be refreshed. The initial pageview event will be captured instead by our tracker, chartbeat.js.