Set up iubenda 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: Set up a consent banner

  1. Go to iubenda, and click Set up Consent Mode V2.
  2. Open the “Getting Started” wizard.
  3. In the “Privacy Controls and Cookie Solution” configuration, set up your consent banner.
  4. Complete the consent banner configuration process, and scroll to the embedding section. Consent mode is already active by default for every configuration. You can now add the consent banner to your site.
For additional information on banner setup, refer to the iubenda implementation guide.

Step 2: Set up consent mode

WordPress plugin

  1. Download the iubenda plugin from the WordPress plugin repository, and add it to your WordPress installation.
    • Alternatively, access the administration panel within WordPress, and click on Plugins, then click Add New Plugin.
    • Click Search for "iubenda | All-in-one Compliance for GDPR / CCPA Cookie Consent + more”.
  2. Install the plugin and activate it.
  3. Once activated, click the iubenda menu item in the sidebar of your WordPress admin panel.
  4. Click Help me get compliant to proceed, then click I’ve already made the set up on iubenda.com.
  5. In your iubenda project dashboard, go to the "Privacy Controls and Cookie Solution" section, click Embed and copy the code from the code box.
    This image represents the iubenda UI in which you copy the code from the code box to paste into the Cookie Solution product.
  6. Go back to the iubenda plugin dashboard and select the Cookie Solution product under "Select products you have already activated". Paste the embed code from step 5.
    This image represents the iubenda UI in which you activate your cookie and consent banner.
  7. Click Synchronize products.
  8. After activation, your cookie and consent banner, along with Google Consent Mode v2, will be enabled by default.

For additional information on banner set up, review the iubenda implementation guide.

Use another platform or directly from your website’s code

  1. In your iubenda project dashboard, head to the "Privacy Controls and Cookie Solution" section and click on Embed.
  2. Copy the code from the code box.
  3. 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 4.
  4. In the head tag of each page, paste the code you copied in step 2 at the very top of the <head> tag. Note that this step is critical in order to ensure the CMP functions properly.

Google Tag Manager

  1. Open Google Tag Manager, and navigate to your container.
  2. In “Tags”, click New and name your tag.
  3. Click Tag Configuration, then click Discover more tag types in the Community Template Gallery. From the gallery, search for the "iubenda Privacy Controls and Cookie Solution by iubenda" template.
  4. Install the "iubenda Privacy Controls and Cookie Solution by iubenda" template by clicking on Add to workspace.
    This image represents the iubenda UI in which you install the Privacy Controls and Cookie Solution template by clicking "Add to workspace".
  5. Navigate back to the iubenda project dashboard, go to the "Privacy Controls and Cookie Solution" section, and click Embed.
  6. Copy only the <code> in between the brackets.
  7. In Tag Manager, make sure the dropdown labeled "How to embed CS" is set to "Automatically via GTM template."
  8. Paste the information copied in Step 6 into the CS Configuration box and configure the global default settings you would like to use under "Purpose default consents."
    This image represents the iubenda UI in which you configure the global default settings you would like to use.
  9. Click Add, then click Triggering.
  10. Select "Consent Initialization - All Pages” then click Save.
    This image represents the iubenda UI in which you select Consent Initialization - All Pages.
  11. Click Preview in the top right corner. View instructions for testing below.
  12. Publish your container.

For more details on the iubenda Google Tag Manager template, refer to Setup Google Tag Manager with iubenda.

Generate a Privacy and Cookie Policy

After you’ve embedded your consent banner, it’s highly recommended to generate a Privacy and Cookie Policy and add the required Google clauses and disclosures.

  1. In your iubenda project dashboard, under the "Privacy and Cookie Policy" section, click Generate now.
  2. Click Add a service.
  3. In the search bar, find and add "Google Analytics 4" and "Google Ads conversion tracking," depending on the Google services you utilize. For additional specific tracking features provided by Google such as retargeting, search for "Google" and add related clauses. Each service can be added by clicking the "+" symbol.
    This image represents the iubenda UI in which you choose which Google services to generate a Privacy and Cookie Policy for.
  4. For each service, select the reference region by choosing between Ireland and the United States.
  5. When you’re done adding services, click Save and then Next.
  6. Insert the required info about the website owner (Data Controller). Both fields are required and will appear on the privacy policy.
  7. Click Next to complete the generation process.
  8. In the "Privacy and Cookie Policy" section of your project, click Embed.
  9. Copy the embedding code.
  10. Paste the embedding code in the footer section of your website.

Testing using Tag Assistant

Learn more about how to Troubleshoot consent mode with Google Tag Manager.

Was this helpful?

How can we improve it?
true
Search
Clear search
Close search
Google apps
Main menu
13519376862979439046
true
Search Help Center
true
true
true
true
true
102259
false
false