How tracking works
Where the tracking code goes, how to tag the links you share, and how to test a new funnel or checkout.
Where the tracking code goes
Section titled “Where the tracking code goes”Every page on the way to an order needs the tracking code.
| Pages | What to set up |
|---|---|
| Your shop, landing pages and advertorials, on any of your domains | Connect each domain and add the code to every page. |
| A funnel or quiz from another tool | Publish it on a subdomain of a connected domain, add the code to the head of every funnel and variant in the tool, and publish again. |
| A checkout outside your shop, on a domain of yours | Add the code to every page, upsells and thank-you page included. Unless it is on a subdomain of a connected domain, connect its domain too. |
| Your Shopify checkout | Add adtribute’s pixel under Customer events: see Shopify. A Shopify site without a checkout needs no pixel. |
Add the code to your site’s template, so new pages have it too. For forms, funnels and checkouts of a tool you connect in Sources, follow its article instead.
Links you share
Section titled “Links you share”For ads and emails of a platform you connect in Sources, add the URL parameters from its article: campaign details then come from the platform.
Other links, such as in PDFs, direct messages, QR codes, organic or creator posts and emails from other tools, need UTMs only to show as their own channel. Without them, a visit counts for the site it came from, or as Direct.
| Parameter | Sets |
|---|---|
utm_source, optionally with utm_medium | The channel: utm_source / utm_medium |
utm_campaign | Campaign |
utm_content | Ad set |
utm_term | Ad |
- Give each campaign and QR code its own values, spelled the same way every time.
- Use
-or_instead of#or&inside a value. - To group new channels, see Channels and channel groups.
Consent
Section titled “Consent”If your consent tool runs the tracking code only once a visitor accepts, run it right away, on the page where they accept. Visitors who don’t accept aren’t tracked; their orders still count, without their clicks. On Shopify, the pixel follows its own permission setting: see Shopify.
Test a new funnel or checkout
Section titled “Test a new funnel or checkout”Before ads send traffic to a new domain, funnel or checkout:
- Open its first page with test UTMs, such as
?utm_source=test&utm_medium=test. - Go through it as a customer would, up to the checkout.
- On each page, check that the tracking code loads.
- Optional: place a test order with a private email address, which counts as a real one, and send us its order number in Slack or at support@adtribute.io. We check that it is tied to your visit.
Since a change, an ad gets far fewer orders. A new page, domain, funnel, checkout or theme probably lacks the tracking code. Add it; past visits can’t be added later.
An ad platform credits an ad with sales that adtribute doesn’t. Check that every page up to the checkout has the code, on a connected domain. The platform also credits sales from its own data, such as the conversions you send it through Activation.
Which channel does an advertorial count for? The channel that brought the visitor, if the advertorial’s domain is connected and its pages have the code.
Do orders from a checkout outside our shop count? Yes, once they reach your shop. Those that reach it within 6 days of the purchase also go into the conversions you send to ad platforms.
Does adtribute recognize a customer on another device? Yes, on the devices adtribute can tie to them: their visits, orders and contacts count as one customer’s.
We’re switching from another tracking tool. Do our running ads keep working? Running ads can keep the URL parameters of several tools until you replace them with ours. Tell us which tool you use.
Our funnel tool doesn’t let us add code to its pages. Use a plan or tool that allows it, or build the funnel on pages that have the code.
Our checkout has a strict Content Security Policy. The policy must allow:
- the inline code, by nonce or hash
- scripts from the Hostname of the checkout domain’s A record and from
collector.api.adtribute.io - connections to the Hostname of its CNAME record and to
collector.api.adtribute.io