An easy step by step guide on how to install Google Ads conversion tracking to BigCommerce.
Login to your BigCommerce dashboard and go to Advanced Settings >Web Analytics > Affiliate Conversion Tracking
Login to Google Ads and click on the 3dot menu in the top right corner and select Conversions under Measurement column.
Click on the big blue plus sign and select website as your tracking template.
Then do the following :
Click on Create and continue
Paste the following codes in your recently opened Affiliate conversion tracking page
First past your Global site tag such as the example below (do not use this example, use your own downloaded code snippet)
<!-- Global site tag (gtag.js) - Google AdWords: 123456789123 --> <script async src="https://www.googletagmanager.com/gtag/js?id=xx-123456789123"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'xx-123456789123'); </script>
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 :
<!-- Event snippet for Sales conversion page --> <script> gtag('event', 'conversion', { 'send_to': 'xx-123456789123/lkadsjKDweLK45W', 'value': %%ORDER_AMOUNT%%, 'currency': 'USD', 'transaction_id': '%%ORDER_ID%%' }); </script>
Click on save