Skip to content
BonicBD
Documentation Modules

Restore click identifiers across a visit

A click identifier is what connects a later purchase to the ad click that started the visit. The Click ID Restorer captures those identifiers on first hit so they survive to the conversion event.

Before you begin

  • A running BonicBD container with the module enabled.
  • A destination platform whose click identifier you want to restore.

1. The identifiers captured

The module captures fbclid, gclid, ttclid, msclkid, twclid, dclid, gbraid, wbraid, li_fat_id, epik and sclid on first hit, along with the gad_source and igshid helpers.

Capture happens on first hit, which is what makes the identifier available later in the same visit. If the module was enabled after a visit started, that visit will not have a captured identifier.

2. Where the identifiers are stored

Captured identifiers are stored in cookies, local storage, and IndexedDB, so that later conversion events can use those identifiers again when the setup is configured to do so.

The three locations are redundant copies. When one is unavailable, another may still hold the value; when all three are cleared or blocked, the identifier is gone for that visit.

3. Carrying the identifier into a conversion

A conversion event reads the stored identifier and puts it in the parameter the destination expects, which is how the destination attributes the conversion to the original click.

For Meta, that parameter is the fbc or fbclid value; for Google Ads it is gclid; for TikTok it is ttclid. The server tag has to write the parameter the destination is looking for, using the identifier that was actually captured.

Note: If a conversion arrives without a click identifier, check whether the identifier was captured at all before checking the tag. The two failures look identical at the destination.

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