Sending data
Consent
If your site asks for consent before analytics, Beacon can wait: it still counts visits, but stores nothing on the visitor's device until they agree.
Ask for consent first
Add data-consent="required" to the tag in the snippet:
<script async src="https://beacon.endevre.com/b.js?id=B-XXXXXX" data-consent="required"></script>Until the visitor agrees, Beacon runs in a cookieless mode:
- No cookie and nothing in local storage. It keeps only a random ID for the current tab, which disappears when the tab closes.
- Page views, clicks and events are still counted, but each visit counts as a new visitor.
- Sessions aren't recorded for replay.
beacon('identify')applies to the current page only, and isn't remembered.
When they answer
// When the visitor accepts analytics in your consent banner
beacon('consent', { analytics: true });
// If they decline, or withdraw it later
beacon('consent', { analytics: false });Beacon remembers the answer in this browser. After analytics: true, visits are counted normally, with returning visitors recognised. After analytics: false, Beacon goes back to cookieless mode and deletes its cookie and stored IDs.
Without
data-consent="required", Beacon stores its visitor ID straight away, which suits sites that don't need prior consent for first-party analytics. Check what applies where your visitors are.Global Privacy Control
Browsers that send the Global Privacy Control signal are never recorded for session replay, whatever the site's settings. See the privacy policy for everything Beacon collects and never collects.