With fewer Google Ads controls available today, the correct conversion data becomes ever more important in optimizing your campaigns.
Instructions for setting up Google Ads conversion tracking on a Bigcommerce store with Google Tag Manager.
Today we’ll set up the Google Ads conversion tracking on a Bigcommerce site using Google Tag Manager. We will be doing it in three places:
Select Tools and settings, conversions, and create a conversion action of conversion source – website and these settings:
Click on Variables, user-defined variables and create a variable of a type Data Layer Variable.
Title it Ecommerce Revenue.
As a name use ecommerce.purchase.actionField.revenue. You can use a different name but then you’d have to change the custom code in the checkout page.
Create the trigger of type Custom event.
Set the event name as conversion. If using different name, apply it in the 4th line of the custom code in the checkout page.
Create a Tag of the type Google Ads Conversion Tracking
Create a tag of type Conversion liner, set it triggered on all pages, name it Conversion Linker
The GTM code has two parts. Both need to be added on every page of the Bigcommerce site.
To locate the code, click on the blue GTM ID in the Google Tag Manager window.
The first part of the code goes in the head section, and the second part goes in the body section.
In the Bigcommerce admin panel, click Themes, Advanced, Edit theme files, Templates, Layout and then click on base.html.
Add the first part of the code between the <head> and </head> tags.
Add the second part into the body section below the <body> tag.
In the Bigcommerce admin panel click Settings, Data Solutions, Affiliate conversion tracking.
Copy and paste the below code into this window in affiliate conversion tracking.
<script>
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
‘event’: ‘conversion’,
‘ecommerce’: {
‘purchase’: {
‘actionField’: {
‘id’: ‘%%ORDER_ID%%’,
‘revenue’: ‘%%ORDER_AMOUNT%%’,
}
}
}
});
</script>
In a few minutes after applying changes, you will see the conversion status in the Conversion action window will change to “recording conversions”.
Once the conversions start to arrive, their number and values will appear. It means that your conversion tracking is working properly.
With fewer Google Ads controls available today, the correct conversion data becomes ever more important in optimizing your campaigns.
Sign up to get Google shopping tips, news, and howtos
I won’t send you spam. Unsubscribe at any time.