JavaScript Tracking Code

The JavaScript Analytics Code is the easiest way to start tracking data with GoSquared. After installing the code on your site, it will automatically start tracking pageviews and browser information from any visitors on your site.

The same code is also used to power live chat if you have Assistant turned on in Settings > Current Project > Assistant.

This base JavaScript snippet can be extended to enable these GoSquared features:

If you additionally want to use GoSquared in your backend infrastructure or on other platforms, then see the Tracking API where you can use our HTTP API or one of our client libraries.