How It Works Edit the file on GitHub

Table of Contents

The Tracking Script

The source of the tracking script is hosted on GitHub.

The tracking script, registers a new global function named sa, and then asynchronously loads the analytics.js library onto the page.

The sa global function is the main way you interact with the Analytics library. It accepts a sequence of parameters, that represent:

The API category
The Command of the API category you want to be executed
The Data to be reported by the Command

Categories and Commands are case-sensitive.