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 load the Live Chat widget if you have Chat turned on in your Project Settings.

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.