Bigcommerce Dynamic Adwords Conversion Tracking using Google Tag Manager

Standard

Dynamic Adwords conversion Tracking in BigCommerce using Google Tag Manager

Recently, one of my clients asks me to implement dynamic adword conversion tracking using Google Tag Manager include an order id with Dynamic total revenue using Javascript to avoid duplicate adword Transaction.

Once I looked his website and found there was an error in Google Tag Manager code that was not placed on the right place, quite difficult to place right place because, these errors found in the most BigCommerce product Pages and Home Pages.

  1. GTM JavaScript code not found as a direct child of the <head> tag
  2. GTM no-script code not found: either missing or not in <body>

To Work Google Tag Manager in BigCommerce without any Error I modified tracking theme code of BigCommerce (Stencil)

BigCommerce Google Adwords Conversion Tracking

BigCommerce Google Adwords Conversion Tracking using Google Tag Manager

  1. First Install Google Tag Manager on Your Bigcommerce for BigCommerce Google Adwords Dynamic Conversion using Google Tag Manager
Paste this code as high in the <head> of the page as possible:
<!– Google Tag Manager –>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
‘https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,’script’,’dataLayer’,’GTM-XXXX’);</script>
<!– End Google Tag Manager –>
Additionally, paste this code immediately after the opening <body> tag:
<!– Google Tag Manager (noscript) –>
<noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-XXXX”
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<!– End Google Tag Manager (noscript) –>

Note: Make you will replace GTM Tracking Code with your GTM ID XXXXX

2. Written a Custom Javascript to get order id and Total Order value using Google Tag Manager for Adword Dynamic conversion for Bigcommerce

3.  Now it’s time to verify Dynamic Adwords conversion Tracking in BigCommerce through Google Tag Manager with help of Google Tag Assistant 

Adwords Conversion Tracking Tag Manager

Warning:if you do n’t know about javascript or do n’t have developing knowledge then do n’t try to Google Analytic Dynamic Adwords conversion Tracking in BigCommerce using Google Tag Manager a custom javascript without using Any plugin that can broke your site, Cart and other functionality 

Disclaimer: Google tag manager belongs to Google property 

For Contact: mappchero@gmail.com

No Fields Found.

Leave a Reply

Your email address will not be published. Required fields are marked *