hello@newnorth.nl+31 (0) 85 401 31 62
/Journal

Addrevenue GTM tag template

TemplateGTM2026.04.04
Freek Kampen
Freek KampenCo-founder, New North Digital

Connects the Addrevenue Nordic affiliate network to Google Tag Manager, with a base script for click capture and conversion tracking including product data.

What it does

The Addrevenue template integrates the Nordic affiliate network with GTM. It has two action types: Base Script on all pages, and Conversion on the order confirmation.

The Base Script tag loads https://addrevenue.io/track.js to capture affiliate click parameters from the URL. The Conversion tag reports the sale back through ADDREVENUE.sendEvent().

Features

  • Two action types in one template: Base Script and Conversion
  • Base Script loads the Addrevenue tracking library from https://addrevenue.io/track.js
  • Captures affiliate click parameters from the landing page URL automatically
  • Conversion tracking calls ADDREVENUE.sendEvent() with full order data
  • Product-level data for accurate commission attribution
  • Discount code tracking for promotional campaign reporting

Installation

  • In your GTM workspace, go to Templates, then Tag Templates, then Search Gallery.
  • Search for Addrevenue and add the template.
  • Create two tags: one for the Base Script and one for Conversion.

Configuration

Step 1. Deploy the Base Script tag. Set Action Type to Base Script. It has to fire on every page. The script reads affiliate click parameters from the URL, for instance when a visitor arrives from an Addrevenue publisher link, and stores them for later attribution. No other configuration is needed.

Step 2. Set up order data variables. Create Data Layer Variables for ecommerce.transaction_id, ecommerce.value, ecommerce.currency, ecommerce.items, and a variable for discount codes if you use them.

Step 3. Deploy the Conversion tag. Create a second tag with Action Type Conversion, enter the Event Name and map each field. On firing it calls ADDREVENUE.sendEvent() with the event name, order ID, value, currency, discount codes and products array.

Step 4. Sequence the tags. Use Tag Sequencing so track.js has loaded before the Conversion tag fires. On the confirmation page, set Base Script as the setup tag for Conversion.

dataLayer snippet

Push this on your order confirmation page:

dataLayer.push({
  event: 'purchase',
  ecommerce: {
    transaction_id: 'AR-2024-45678',
    value: 1299.00,
    currency: 'SEK',
    items: [
      { item_id: 'JACKET-WH-M', item_name: 'Winter Jacket White',
        price: 1299.00, quantity: 1 }
    ]
  },
  discount_code: 'NORDIC15'
});

Troubleshooting

Tracking script not loading. Check the Base Script tag actually fires and look in the Network tab for a request to https://addrevenue.io/track.js. A blocked request points at an ad blocker or a content security policy.

Click parameters not captured. The Base Script has to fire on the landing page while the parameters are still in the URL. If the visitor navigates away before the script loads, the click data is gone. Fire the tag early in the page load.

Conversions missing from the dashboard. Confirm the Base Script fired on the landing page in the same session. Without the click data captured by track.js, the conversion cannot be linked to a partner.

Duplicate conversions. If the confirmation page can be reloaded, the tag fires again. Use a dataLayer flag or a first-party cookie so purchase pushes once per session.

Discount codes not tracked. The variable has to resolve to the actual code. With no code used, leave the field empty rather than undefined or null.

Product data missing. The Products variable has to return an array of objects. Check in Preview that it resolves on the confirmation page.

Ad blocker interference. The addrevenue.io domain can be blocked. Client-side affiliate tracking is exposed to this by nature; server-side GTM reduces the loss if it matters.

Support

  • Addrevenue platform: https://addrevenue.io/
  • Addrevenue support: contact your account manager for integration help
  • GTM Community Template Gallery: search Addrevenue for the listing and version history
  • GTM Help Center: https://support.google.com/tagmanager/

Want to talk about this?

Let's talk data.

Tell us about your stack, your goals, the data you wish you had.

Takes 1 minute