Skip to content
BonicBD
Documentation Modules

How BonicBD Cookie Keeper works

The Cookie Keeper module manages the lifetime of identity values and can recover them from redundant storage when the primary cookie is gone. This guide describes what it actually does, so that you can size your expectations correctly.

Before you begin

  • A running BonicBD container with the module enabled.
  • Access to the plugin configuration for this container.

1. The configured defaults

The default identity configuration in the plugin builder declares a 365-day bbd_uid lifetime, a 90-day click-ID lifetime, a 180-day UTM lifetime, redundant storage enabled, and a six-hour server refresh interval.

These are the values the platform ships with. The browser modules also accept configured lifetimes within their own bounds, so a container can be set to a different window than the default.

  • bbd_uid identity — 365 days
  • Click identifiers — 90 days
  • UTM parameters — 180 days
  • Redundant storage — enabled
  • Server refresh interval — 6 hours

2. What recovery means

The module tries to recover managed values from cookies and redundant storage. Its code uses session storage, local storage, and IndexedDB when redundant storage is enabled, then can attempt a server restore and identity synchronization.

Recovery is a best-effort sequence. Browser storage can be blocked by privacy settings, cleared by the user, or evicted under storage pressure. A recovery attempt that finds nothing is not an error, it simply means the value is gone.

3. What the module cannot guarantee

A configured lifetime is a configuration value, not a guarantee that a browser will retain the value for that long. Private browsing windows, aggressive third-party-cookie policies, and manual clearing all end the lifetime early.

This is also why the server container needs a live event identifier rather than relying on a stored click ID being present on every later visit. Where a value is genuinely missing, the tag should be written to handle its absence.

Note: Do not describe the configured lifetime as a retention guarantee in client-facing copy. Describe it as the configured window.

Reviewed against the BonicBD documentation source on 2026-11-07. Dashboard labels can change; follow the current setup guide shown in your account.