Follow

Javascript Analytics

Javascript Analytics

As the background snapshotter causes pages to be generated, you need to make sure that you're only sending analytics tags on real views. We do this by specifying a snapshot finished callback which is only triggered on “real” views.

<meta name="callbackWhenSnapshotFinished"content="startMyTracking()"/>
function startMyTracking(){
   if(navigator.onLine){
     // send your ad server call
   }
 }

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk