Install guide

Install with Awin's MasterTag

If you run an Awin programme, MasterTag is already on every page of your site. Add the widget to it from your Awin account, with no change to your site's code.

Steps

  1. Add a custom tag for the widget

    • Sign in to your Awin advertiser account and open MasterTag.
    • Add a custom tag, and paste the snippet below.
    • Set it to run on all pages, then save and publish.
    Custom tag, all pages
    <script async src="https://vouchernaut.com/embed/v1/widget.js" data-key="vn_pk_live_…"></script>
  2. Add a tag for orders on your confirmation page

    This sends the order with the same reference, amount and currency as Awin's conversion tag (AWIN.Tracking.Sale), so your reports show sales and we can match each order to its Awin sale. Set it to run on your confirmation page only.

    Custom tag, confirmation page
    <script>
    window.VouchernautReady = window.VouchernautReady || [];
    window.VouchernautReady.push(function (vn) {
      var sale = window.AWIN && window.AWIN.Tracking && window.AWIN.Tracking.Sale;
      if (sale && sale.orderRef) {
        vn.track("order", {
          id: String(sale.orderRef),
          total: sale.amount,
          currency: sale.currency || "GBP"
        });
      }
    });
    </script>

Good to know

On the free plan, Vouchernaut is paid from the commission your Awin programme already pays: join Vouchernaut as a publisher in your programme and your offers' clicks are credited to us. Menu names in Awin's dashboard change from time to time; if you can't find MasterTag, Awin's support can point you to it.

Check your install

Is the widget on your site?

Open a page with the snippet, then paste the key from it here. We say whether the widget loaded on one of your allowed sites in the last 10 minutes.

It's in your snippet, and on the console's Developers page.