Adform tag for Google Tag Manager Server Side

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

  • Pageview event stores the adfcookieid and adfcd URL parameters inside the adfuid and _adfcd cookies, respectively.
  • TrackEvent event sends a request with the specified conversion event data to Adform API.

How to use the Adform tag:

Pageview - Fire this event when the user reaches your landing page in order to capture and store Adform URL identifiers. These identifiers will then later be used on further events for attribution and user context purposes.

  • Input your Adform Cookie ID URL parameter that was used in Adform campaign settings (macro __ADFUID__ ).
  • Input your Adform Click ID URL parameter that was used in Adform campaign settings (macro __ADFCD__ )
  • Update adfuid and _adfcd cookie lifetime is needed.

Track events - 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.

Useful Resources

Open Source

Adform Tag for GTM Server Side is developed and maintained by Stape Team under the Apache 2.0 license.

GTM Gallery Status

:green_circle: Listed

GitHub

:green_circle: Repository

stape-io/adform-tag — updated: view commit

  • Removed all logging-related settings and functionality, including log type options, log functions, and trace ID headers.

GTM Gallery Status

:green_circle: Listed

stape-io/adform-tag — updated: view commit

  • Added cookie domain override and SameSite configuration options
  • Updated cookie expiration default to 60 days with seconds guidance and validation
  • Improved URL detection, consent handling, and skipped internal GTM server requests; cookies now use the effective domain and SameSite setting

GTM Gallery Status

:green_circle: Listed

stape-io/adform-tag — updated: view commit

  • Validate Adform cookie and click IDs before storing or sending them
  • Use event data for page URL, referrer, user agent, client IP override, and browser language
  • Remove remote address lookup and configurable request-header settings

GTM Gallery Status

:green_circle: Listed