Sign up with your Email and start sharpening your digital marketing skills.
Gain access to our free Full of Beans Academy courses
Exclusive email lessons
Updates on latest digital marketing trends and useful insights
Not interested
Setting Up Enhanced Conversions is an essential strategy for optimizing your marketing efforts and maximizing the accuracy of your conversion tracking.
Google has introduced Enhanced Conversions as a key feature to improve the precision of conversion data, particularly in a landscape where privacy regulations and user consent play a significant role. This makes it crucial for businesses leveraging Google Ads to implement Enhanced Conversions to stay competitive and compliant.
In this article, you'll receive a comprehensive guide on what Enhanced Conversions entail, how they function, and the step-by-step process of setting them up using Google Tag Manager.
Free Video Course: Setting Up Enhanced ConversionsEnhanced Conversions is a tool used in digital advertising to better track what happens after someone clicks on an ad. Think of it as a way to get a clearer picture of how effective your ads are by using data you already have about your customers.
Here's how it works: when someone interacts with your ad and then makes a purchase or signs up on your website, Enhanced Conversions takes the customer information you already have, like their email address or phone number. This information is then turned into a secure code (so no personal details are shared) and matched with the data from the ad platform. This matching process helps to more accurately track which ads are leading to real results.
Here is some of the benefits listed:
In simple terms, Enhanced Conversions helps you see which ads are doing their job and reaching the right people, making your advertising more effective and efficient.
Enhanced Conversions integrates first-party customer data with your digital advertising platforms to provide a more accurate and comprehensive measurement of conversion events. The process begins when a user interacts with an ad and subsequently performs a conversion action on your website, such as making a purchase or filling out a form. At this point, specific first-party data points like email addresses, phone numbers, names, and addresses are collected.
Once this data is gathered, it undergoes a process called hashing. Hashing uses algorithms such as SHA256 to convert the data into a fixed-size string of characters. This process is one-way, meaning that the original data cannot be retrieved from the hashed values. For instance, an email address like:
user@example.com
will be hashed into something similar to this:
2c6ee24b098bcdcf71a5dd6a7d86ac6a31e32f4f357d1c3d1f1a7d63b8c3bf29
.
The hashed data is then securely transmitted to the advertising platform, ensuring that no raw personally identifiable information (PII) is exposed during the process. Once the advertising platform receives the hashed data, it matches it against its own user data, which is also hashed using the same algorithm. This matching process helps identify which ad interactions are associated with which conversion events, enhancing the accuracy of attribution.
After the matching is complete, the advertising platform attributes the conversions to the corresponding ad interactions. This enhanced attribution data is then used to provide detailed reports, enabling advertisers to understand the performance of their campaigns better. By linking ad interactions to conversion events accurately while maintaining user privacy through secure hashing techniques, Enhanced Conversions allows advertisers to gain deeper insights into their campaigns, leading to improved targeting and optimized ad spend.
To complete the Google Ads conversion tag in Google Tag Manager, we need a Conversion ID and Conversion Label in order to connect whatever has been triggered on the webpage to the conversions which are being measured in Google Ads.
Data fields are simply the input fields in a contact form where users can enter information such as their name, phone number, and email address.
Understanding what data fields are is important because it allows us to identify and use the information entered by users as input, which can then be securely forwarded to Google Ads in a hashed format.
Each data field, also known as an input field, has an associated HTML ID or class. We need to identify this ID or class so that it can be used in a script to save the user’s input into a JavaScript variable.
In this article, we will focus on forwarding the input from the email data field.
By right-clicking on the data field and selecting "Inspect"—assuming you are using Google Chrome as your browser, though many other browsers have a similar feature—the Chrome DevTools will appear. The data field’s HTML will be highlighted, allowing you to find the class or ID associated with that particular data field.
In this example, we're working with a contact form created using WordPress and the Contact Form 7 plugin. The form contains multiple classes, so we'll focus on selecting the class that is most unique to the specific data field we've identified.
Have this class name ready because we are going to use it in the next step.
We've developed a script generator to help you create a script that can be used in Google Tag Manager. This script will save users' inputs into a JavaScript variable, allowing these inputs to be securely forwarded to Google Ads as hashed user data, which is essentially what Enhanced Conversions are.
View the app: Enhanced Conversions Script GeneratorIn this case we are going to generate a script for the data field where the user can type in their email with the following steps:
Below is an example of how to insert the script and configure the trigger:
Here's how to set up the trigger:
Once the script has been inserted on the page via the Google Tag Manager Custom HTML tag, you can proceed to create the JavaScript variables in Google Tag Manager:
Before we set up the Google Ads Conversion Tracking Tag we need to set up a User-Provided data variable. Here is how:
Now we can complete the setup of the Google Ads Conversion Tracking Tag where we'll include the user-provided data
A data layer is a special area where important information about a website and its users is stored in a structured way. It acts like a "holding area" or "storage box" for data that you want to track or use with tools like Google Tag Manager or Google Analytics.
For example, when someone adds a product to their shopping cart, the data layer might store details about the product, such as its name, price, and category. This information can then be easily accessed and used to send data to analytics tools, track user actions, or trigger specific events on the website.
In simple terms, the data layer helps organize and manage the information on a website, making it easier for tracking tools to understand what’s happening and react accordingly.
WooCommerce, when integrated with Google Tag Manager or Google Analytics (often through plugins like Datalayer for WooCommerce FREE), pushes several important ecommerce events into the data layer. Inside the plugin settings you can go to advanced and then enable show user info which is something you can use to apply the user data to the tag. These events help track various stages of the customer journey on an ecommerce site. Some of the common WooCommerce ecommerce events that are pushed into the data layer include:
Triggered when products are viewed on a category page, homepage, or any product list view. It contains information about the products being displayed.
Triggered when a user clicks on a product from a list of products, such as a category or search results page.
Triggered when a user views the details of a single product on the product page.
Triggered when a user adds a product to their cart. It includes details about the product, such as the name, price, and quantity.
Triggered when a user removes a product from their cart.
Triggered when a user starts the checkout process.
Triggered as the user moves through the checkout steps (such as providing billing information, selecting shipping options, etc.).
Triggered when a purchase is completed. It includes comprehensive details about the transaction, such as the total amount, products purchased, quantity, and transaction ID.
Triggered when a refund is processed, providing details about the refunded products.
After completing a test purchase using WooCommerce you'll arrive at the order confirmation page where you can do the following step to observe what has been sent to the datalayer.
If you take a closer look at what you see in the datalayer - you should be able to see that an event has been pushed into the datalayer along with an event name. We'll use the event name to create a Custom Event trigger.
If you take a look at the screen shot below you'll find that the event name is purchase.
Now when you know the name of the event, you can then move on to Google Tag Manager and create the event trigger when then may apply on your Ecommerce Conversion Tracking Tag by:
Before we create the tag, which in this case will be a Google Ads Conversion Tracking Tag, we'll have to create the Datalayer Variables for the data entries we'll like to apply on the Google Ads Conversion Tracking Tag such as the value of each order, the transaction ID, and user data such as email which in particular is the key element in setting up Enhanced Conversions.
Here is how to create the datalayer variables:
Setting up the datalayer variable: "dl - value"
Setting up the datalayer variable: "dl - transaction_id"
Setting up a Datalayer Variable: "dl - user info - email"
Earlier it was showed how you enable user data to be pushed into the datalayer with the WordPress plugin Datalayer for WooCommerce FREE.
Setting up a User Data Variable: "User Data - Email"
Finishing the Google Ads Conversion Tracking Setup
Now when we setup all the datalayer variables and the User-Provided data varialbe, we can then complete the setup up by adding the variables to the Google Ads Conversion Tracking Tag. Here is how:
Now when we have completed the setup it's time to test if everything has been setup correctly.
We are going to open Preview Mode and do another test purchase and then observe what happens in Tag Assistant.