To enable advanced integration features—such as adding landing pages for platforms like Google, Meta or Outbrain—you need to add specific attributes to your script tags.
Note: This is only required for manual pixel installation, such as on custom shops or landing pages. For most clients using standard eCommerce platforms, this setup is handled automatically.
By adding the right attributes to your script tags, you can seamlessly integrate these features and optimize your campaign performance.
data-advt
Marks the page as an advertorial. When enabled, click IDs (from Google, Outbrain, etc.) are automatically forwarded to support attribution.
Format: A single number
Example:
1
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-advt
attribute 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-advt="1"
></script>
data-advtd
This optional attribute restricts click ID forwarding to outbound links that contain one of the specified strings.
If this attribute is not set, click IDs are forwarded to all outbound links by default.
Format: A comma-separated list of strings. To avoid plain-text references to your domains in the page source, you can also use a base64-encoded version of the list, prefixed with
b64:
.Example:
data-advtd="example.com,advertorial"
data-advtd="b64:ZXhhbXBsZS5jb20sYWR2ZXJ0b3JpYWw="
Extended example:
<script id="js-app-admq-data" type="application/json">
{
"sid": "[SHOP_ID]",
"cid": "[CUSTOMER_ID]"
}
</script>
<script id="js-app-admq-script"
data-advt="1"
data-advtd="example.com,advertorial"
></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.