Install Google Ads Conversion Tracking in BigCommerce With Enhanced Conversions

An easy step by step guide on how to install Google Ads conversion tracking to BigCommerce.

Supported Functions

  • Includes the new Google Ads enhanced conversion option

Requirements

  • Access to Google Ads > Conversions
  • Access to Bigcommerce > Advanced Settings

Step 1

Login to your BigCommerce dashboard and go to Settings > Data Solutions

BigCommerce Data Solutions

Now select Affiliate Conversion Tracking from the list.

BigCommerce Affiliate Conversion Tracking

Step 2

Login to Google Ads and click on Goals > Summery

Google Ads Goals Summery

Click on the big blue button (+New conversion action) and select website as your tracking template.

Enter your website URL and click on + Add a conversion action manually

Google Ads Add a Conversion Action Manually

Then do the following :

  • Goal and action optimization
    • Purchase / Sale
  • Conversion name
    • enter any name
  • Value
    • Use different values for each conversion
  • The rest can be as defaulted

Click on Done

Google Ads Conversion Action Details

Now go to Conversions > Settings > Enhanced Conversions

Check the box next to Turn on enhanced conversions

From the drop down options choose Google Tag and click on Tag details.

Google Ads Enhanced Conversion Tracking BigCommerce
  • Check Allow user-provided data capabilities
  • Check Automatically detect user-provided data
  • Check Specify CSS selectors or Javascript variables
  • Check the box next to Email and choose Javascript variable
  • Enter the value enhanced_conversion_data.email

Now go back to summary > click on your conversion action and click on tag setup

Scroll down till you see the event snippet and copy the send_to value, so we can use it in the next step

Copy Google Ads Conversion Sent To

Step 3

Paste the following codes in your recently opened Affiliate conversion tracking page

First past your Global site tag such as the example below

Replace the AW-123456789123 (twice) with your own AW-code

<!-- Google tag (gtag.js)-->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-123456789123"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-123456789123', {'allow_enhanced_conversions':true});
</script>

Step 4

Then right after that, we paste the event snippet, before we do this we need to edit the code. replace the following lines from your downloaded code snippet to the code example below :

  • ‘send_to’: ‘AW-123456789123/lkadsjKDweLK45W’,
    • change this line with your snippet
  • Change the currency code to the on your store uses
<!-- Event snippet for Sales conversion page -->
<script>
gtag('event', 'conversion', {
'send_to': 'AW-123456789123/lkadsjKDweLK45W',
'value': %%ORDER_AMOUNT%%,
'currency': 'USD',
'transaction_id': '%%ORDER_ID%%'
});
var enhanced_conversion_data = {
'email': '%%ORDER_EMAIL%%'
};
</script>

Click on save

Need Help?
Do you have a question or need specialist support? Get in touch!

Subscribe
Notify of
guest
22 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Gabriel
Gabriel
5 months ago

hello guys,

Thank you soooo much for this, it’s amazing.

The only issue is that Google ads reports me a warning because i do not give the addresss and phonenumber :

“Make sure you are including enhanced conversions fields (email, phone number, and address) for your tag set up to capture all web traffic conversions.”

Is there a way to give the phonenumber and address on the sale conversion page ?

Gabriel
Gabriel
Reply to  Emmanuel Flossie
4 months ago

Thanks a lot

Ajay Rajbanshi
7 months ago

Thanks for the article. An additional Inquiry => we have activated/configured the built-in BigCommerce Consent Banner. Since the conversion is set up through Affiliate Conversion Tracking, do we need to update any configurations for the conversion Action.

Last edited 7 months ago by Ajay Rajbanshi
Landious
9 months ago

Thanks for this valuable article!

Anna
Anna
1 year ago

Hi! Our client is using this code to track his orders on BigCommerce, but we’re noticing that recorded conversion value includes shipping cost (but not tax). Is there a way to exclude it?

Anna
Anna
Reply to  Emmanuel Flossie
1 year ago

Thank you!

Jordan
1 year ago

Thanks for this. After installing it just over a week ago – I am getting the following in Diagnostics…

Missing user data fields
14 out of 41 conversions from your website’s conversion action tags weren’t processed between Apr 29, 7 am and Apr 30, 7 am because there aren’t any enhanced conversions data fields.
Make sure that you are including enhanced conversions fields (email, phone number and address) for your tag setup to capture all web traffic conversions. Also, make sure that your tag is set up correctly.

I am assuming that there is always an email address for completed orders? I know there may be problems with different browsers / internet connections / javascript etc. form time to time but 14 out of 41 orders missing an email address seems very high though it’s a lot better than nothing…

Jordan
Reply to  Emmanuel Flossie
1 year ago

Thanks.

As far as I know it is not possible to complete an order without an email address in BigCommerce, so this variable should always be available? I’m still getting the problem, so I’ll ask Google support and BigCommerce support…

I also did notice that you are using double quotes for the order email and singel quotes for the other variables but the the best of my knowledge this makes no difference at all with JavaScript.

Jordan
Reply to  Emmanuel Flossie
1 year ago

Hello again.

Turns out the global site tag on the site (which was set up elsewhere in Big Commerce) didn’t have the {‘allow_enhanced_conversions’:true}
code in it.

It’s above my paygrade to edit live theme files so I’ve pasted in the global site tag in the affiliate conversion tracking (even though it wasn’t needed in there before as it was already on every page). I’ll find out soon enough if this fixes the problem. It’s very odd though that if that piece of code was missing that the majority of enhanced conversions still worked, anyway…

Also – Do you have one too many brackets in your global site tag code example? (Maybe it makes no difference – I’m no expert in javascript)

Here’s yours –

<!– Global site tag (gtag.js) – Google AdWords: 123456789123 –>
https://www.googletagmanager.com/gtag/js?id=xx-123456789123
<script>
 window.dataLayer = window.dataLayer || [];
 function gtag(){dataLayer.push(arguments);}
 gtag(‘js’, new Date());
 gtag(‘config’, ‘xx-123456789123’, {‘allow_enhanced_conversions’:true}));
</script>

Here’s the example from Google –

<!– Google tag (gtag.js) – Google Ads: 123456 –>
https://www.googletagmanager.com/gtag/js?id=TAG_ID
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config','TAG_ID', {'allow_enhanced_conversions':

true

});
</script>

Thanks again.

Jordan.

Jordan
Reply to  Jordan
1 year ago

This doesn’t seem to be working either. –

“Missing user data fields
18 out of 51 conversions from your website’s conversion action tags weren’t processed between May 13, 7 am and May 14, 7 am because there aren’t any enhanced conversions data fields.
Make sure that you are including enhanced conversions fields (email, phone number and address) for your tag setup to capture all web traffic conversions. Also, make sure that your tag is set up correctly.”

I’m guessing the global site tag for every page needs to be changed to include {‘allow_enhanced_conversions’:true} rather than just updating it in the affiliate tracking of BigCommerce… It would be nice if BigCommerce and/or Google had proper documentation on this….

Jordan
Reply to  Emmanuel Flossie
1 year ago

Turns out that the Google Ads Gtag code (for every page of the site) was set up in Settings – Data solutions – Universal Analytics. So I’ve modified the Gtag code there and removed it from Settings – Data solutions – Affiliate Conversion Tracking. We’ll see if this makes any difference in the next lot of days. (I know it can take ages for the enough data to come through to be able to view it, but I am assuming the error will go away within a few days if the data is being passed).
If this doesn’t work then I’m out of ideas…

Jordan
Reply to  Jordan
1 year ago

No. Still not working. e.g.

“19 out of 46 conversions from your website’s conversion action tags weren’t processed between May 28, 7 am and May 29, 7 am because there aren’t any enhanced conversions data fields.
Make sure that you are including enhanced conversions fields (email, phone number and address) for your tag setup to capture all web traffic conversions. Also, make sure that your tag is set up correctly.”

If anyone else has had similar problems but got it working successfully on BigCommerce I’d love to hear from them!

sam
sam
Reply to  Jordan
10 months ago

Same as, still cannot get this working

22
0
Would love your thoughts, please comment.x
()
x