Tracker (Analytics Script)


Trackers are client- or server-side libraries which track user behaviour by sending events.


Many browsers stop executing JavaScript as soon as the page starts unloading, therefore measuring outbound links and forms is difficult.

One solution to this problem is to use:

  • the navigator.sendBeacon() asynchronous method.
  • or for browsers that don't support the beacon transport method, you have to postpone navigating to the next page until the event has finished sending. The Knowing when a hit has been sent section of the guide on Sending data to Google Analytics explains how to do this in detail.


Execution Time

The script in a web page should be run in async mode to run early

Documentation / Reference

Powered by ComboStrap