Tracking

Awin MasterTag Setup Guide

The one container script that powers Awin tracking on your site — what it does, how to install it, and how to prove it's working.

Quick Answer The MasterTag is a single container script you place on every page of your site. It loads Awin's core tracking and lets you switch on extra tools (like the conversion tag and various plugins) without adding more code each time. You set it up once so that sales track accurately and partners get credited for the traffic they send.

What it is

Think of the MasterTag as a power strip for your tracking. Instead of running a separate wire to the wall for every gadget, you plug one strip into the socket and then plug your gadgets into the strip. The MasterTag is that strip: one script on your site, and from inside Awin you can switch on the tools that run through it — conversion tracking, the voucher attribution tool, journey plugins and more — without a developer touching your code again.

Technically it's a small JavaScript container that loads early on every page. On its own it does little; its value is that it acts as the delivery mechanism for the other pieces of Awin tracking you choose to enable. The conversion tag, which records the actual sale on your order-confirmation page, is the most important thing it carries.

Why it matters

Everything in affiliate marketing depends on accurate tracking. If sales don't record, partners don't get paid, they stop promoting you, and your programme quietly dies. The MasterTag matters because it's the foundation the whole programme stands on — get it right once and the rest becomes configuration rather than code.

It also saves you from "tag sprawl". Without a container, every new feature means another script, another developer ticket, and another chance to break something. With the MasterTag in place, most changes happen inside the Awin interface, which means you can move faster and your engineering team isn't a bottleneck every time you want to test something.

How it works

  1. Get your MasterTag snippet. Find it in your Awin account; it contains your unique advertiser ID so sales are attributed to your programme.
  2. Place it site-wide. Add the snippet to every page, ideally high in the page so it loads early. A tag manager or a global template/header is the cleanest home for it.
  3. Add the conversion tag on your confirmation page. On the "thank you" page after checkout, fire the conversion tag with the order value, a unique order reference, the currency and the commission group.
  4. Pass the right values dynamically. Make sure order total, order ID and currency are populated from real order data, not hard-coded test values.
  5. Handle de-duplication. Tell Awin which sales are affiliate-referred so you don't pay commission on orders that came from other channels.
  6. Place a test order. Buy something end to end (or use a test transaction) and check the sale appears in Awin's reporting with the correct value.
  7. Validate currency and tax handling. Confirm you're tracking the value you intend to commission on — usually the net product value, not shipping or tax, depending on your terms.

Common mistakes

Reporting tips

Right after install, the real-time and transaction reports are your proof the tag works. Place a test order and confirm it shows up with the right value, currency and order reference within the expected window. If it doesn't appear, the issue is almost always the conversion tag, not the MasterTag itself.

Once live, watch for sudden drops in tracked sales — a flat-line or cliff in the chart usually means a site change broke the tag. Compare Awin's recorded order count against your own backend for affiliate orders periodically; small gaps are normal, large ones signal a tracking problem worth investigating fast.

When to set it up — and what to check first

Do it now when…Pause and prepare when…
You're launching or migrating an Awin programme.A site replatform is imminent — install after, not before.
You can deploy a script site-wide via a tag manager.You can't yet edit the order-confirmation page.
Your confirmation page exposes order value and ID.Order data isn't available to the front end at confirmation.
You want to enable Awin plugins without new code later.Strict CSP rules block third-party scripts unconfigured.

Related guides

Back to Awin hub

Frequently asked questions

Where exactly should the MasterTag go?
On every page of your site, loaded as early as possible — a global header or tag manager container is ideal. The separate conversion tag goes specifically on your order-confirmation page.
My test sale isn't showing in Awin. What's wrong?
Nine times out of ten it's the conversion tag, not the MasterTag: check it's actually on the confirmation page and that order value, order ID and currency are being passed as real values rather than blanks or placeholders.
Can I install it without a developer?
If you use a tag manager you can usually deploy the MasterTag yourself. The conversion tag often needs developer help to pass live order data, so plan for a small amount of engineering time for that part.

Need help with your programme?

Get personalised, expert advice on your affiliate setup — completely free.

Get your free audit →