Use Pandectes Consent Event with Shopify Custom Pixel
On this article you can see how you can create a custom pixel on your Shopify store to use the Pandectes Consent Event and run any custom code you like such as the Google Tag Manager.
Open our Pandectes GDPR Compliance app inside your store and navigate to Settings > Integrations and there check the Pandectes Custom Event and then click save.
After activating this integration the Pandectes Custom Event will be pushed in the dataLayer upon any interaction with the Banner. The dataLayer array, popularized by Google, centralizes website user interaction data for tracking and analysis. Also the Shopify Web Pixels API and Custom Pixels integrations via Customer Events will be supported.
Go to your store Settings > Customer Events section
Click on the Add custom pixel button and give a name such as Cookie Consent Pixel and click Add pixel
In the Customer privacy section select in the Permission section the option Not required to let the pixel always run
In the Code area remove the default content and add the Pixel code provided below:
Save the Pixel
Connect the Pixel
In you need any help with the setup, do not hesitate to drop us a line at [email protected] or via our live chat.
Activate Pandectes Custom Event
Open our Pandectes GDPR Compliance app inside your store and navigate to Settings > Integrations and there check the Pandectes Custom Event and then click save.
After activating this integration the Pandectes Custom Event will be pushed in the dataLayer upon any interaction with the Banner. The dataLayer array, popularized by Google, centralizes website user interaction data for tracking and analysis. Also the Shopify Web Pixels API and Custom Pixels integrations via Customer Events will be supported.
Create custom pixel code
Go to your store Settings > Customer Events section
Click on the Add custom pixel button and give a name such as Cookie Consent Pixel and click Add pixel
In the Customer privacy section select in the Permission section the option Not required to let the pixel always run
In the Code area remove the default content and add the Pixel code provided below:
analytics.subscribe("Pandectes_Consent_Update", event => {
//run your custom code here ex. GTM
});
Save the Pixel
Connect the Pixel
In you need any help with the setup, do not hesitate to drop us a line at [email protected] or via our live chat.
Updated on: 04/09/2024
Thank you!