For the complete documentation index, see llms.txt.

Who is included in the analysis?

Last updated View as MarkdownSet up with agents

A visitor is included in the analysis only when the tag is called, the session matches the sampling rate, and the user has not been excluded by consent or bot detection.

The tag installation is completely on your end: you can install it either by "hard coding" or by using a Tag Management System (TMS).

  • Make sure to call the Tag in every page.
  • Call it as soon as possible; It only takes a few seconds to lose a user.

(2) Pageviews and transactions sending conditions

Section titled (2) Pageviews and transactions sending conditions

As soon as the tag is called, the pageview (or transaction) is sent if all conditions below are fulfilled:

  • The tag configuration is active: CS_CONF.status is 1.
  • The current domain is allowed: it's listed in CS_CONF.hostnames. On a subdomain, also check that CS_CONF.allowSubdomains is 1.
  • The visitor has cookies and JavaScript enabled and uses a supported browser.
  • The visitor isn't excluded by the _cs_ex cookie.
  • If cross-domain tracking uses iframes hosted on your domains, each domain has a csxd.<domain> DNS entry, set up with Contentsquare.

The _cs_ex cookie appears in 2 cases:

  • If the tag does not collect 100% of visits, visitors who were not drawn will be excluded by the cookie. The percentage of visitors tracked is specified in CS_CONF.sampleRate.
  • If Contentsquare A/B testing tool's "Preview" mode is used, this cookie is automatically used.

To force exclusion, you must add a _cs_ex cookie with the value 1.

(3) Accounting conditions of pageviews and transactions

Section titled (3) Accounting conditions of pageviews and transactions

The pageview (or transaction) received is stored in our database with the following conditions:

  • The visitor does not have an opt-out cookie.

  • The user's IP address is not in our exclusion list for this Contentsquare account (for more info on IP Addresses see dedicated section).

  • We did not identified the user as a bot (the assumption can come from the IP address used, the browser, the behavior...). This can be applied to 2% of the visitors but sometimes more.

Differences between two analytics can be due to implementation or data issues.

  • The Tag may not be called on the same pages (example: omitted subdomain, 404 page missed).

  • The Tag is called later or earlier (each second may increase the gap by about 3 points).

  • Bot exclusion rules differ between tools or they are not shared.

  • Calculation methods for session, time spent, and bounce rate are different between tools. More information on the Help Center ↗.

  • The time zone impacts daily displayed data (Contentsquare data are saved in UTC).

  • Compatible browsers may be different from one tool to another.