Assign Consent Requirements for Client-Side Tags

Learn how to make your GTM client-side tags adhere to your Cookiebot or OneTrust Consent rules.

Overview

Prerequisites:

Before you can assign Consent per Web Tag, you will need to:

  • Enable Consent Mode in your Shopify source and your Pre-Built CMP Consent Tag [Instructions]

Enable GTM Consent Overview

📘

Tip: This step is not required, but GTM's Consent Overview feature allows you to assign consent needs to tags in bulk.

If you don't enable this, you'll have to assign consent needs tag by individual tag. Learn more about Google's Consent Mode behavior.

Access Container Settings:

  • Begin on your Google Tag Manager homepage and ensure that you are under the "Admin" tab.
  • Navigate to the "Container" section of the Admin page and click on the "Container Settings".
    • (See Figure 1)

Step 1 screenshot

Figure 1

Additional Container Settings:

  • Once in the Container Settings of your Google Tag Manager, navigate to the "Additional Settings" section of the page.
    • Click on the "Enable consent overview" box.
    • Be sure to save your changes and click on the "Save" button in the upper right-hand corner of the page.
      • (See Figure 2)

Step 2 screenshot

Figure 2

Assign Consent Requirements

You can assign consent requirements via 1 of 2 methods:

Option 1: Assign in Bulk with Consent Overview:

  • Begin on your Google Tag Manager homepage and click on the "Tags" tab
  • Locate and click on the shield icon in the upper right-hand corner of the Tags section of the page.
    • (See Figure 3)

Step 3 screenshot

Figure 3

  • Select all of your desired tags and then click on the shield icon in the upper right-hand corner of the page.
    • (See Figure 4)

Step 4 screenshot

Figure 4

  • Choose whether the tags require consent or not. If consent is required, define what type of consent is needed for the tags to fire. [What does ad_storage & stuff mean?].
  • Be sure to save any changes made and click on the "Save" button in the upper right-hand corner of the page.
    • (See Figure 5)

Step 5 screenshot

Figure 5

Option 2: Assign Individually

  • Begin on your Google Tag Manager homepage and click on the "Tags" tab.
  • Next, locate and click on the individual tag that you would like to assign Consent Settings too.
    • Once in the specific tag that you wish to edit, navigate to the "Consent Settings".
    • Here you can choose whether the tags require consent or not. If consent is required, define what type of consent is needed for the tags to fire. [What does ad_storage & stuff mean?].
  • Be sure to save any changes made and click on the "Save" button in the upper right-hand corner of the page.
    • (See Figure 6)

Step 6 screenshot

Figure 6

Publish & Remove Previous Cookiebot

Publish:

  • After you have made all of your desired changes, navigate to the "Workspace" tab in Google Tag Manager.
  • Then, click on the "Submit" button in the upper right-hand corner of the page.
    • An additional confirmation window will appear, be sure to click on the "Publish" button in the upper right-hand corner of the window.
    • (See Figure 7)

Step 7 screenshot

Figure 7

Remove Previous Cookiebot:

  • Remove previous Cookiebot banner script. This may be located in the header of your Shopify Theme.
    • (See FIgure 8)

Figure 8


Next Step: Assign Consent Requirements for your Server-Side Destinations

🚧

Do not skip this step - your Server-Side Tracking won't adhere to your consent rules without this.

❗️

If you are setting GTM consent values from outside your GTM container, ensure you are setting these values on the purchase page, and checkout pages, not just in theme.liquid. You should ensure that the entire funnel has the correct consent values pushed from page view to purchase by running a test transaction.

Please follow step 3 in our setup guide:

Customize Your Server-Side Destinations