The Analytics code can be configured to suite your tracking needs.

Most commonly developers need to set trackLocal to true if you want to test any GoSquared features in a local dev environment.

Options

Option Description Type Default
anonymizeIP Setting this value to true will prevent the visitors' IP address from being tracked. Boolean false
cookieDomain By default, cookieDomain will be the current domain (including subdomain). This means that IDs will not be shared across subdomains. Set this to .your-domain.com to enable accurate cross-subdomain tracking. String Not set (current domain)
useCookies Set to false to disable usage of cookies in the tracker (for example, if your site is subject to strict cookie legislation). This will mean that certain parts of GoSquared will be inaccurate. Boolean true
referrer Use this option to override the value of the page's referring URL. This is useful if you know the source of the pageview via another tracking system. String document.referrer
trackHash Whether to track hashes in the page URL, for example /home#my-hash will, by default, be tracked as /home. Boolean false
trackLocal Whether to track data and load Live Chat on local pages/sites (using the file:// protocol, or on localhost). This helps prevent local development from polluting your stats. Boolean false
trackParams Whether to track URL querystring parameters, for example /home?my=query&string=true will be tracked as /home if this is set to false. Boolean true