Stape
Contact salesTry for free

Adform tag for server-side Google Tag Manager

Ivanna Holubovska

Ivanna Holubovska

Author
Updated
Jun 17, 2025
Published
Mar 25, 2024

Adform is a company specializing in digital advertising solutions. They offer a range of services including efficient workflows, omnichannel reach, and better optimization of working media. Adform focuses on maximizing the use of data for competitive advantage, preparing for a cookieless future, and providing solutions for sustainable trading. 

We created the Adform tag to make the Adfrom integration process simpler. In this article, I'll show you how to set up this tag using server-side Google Tag Manager and describe the implementation keys.

Adform tag description

There are two configuration types that Adform tag includes: PageView and TrackEvent.

  • Pageview event stores the adfcookieid URL parameter inside the adfuid cookie.
  • TrackEvent event sends a request with the specified conversion event data to Adform API.

In Pageview you should add the Adform click ID parameter that was used in Adform campaign settings. Update adfuid cookie lifetime is needed.

adform tag description - stape
adform tag description - stape

In Track events you should make a POST request to Adform Server Side Tracking API.

  • Tracking Domain - is the tracking domain set on the advertiser level.
  • Tracking Setup ID - is the advertiser's tracking ID, which can be found under Site Tracking in Adform UI.
  • Event Name - event-based conversion name that was setup in Adform, case-sensitive.
  • Variables - a table map of event variables that are sent to Adform API.
  • Compliance - pass information about the user's consent to the Adform API.
adform tag description event types - stape
adform tag description event types - stape

Key advantages of using the Adform tag for sGTM

Using the Adform tag inside server Google Tag Manager helps you track conversions with more accuracy and less hassle.

Here’s what you get when you move this setup to the server:

Better attribution. By saving the Adform click ID (adfcookieid) in a first-party cookie, you make sure conversions are tied back to the right ad, even if they happen later.

More complete conversion data. The TrackEvent tag lets you send custom values like order ID, revenue, and currency straight to Adform’s API  without relying on what the browser collects.

No code on your site. Tags run in the server container, not the browser, which means no extra scripts slowing down your site or risking being blocked by browser privacy tools.

More control, less noise. You decide exactly what gets sent to Adform and when. No duplicates, no missing IDs, no guessing what worked.

This way, your campaign results reflect reality, not just what the browser felt like showing.

How to set up Adform tag for server-side Google Tag Manager

2. Send data to the server GTM container. The two most popular ways of sending data to sGTM are Google Analytic 4 and Data Tag/Data Client.

3. Download Adform tag on GitHub or add it from Template Gallery-> Open templates sections in the server Google Tag Manager container -> Click New.

4. Click three dots in the top right corner -> Click Import -> Select Adform tag template you’ve recently downloaded from GitHub -> Click save.

adform tag implementation - stape
adform tag implementation - stape

5. As mentioned earlier, Adform tag sends two events to Adform: Pageview and TrackEvent. To determine what event to send, the tag will listen to the trigger. Parse events in the trigger, and send corresponding events to Adform.

Conclusion

Moving your Adform tag to the server container is more than a technical change. This decision will make your conversion data cleaner and your tracking setup simpler.

Instead of trying to fill the gaps caused by browser limits, you’re sending reliable signals directly from your cloud server.

If you use Adform in your ad strategy, server-side tagging gives you the precision and stability to get the most from it.

author

Ivanna Holubovska

Author

Ivanna is a Lead Content Manager at Stape, a professional writer focused on creating high-quality content about server-side tracking to help businesses optimize their strategies and analytics.

Comments

Try Stape for all things server-sideright now!