There are two configuration types that Adform tag includes: PageView and TrackEvent.
- Pageview event stores the
adfcookieidandadfcdURL parameters inside theadfuidand_adfcdcookies, 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
adfuidand_adfcdcookie 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
- Adform tag for server-side Google Tag Manager
- Adform Cookie Retrieval Script tag for Google Tag Manager Web - captures the
adfuidcookie client-side for view-through conversions so it can be used as a cookie source for this server-side tag.
Open Source
Adform Tag for GTM Server Side is developed and maintained by Stape Team under the Apache 2.0 license.