> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.pandectes.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 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.

### 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**.

![](https://storage.crisp.chat/users/helpdesk/website/-/1/a/5/a/1a5af239e847cf00/image_1als8ro.png =1000x511)

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

1. Go to your store **Settings > Customer Events** section
2. Click on the **Add custom pixel** button and give a name such as *Cookie Consent Pixel* and click **Add pixel**
3. In the **Customer privacy** section select in the **Permission** section the option **Not required** to let the pixel always run
4. 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
});
```

4. **Save** the Pixel
5. **Connect** the Pixel

|| In you need any help with the setup, do not hesitate to drop us a line at **support@pandectes.io** or via our **live chat**.