Skip to documentation content
CookieBeam

Versions and rollback

Review published versions, roll production back to an earlier snapshot, and recover from a failed build.

Last updated:

Every publish creates a numbered version. A version stores the banner snapshot, its author, notes, creation time, and build status.

What a version stores

A version's snapshot holds the banner settings, themes, translations, Google Tag Manager settings, domains and domain aliases, blocking rules and blocking settings, integration settings, and the IAB TCF and GPP settings. It also holds the detected cookies and detected scripts, with their categories, as they were at publish time. It also holds a copy of the detected connections and their categories, which the published script uses for connection blocking.

A/B tests and their variants aren't part of a version. They stay as they are when you publish, roll back or promote.

Review version history

Open the banner's version history before a rollback. Confirm the target version's name, number, author, notes, and build status. You can also open a version to see what changed, compared with the version before it or with the live version.

Build status means:

  • built: the files for this version were built and uploaded, and it became the published version of an environment.
  • failed: the build or upload failed. The version never went live.
  • pending: the version was saved and hasn't been built yet.

Promotion reuses a version without changing its stored status. A built status doesn't tell you which environments point to that version now. Check the environment list for that.

Roll back production

Rollback requires Publish permission for the Banners section and publish access to the banner.

Rollback always targets production. You can't roll back a non-production environment. Publish or promote to it instead.

When you select an earlier version, CookieBeam:

  1. Creates a new version from the stored snapshot, named for the rollback target unless you provide another name. It receives the next version number.
  2. Builds and uploads the default files, the production environment's files, and the files for active A/B test variants.
  3. Restores the stored snapshot into the banner's editable configuration.
  4. Moves the banner's current published version and the production environment to the new version.
  5. Clears the CDN cache for the default path and the production environment path.

Steps 3 and 4 happen together, and only after step 2 succeeds. Rollback doesn't delete or rewrite version history.

The same compliance-mode consistency check used during publish also runs during rollback. A stored snapshot can require an explicit mismatch acknowledgement before it is restored.

What rollback restores, and what it doesn't

Rollback restores the banner settings and the related configuration the version stores into your editable configuration. That includes the detected cookies and detected scripts, so their categories go back to what they were in that version. Cookies and scripts found after that version was published are removed from the inventory. Scan the site again after a rollback if you need them back.

Rollback doesn't restore:

  • The connection inventory. The dashboard keeps today's detected connections and categories. The rolled-back script is different: it blocks connections by the categories stored in that version. The two disagree until your next publish, which uses today's inventory again. Review the connection inventory before you publish after a rollback.
  • The generated cookie policy. It's published separately and stays as it is now.
  • Non-production environments. They keep the version they had.
  • A/B tests and variants.
  • The cross-domain consent switch. The rebuilt script uses the switch as it is set now.

Recover from a failed build

A publish, promotion or rollback only moves an environment after its files are uploaded. If the build or upload fails, CookieBeam puts the previous files back. If that fails too, it records a repair, which runs with CookieBeam's next maintenance refresh. Until then, the files on the CDN may be incomplete. The environment stays on its previous version, and the CDN keeps serving it. The failed version is marked failed and never becomes current.

After a failure:

  1. Note the reason shown with the failed result.
  2. Fix the configuration that caused it, or wait if the cause was a service error.
  3. Publish, promote or roll back again. A publish or a rollback creates a new version. A promotion creates one only when your plan lacks one of the five features listed in Environments and publishing.
  4. Load the site in a private window and check the banner.

Rebuild is a different tool. It rebuilds the files of the current published version without creating a new version, and it only accepts that version. It can't retry a failed version, because a failed version never became current. Rebuild writes the default files, the production environment's files, and the files for active A/B test variants. For a non-production environment, publish or promote to it again.

Discard unpublished changes

Discarding a draft restores the current published snapshot to the editable banner tables. It does not create a new version or rebuild the CDN assets.

Use rollback when you need to change what production serves. Use discard when you only need to remove unpublished edits.

AltStyle によって変換されたページ (->オリジナル) /