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 UniConsent 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

  1. Sign up for an UniConsent account and configure your banner using the getting started wizard.
  2. This process helps ensure that your banner complies with the requirements in the Google EU User Consent Policy (EUUCP).

Learn more about UniConsent 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. Search for “UniConsent CMP” in the gallery and install “UniConsent CMP” by Transfon.
  5. Enter the “UniConsent License ID” for the website in your UniConsent account.
  6. Under “Default Consent Mode settings”, configure the default settings you would like to use .
  7. Add a row for global settings and leave the “Region” field blank.
    • You can add additional rows for region-specific settings by using comma-separated ISO 3166-2 country codes in the “Region” field.
  8. Select Add > Triggering.
  9. Select Consent Initialization - All Pages.
  10. Select Save.
  11. Test your container by selecting Preview in the top right corner.
  12. Publish your container.

Set up using another platform or directly from your website’s code

  1. Open UniConsent and log in,
  2. Go to the projects list, and click Install.
  3. Next, navigate to the “Install & Setup” tab and locate the “Install the tag on your website” section to find the CMP code snippet.
    • If you use a website builder, review their documentation to find out how to implement code in the <head> tag of each page. Otherwise, skip to step three.
  4. In the <head> tag of each page, paste the following code followed by the CMP script you copied in step 1 at the very top of the <head> tag. If you're using a website builder, refer to step 2.
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',

'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'

});

</script>

<!-- PASTE YOUR UniConsent 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.

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
4564699405974947816
true
Søg i Hjælp
true
true
true
true
true
73067
false
false
false
false
false