Skip to main content
Enable Tracking

How to set up multi-touch attribution models. How to enable tracking.

Admetrics avatar
Written by Admetrics
Updated over 3 weeks ago

To use multi-touch attribution models (in addition to Last Click attribution), you need to set up tracking. There are three key steps you need to follow to ensure reliable tracking:

  1. Enable tracking in your settings.

  2. Install the tracking script in your shop.

  3. Configure your consent mechanism to allow tracking.

These steps are explained in detail below. Step two may vary depending on the shop system you're using.

1. Enable tracking in the settings

First, open the sidebar and navigate to the Settings section. Under Tracking, click on "Enable Tracking."

2. Install the tracking script in your shop

How you install the tracking script depends on your shop system.

If you're using Shopify, follow the steps in this article.

For Shopify, here’s the former way to set up tracking on the checkout page:

  1. Go to your shop’s admin page (e.g. example.myshopify.com/admin).

  2. Go to SettingsCheckout and accountsOrder status page

  3. Add the following snippet to "Order status pageAdditional scripts":

    <script id="js-app-admq-data" type="application/json">
    {
    "sid": "{{ shop.id }}",
    "oid": "{{ checkout.order_id }}",
    "cid": "{{ customer.id }}",
    "on": "{{ checkout.order_name }}"
    }
    </script>
    <script id="js-app-admq-script"
    src="https://shopify.admetrics.events/conversion-v1.min.js"
    ></script>

Make sure to place the snippet outside any existing tags in your “Additional scripts” section.

For other shop systems, please refer to the details below.

Shopware

If you use Shopware, there’s no need to place an additional script.

The tracking will happen automatically once your shop is connected.

Manual tracking code integration in Shopify / Liquid

In rare cases, you might need to manually install the tracking script. If your theme.liquid file can't be updated automatically, add the snippet to your main layout file to ensure tracking works across all pages. You can find the documentation for manual tracking code integration here.

Tracking script for non-Shopify sites

If you're running other websites (like a WordPress blog), you need to manually add the tracking snippet. You can find the Tracking script for custom integrations here.

Hydrogen Integration

If your front end is built using Shopify’s Hydrogen framework, check the documentation here.

Conversion script parameters

You can find the documentation for the Conversion script parameters here.

3. Configure your consent mechanism

If you want to always track all visitors to your website, select None. However, be aware that this approach is not GDPR-compliant, at least in Germany.

Otherwise, you’ll need to decide between using Shopify’s native banner or configuring a custom one to track only users who consent.

Click “Save” to submit your changes.

Did this answer your question?