Stape
Search
Try for free

How to set up Adtraction tag using server GTM

Published
Mar 27, 2025

In this article, we will show you how to configure Adtraction conversion tracking with server GTM. Below in the guide, you'll find a step-by-step breakdown of the tag setup process, including the steps:

  1. Creating a server GTM container.
  2. Transmitting data from the web to the server GTM container.
  3. Adding the Adtraction tag to the server GTM.
  4. Configuring the tag to track page views and/or conversions.
  5. Adding a trigger to the tag.
  6. Testing the setup.

What is the Adtraction tag and its benefits

The Adtraction tag works for the server GTM container and allows smooth integration between the Adtraction platform and your website. It helps you set up tracking for two types of events: pageviews and/or conversions.

Since the tag works on the server GTM container, it gives the complete list of server-side tracking benefits, which include, but are not limited to, extended cookie lifetime, precise data recorded unaffected by adblockers, and high control over the data that makes complying with data regulations easier.  

What you need to set up the Adtraction tag

Before configuring the Adtraction tag, make sure you have:

How to set up Adtraction conversion tracking via Adtraction tag for server GTM

1. Go to GitHub and download the Adtraction tag. Then upload it to the server GTM container.

Currently, the tag is not available in the GTM template gallery. However, it will be added later, so you can easily add it from there.

Import Adtraction tag

2. In the “Tags” section, click “New” and select the Tag Configuration “Adtraction by Stape.”

Adtraction by Stape

3. Configure the tag.

3.1 Select event type:

  • Page View – it stores the at_gd URL parameter, which contains the Click ID, inside the at_gd cookie.
  • Conversion – it sends a tracking request to Adtraction when a conversion happens.

With the Page View option, the basic setup is completed as the URL parameter name for the Click ID is "at_gd" by default. You only need to change it if you have a custom implementation.

For conversion events tracking, add the following configurations:

a. Program ID - to find the ID for the required program, on the left menu, click on Advertisers → My Advertisers → select specific program. In the "Your affiliate link", you will find the ID after "a=".

b. Transaction type - choose the transaction you are going to track: sale or lead.

c. Transaction Type ID - add here the Transaction Type ID provided by Adtraction. If you have questions, contact your account manager.

d. (Optional) Parameters Override - by default, the tag will parse all available parameters from the eventData, but in this section, you can select the parameters to override; choose from the following:

  • Currency
  • Order reference
  • Discount code
  • Click ID value
  • MD5 Hashed Email
  • Last paid click referring channel
  • New customer

Here is an example of a configured Adtraction tag:

Configured Adtraction tag

4. Add a trigger for a tag.

Test the tag configuration

Trigger the event and check whether it works correctly in the server GTM containers. If any issues arise with the tag setup, check out our detailed guide on debugging and monitoring.

Summary

Setting up Adtraction conversion tracking with server GTM is a straightforward process. With its help, you can create an integration with the Adtraction platform, and thanks to server-side tracking, you will get accurate and reliable data collection. By following the steps in this guide, you can start tracking conversions. With this setup, you can optimize your tracking strategy and maximize the effectiveness of your Adtraction campaigns.

Comments

Try Stape for all things server-sideright now!