What Behaviour Analysis Collects

Learn what the behaviour analysis switch collects, what the visitor ID adds, what is never collected, how long the data is kept and what it costs the page.

3 min read


Behaviour analysis is off by default on every website. Nothing described here is collected until an Admin or Owner turns it on in the website's settings, under Tracking & privacy.

What is collected

With behaviour analysis on, the Pertento script reports, for each visit:

  • page views and navigation, with the address masked in the visitor's browser before it is sent;
  • JavaScript errors, reduced to a fingerprint of the message;
  • approximate web vitals (LCP, INP and CLS), measured by the script itself;
  • scroll depth, as whether the page view reached 25, 50, 75 and 100 percent;
  • dead clicks and rage clicks: clicks that change nothing, and several quick clicks in one place. For a button or link, its label is kept, cleaned and cut to 40 characters;
  • time on the page, as the time it was visible and the time the visitor was active on it;
  • elements in view: which headings, sections, forms and buttons were on screen for at least a second, identified by their position in the page, never by their text;
  • forms started and submitted, never what was typed;
  • where the visit came from: the traffic source, the referring domain, the UTM source, medium and campaign, and the browser's language;
  • the device type, and which experiment variants the visitor saw.

What is never collected

  • No cookies.
  • No values typed into a field, and no page text.
  • No IP address is stored.
  • No session recordings.

Sessions and the visitor ID

Behaviour analysis on its own gives each browser tab a random session ID, kept in the tab's session storage. It is gone when the tab closes and ends after 30 minutes without activity. Anything that spans more than one visit is lost: a new tab is a new session.

The Visitor ID switch adds a random identifier in the browser's local storage, so visits by the same browser can be linked. It holds no personal details itself, but as a lasting identifier it counts as personal data, so make sure your consent banner and privacy policy cover it. It adds new against returning visitors, funnels and paths across visits, visitor types, and journeys joined to the experiments a visitor was in. Turning it off stops the ID being sent; IDs already stored stay in browsers. See Anonymous Visitor ID.

Behaviour analysis loads with the Pertento script and has no consent setting of its own. If your website holds the Pertento script back until a visitor consents, behaviour analysis is held back too.

What it costs the page

  • The behaviour script is a separate, small file that loads only on websites with behaviour analysis on. Every other website gets the same script as before.
  • It loads asynchronously after the page is shown, and does its work in idle time, so it is not on the path that renders your page.
  • It does nothing in an iframe or for automated browsers such as crawlers and test runners.

See Pertento Runtime Script and Core Web Vitals Impact.

How long it is kept

  • Individual events are kept for 7 days.
  • Daily summaries, which every Insights page reads, are kept for 13 months.
  • Analyst conversations are kept for 12 months.