Integration
You can configure your script in two different variants:- Default Variant: Sets a cookie immediately upon page load. Only use this in the EU when you deem pagent mandatory for you site’s operation.
- Opt-In Variant: Uses cookie-less tracking for up to 24h and sets a permanent cookie only once
opt-inis triggered.
data-opt-in-required="true" flag directly on the integration script.
Here is an example:
Note: The parameter used to be data-opt-in="true" and was renamed for purposes of clarity. The old parameter however still works in the same fashion.
Giving consent
Once you have consent from your user, execute theopt-in command as follows:
Cookieless tracking
Pagent can also operate completely without cookies. In this cookieless mode we still need to recognise a visitor long enough to keep A/B tests consistent, but we do so only for 24 hours and without storing any data in the browser. Because no persistent identifier is written, this mode typically does not require a cookie banner.How visitor consistency works
When the SDK loads it derives a short-lived, deterministic seed:- salt – a random 64-byte string generated by our backend and rotated every 24h
- ip – the visitor’s IP address (truncated, e.g. /24 for IPv4, /56 for IPv6)
- userAgent – the browser’s user-agent string
opt-in: experiments stay consistent within the 24-hour window, yet no long-term tracking occurs.