---
title: Campaign tags are remembered only after marketing consent
date: 2026-11-16
slug: campaign-tags-after-marketing-consent
author: Uku Tammet
---

Handhold now remembers a visitor's campaign (UTM) tags from one page to the next only after your site tells it the visitor accepted marketing cookies, so campaign attribution follows the choice the visitor makes in your cookie banner.

- **Pass on the visitor's choice.** Call `window.handhold.setMarketingConsent(true)` or `setMarketingConsent(false)` from your cookie banner. The [API reference](/docs/api#setmarketingconsent) has examples for Cookiebot, OneTrust, CookieYes and HubSpot. If your site doesn't need consent for this, call `setMarketingConsent(true)` when `embed.js` loads.
- **Without consent,** Handhold uses the tags in the address of the page where the conversation starts and keeps none in the visitor's browser. Tags you pass to `openDemo` work as before.
- **On the session page,** the Source card explains when a session has no campaign tags.
