πŸŽ›οΈHow to Integrate Google Consent Mode V2 on Your Shopify Checkout Page

This guide explains how to integrate Google Consent Mode V2 on your Shopify checkout page, specifically to trigger the consent signal only if the customer has previously accepted your cookie banner on earlier pages (e.g., homepage, product pages, etc.).

πŸ”§ Steps to Implement

  1. Log in to your Shopify Admin Go to: https://admin.shopify.com

  2. Navigate to Settings In the lower-left corner of your admin panel, click Settings.

  3. Go to Customer Events In the Settings menu, click on Customer events.

  4. Open the Custom Pixels tab At the top of the page, switch to the Custom pixels tab.

  5. Add a new custom pixel

    • Click the β€œAdd custom pixel” button.

    • Give your pixel a name (e.g., Consentik - Google Consent Mode V2).

  6. Replace the default code

    • Remove all existing code in the Code editor.

    • Paste the following code snippet instead:

  1. Click Save Once you’ve pasted the code, click Save to apply the changes.

βœ… You’re Done!

Google Consent Mode V2 will now properly trigger on the checkout page only if the user has previously accepted cookies.

Last updated