Follow the steps below to create a custom pixel for Google Tag Manager
- Log in to https://admin.shopify.com
- Click "Settings"
- Click "Customer Events"
- Click "Add custom pixel"
- Name the custom pixel "PM - Google Tag Manager" and click "Add pixel"
- Click "Permissions" and select your preferred permission set.
CAUTION: Choosing the correct "Permission" and "Data Sale" settings is ultimately your responsibility. Please consult a lawyer or legal expert.
By default, the pixel will only fire when Marketing and Statistics consent is granted. Please ensure your Cookie Banner and Shopify Consent API are connected properly in order for consent to be registered.
Some countries allow the use of "basic statistic tracking" without consent. This requires that all Marketing related settings and options in Google Analytics 4 are disabled. If this relevant to you, you can opt for the "Not required" option under "Permissions" and "Data collection does not qualify as data sale" under "Data Sale. " - Click "Permission"
- Select "Not required"
- Click "Data sale"
- Select "Data collected does not qualify as data sale"
- Delete all default text then copy the Pixel code from the 'Open Script Setup Guide' button in ProfitMetrics Google Analytics connection and paste the code into the Code field
Temporary codecode
- Click "Save."
- Click "Connect" and then "Connect" again.
All done. The Custom Pixel will now track all e-commerce events except Purchase which is handled by ProfitMetrics.