How to implement server-side conversion tracking with Google Ads and Usercentrics CMP

Server-side tagging enables better data quality and control and reduced costs. Learn more about implementing it with Google Ads and Usercentrics.
by Usercentrics
Oct 27, 2022
How to implement server-side conversion tracking with Google Ads and Usercentrics CMP
Table of contents
Show more Show less
Book a demo
Learn how our consent management solution can improve privacy and user experience for your users.
Get your free data privacy audit now!

Introduction to Server-side Tagging and its advantages

The world is shifting away from third-party tags and data. Increasingly this will require companies to evolve their data strategies to embrace first-party data and a greater focus on user privacy and consent.

 

Server-side tagging (SST) is a key part of this evolution of data strategy. It enables more control over cookies and can integrate with any channel, like web, apps or smart devices.

This results in more consistent data across customer touchpoints, better automation, reduced costs, improved consent management across platforms, and provides a single source of information for legal audits. SST also integrates with data management technologies like customer data platforms (CDP) and data warehouses and offers an option to handle the Privacy Shield issue.

 

Like client-side tagging, server-side tagging enables data to be collected and delivered where it’s needed. However, with SST, the tag or pixel sends data to a server, like a web server, which then passes it to a destination server (or servers). There is one data stream enabling and centralizing control of data access for services like marketing technology partners and analytics providers.

Check out the Usercentrics blog post for more information: Server-side tagging: what it is and how it will impact the future of consent and data.

A popular example of the use of server-side tagging is the tracking of conversions in Google Ads. For this purpose, two client-side tags are normally used. One that stores the Google click ID (“gclid”) in a cookie on the user’s device when an advertising campaign is called up, and another one that sends the conversion information directly to Google in the case of a conversion.

 

The integration of the server tag manager offers several advantages. The data from the user’s browser does not go directly to Google, but first to a dedicated server under an organization’s own control, which helps to bypass adblockers. Also, the cookie that stores the Google click ID can be generated by this tagging server and get transferred to the browser using an HTTP header. That offers several benefits, such as bypassing Safari’s maximum cookie runtime (Intelligent Tracking Prevention or ITP).

 

In the event that the owned server is hosted by a provider located entirely within the EU, it is possible to configure the server such that no unwanted data is transferred to unsecured third countries, such as the USA (Privacy Shield issue). And lastly, it also reduces the amount of Javascript code that the browser has to download and execute, which in turn leads to improved Core Web Vitals, and with that, better SEO performance.

dwc consult is a long-time Usercentrics partner, and they’ve developed extensive experience with both the Usercentrics CMP and server-side tagging, particularly with Google Tag Manager. They further specialize in CMP implementations that maximize consent rates with constant optimization and adaptation as the legal landscape changes, as well as hybrid tracking strategies.

Use case: Implementation process example

Prerequisite for the implementation is a fully set up and configured Google server tag manager with GA4 conversion tracking, as well as a web/client tag manager. Note that while the example shown is commonly used, each server-side tagging setup is unique to individual company needs. This example is for educational purposes only and we cannot guarantee completeness or accuracy for individual use cases.

 

Step 1: Configuration of GA4 in Client-Side Container

 

GA4 can be used for the transfer of information about pageviews and conversion. The transfer is also possible with other services, such as Universal Analytics or AT Internet, but for this article we will use GA4.

 

In order for the tags on the server to only trigger with consent, the current consent status for Google Ads must be sent to the server for the pageview as well as the conversion with the other GA4 data. For this purpose, you can add a parameter to the GA4 tags.

 GA4 Tag Configuration for pageview events with consentGoogleAds parameter
A variable can be defined as a value that reads the current consent from the data layer where it is provided by Usercentrics.

 Variable Configuration for Data Layer Variable to read Usercentrics-provided consent from the data layer
A simple data layer variable with the exact name of the service added in the Usercentrics Admin Interface is sufficient. (Note: variable name is case sensitive.)

 

This event parameter must be added to all tags relevant for Google Ads Conversion Tracking (e.g. pageviews, conversion).

 

Step 2: Configuration of the Conversion Linker tag in the Server-Side Container

 

The Conversion Linker tag, which will store the Google click ID in a cookie, must then be created on the server. There is a template for the tag from Google, which can be used for this:

The Conversion Linker tag should be triggered with every pageview.

Trigger Configuration of Conversion Linker tag triggered on every pageview

As the trigger should only be triggered if consent is given, a variable is needed that can read out the consent status for Google Ads from the GA4 request. The most suitable variable type for this is “Event Data”, which can read the consent status from the event. The name of the parameter defined in the web tag manager must be used as the key path.

Trigger Configuration of Conversion Linker tag triggered on every pageview

Step 3: Configuration of the conversion tracking tag in the Server-Side Container

 

Another tag is needed to send the conversion to Google Ads. Google also offers a template for this. Conversion ID and conversion label must be configured in the tag settings. Optionally, a conversion value, currency, ecommerce information on product level (e.g. products sold, etc.) as well as customer- or user-provided data can be passed. The configured tag could look like this.

Tag Configuration for Google Ads Conversion Tracking triggered on Purchase
This time, an event with the name of the conversion is defined as the trigger, for example, “purchase” in the case of ecommerce. This trigger should also be restricted by the consent for Google Ads, so the same variable is used as for the Conversion Linker tag.

 

Review:

 

You should now have the following tags:

 

Web-Tag Manager:

  • GA4 Pageview (with parameter for Google Ads Consent), triggered on every pageview
  • GA4 Conversion (with parameter for Google Ads Consent), triggered on conversion

Server Tag Manager:

  • Conversion Linker Tag, triggered on every pageview with consent for Google Ads
  • Google Ads Conversion Tracking Tag, triggered on every conversion with consent for Google Ads

Preview mode on the server can be used to check whether the parameters from the GA4 tags arrive successfully on the server and whether the server tags are triggered as planned.

Further possibilities with server-side tagging

This article shows only one of many options that can be implemented with a server tag manager. There are a number of other popular use cases.

 

Conversion tracking with other advertising networks. Following the same logic, other vendors such as Meta (Facebook), AWIN or Trbo can also be connected to the server tag manager. However, by transferring data on the server side, the amount of Javascript in the web browser remains the same, which leads to improved core web vitals and thus better search engine placement.

 

(Basic) web tracking without consent / circumventing the Privacy Shield issue. By using a manual server hosted within the EU, personal information can be filtered out so that transmission to a vendor is possible without need for consent. In this way, together with Google Consent Mode, consent-free basic tracking can be made possible with GA4 or Universal Analytics, for example. Additionally, issues relating to the terminated Privacy Shield legal framework can be circumvented, as personal information can be cut off before sending data to the USA.

 

Enrichment of tracking data with additional information: On the server, not only can information be shortened, but also added. Tracking data can be enriched with additional information that is only available on the server side (e.g. customer IDs, technical website environment, etc.).

 

Tracking of Usercentrics consents in third-party analytics-tools: Usercentrics already offers a variety of analysis options in the CMP’s Admin Interface. However, with the help of a server-side tag manager, additional tracking of interactions can be done in third-party web analytics services.

Summary

In an ever-changing world that is shifting away from third-party data, server-side tagging can be the deciding factor in your data strategy. Server-side tagging provides more control over organizations’ own data and helps circumvent intelligent tracking prevention (ITP) and adblockers. It can also improve website performance and prevent unwanted data from being sent to third countries.

 

The client-side requests for consent for individual services and transmission to the server environment can be easily implemented with the Usercentrics CMP. By processing the consent on the server tag manager, organizations ensure that they always respect the users’ consent choices and are data compliant. This enables, for example, successful set up of conversion tracking in the server tag manager environment, and benefits from the many advantages of the technology.

 

Additionally, a specialized setup on a company’s server with a custom client can enable the enrichment of analytics data or preventing sending unwanted data to third countries (e.g. Privacy Shield issue). For individual setups, Usercentrics collaborates with experienced partners such as dwc, who use their knowledge of both server-side tagging and the CMP to provide the best possible advice and to raise customers’ tracking capabilities to the next level.

 

Contact our experts to learn how you can implement server-side tagging for your business.

Home Resources Article How to implement server-side conversion tracking with Google Ads and Usercentrics CMP

Related Articles

Presidential Executive Order directs implementation of new “Privacy Shield” EU-US Data Privacy Framework

Presidential Executive Order directs implementation of new “Privacy Shield” EU-US Data Privacy Framework

With the signing of an Executive Order, a new “Privacy Shield” Data Privacy Framework between the EU and US...

Why do you need a Preference Management and Consent Management Solution?

Why do you need a Preference Management and Consent Management Solution?

Preference management enables brands to better centralize, target and segment based on higher quality data, and...

How can we help you?
Do you want to know more about data privacy and consent management? Or get started with our Consent Management Solution right away.
Do you want to know more about data privacy and consent management?
Discover our blog for a deep dive on the latest industry news.
How can we help you?
Get started with our intelligent Consent Management solution right away. Or talk to one of our experts to help you find the right setup for your needs.