If you're using consentmanager.net as your Consent Management Platform (CMP), you'll need to configure it to work with our tracking script. This ensures that tracking only occurs for users who have given consent.
Configuration via the Settings Panel
Use this method if you are configuring consent within the Admetrics app.
1. Select the Custom Banner Option
First, open the sidebar and navigate to the Settings section. Under Tracking, find the Consent mechanism area and select Another consent banner.
2. Add the consentmanager.net Configuration
Selecting Another consent banner will reveal a new area to add your CMP’s settings. This connects our system to the consent given through your consentmanager.net banner.
In the Name of Cookie or LocalStorage object field, enter
cmpConsentPurposes
In the If consent is provided the value of the Cookie/LocalStorage contains, enter
c52
This configuration instructs our tracking script to check whether the visitor has consented to purpose c52 (typically used for marketing or analytics) before activating.
Finally, click Save to apply your changes. Your Admetrics tracking is now successfully integrated with consentmanager.net.
Configuration for Manual Installation
If you are installing the tracking script manually (e.g., on a custom theme or landing page), you can configure the consentmanager.net integration directly within the script tag by adding two data attributes.
Note: This method is only required for manual script installations. If you have already configured consentmanager.net in the Settings Panel as described above, you do not need to add these attributes.
These attributes instruct our script on how to check for consent.
data-cn
Specifies the name of the consent property our script should check.
Value:
cmpConsentPurposes
data-cv
Specifies the value our script requires to confirm consent has been given.
Value:
c52
Extended example
Before adding the script, you need to include the following snippet on all pages (between the <body>
and </body>
tags). Replace [SHOP_ID]
with your specific shop ID, and dynamically insert the {{ CUSTOMER_ID }}
(if available). If no customer ID is available, set {{ CUSTOMER_ID }}
to an empty string.
Then, add the data-cn
and data-cv
attributes to your tracking script tag as shown below.
<script id="js-app-admq-data" type="application/json">
{
"sid": "[SHOP_ID]",
"cid": "{{ CUSTOMER_ID }}"
}
</script>
<script id="js-app-admq-script"
data-cn="cmpConsentPurposes"
data-cv="c52"
></script>
Note: To retrieve the shop ID on Shopify you can go to https://YOURSHOP.myshopify.com/shop.json and search for "shopId". The number behind it is your shop ID.
Improve Tracking with a Custom Domain
To improve tracking accuracy and reduce the impact of browser-based privacy features like ITP, you can serve the tracking script from your own custom domain. This makes it a first-party resource, enhancing data collection and overall tracking performance.
Setting up a custom tracking domain requires a few configuration steps on both your end and ours.
Please contact our Customer Success team to get started. They will guide you through the setup process.