Den side, du har anmodet om, er ikke tilgængelig på dit sprog i øjeblikket. Du kan vælge et andet sprog nederst på siden eller få en øjeblikkelig oversætte af en hvilken som helst webside til et valgfrit sprog ved hjælp af Google Chromes indbyggede oversættelsesfunktion.

Set up Mandatly to obtain user consent

To capture valuable insights while protecting user privacy, you need to collect consent from your website users. We recommend you use a Consent Management Platform (CMP) or work with your Content Management System (CMS) to collect consent and send it to Google.

Step 1 of 2: Set up a consent banner

Configure the Google Consent Mode settings within the Mandatly system to align with consent preferences and ensure proper data handling.

  1. Create your Mandatly account.
  2. Configure your banner using the “Add Website” wizard.
  3. Make sure your banner complies with the requirements in the Google EU User Consent Policy (EUUCP).

Learn more about  Mandatly banner setup.


Step 2 of 2: Set up consent mode

Set up using Google Tag Manager

  1. Open Google Tag Manager, and navigate to your container.
  2. In “Tags”, select New and name the tag.
  3. Select Tag Configuration > Discover more tag types in the Community Template Gallery.
  4. From the gallery, search for “Mandatly”, then install “Mandatly CMP” by mandatly-inc.
  5. Make sure the “Enable Google Consent Mode” toggle is ON. Learn more About Google Consent Mode.
  6. Copy your website GUID from Mandatly CMP account and paste it in website guid field. Learn more about How to get website guid from Mandatly account.
  7. Depending on your specific requirements, set the Default Consent Settings regionally or globally.
  8. Configure the Other Settings such as Wait for update (milliseconds), Pass ad click information through URLs (url_passthrough), and Redact ads data (ads_data_redaction).
  9. Select Add > Triggering.
  10. Select Consent Initialization - All Pages.
  11. Select Save.
  12. Test your container by selecting Preview in the top right corner.
  13. Publish your container.

Set up using other platforms or directly editing website code

  1. Login to your Mandatly account, then go to Cookie Compliance > Websites.
  2. Select Domain URL from the list.
  3. Navigate to the “Integration” tab, copy the code snippet.
  4. Paste the code snippet into the <head> tag of each page.
    • If you use a website builder, review the integration documentation to find out how to implement code in the <head> tag of each page.
  5. In the <head> tag of each page, paste the following code before your CMP code snippet.
This is critical in order to ensure the CMP functions properly.

<script>

// Define dataLayer and the gtag function.

window.dataLayer = window.dataLayer || [];

function gtag(){dataLayer.push(arguments);}

// Set default consent for specific regions according to your requirements

gtag('consent', 'default', {

'ad_storage': 'denied',

'ad_user_data': 'denied',

'ad_personalization': 'denied',

'analytics_storage': 'denied',

   'functionality_storage': 'denied',

   'personalization_storage': 'denied',

'security_storage': 'granted',

'regions':[<list of ISO 3166-2 region codes>]

});

// Set default consent for all other regions according to your requirements

gtag('consent', 'default', {

'ad_storage': 'denied',

'ad_user_data': 'denied',

'ad_personalization': 'denied',

'analytics_storage': 'denied',

   'functionality_storage': 'denied',

   'personalization_storage': 'denied',

'security_storage': 'granted',

});

</script>

<!-- PASTE YOUR Mandatly CMP CODE SNIPPET HERE -- >

Note: The default consent script above only needs to be placed if the “Execute Google Tags Before Consent” (Advanced Mode) toggle is ON in Advanced Settings.

About Google Consent Mode

Turning on “Execute Google Tags Before Consent” activates Advanced Consent Mode. This allows default consent tags to fire as soon as your website loads.

If you turn this option off, Basic mode will be used. In Basic Mode, default consent tags won’t fire until a user interacts with your consent banner. To be compliant with Google Consent Mode (GCM) while using Basic Mode, you need to block third-party cookies by mapping them with the Mandatly custom events using Google Tag Manager.

Learn more about Blocking third-party cookies via GTM.


How to test using Tag Assistant

Learn more about how to Troubleshoot consent mode with Tag Assistant.

Var disse oplysninger nyttige?

Hvordan kan vi forbedre siden?
true
Achieve your advertising goals today!

Attend our Performance Max Masterclass, a livestream workshop session bringing together industry and Google ads PMax experts.

Register now

Search
Clear search
Close search
Main menu
7752318132319523788
true
Søg i Hjælp
true
true
true
true
true
73067
false
false
false
false
false