Dynamic Adword Conversion Tracking Code in Oscommerce using Google Tag Manager

Standard

Track transaction-specific conversion values in Oscommerce (gtag.js)

Recently one of client ask me to implement dynamic adword conversion on directly putting code  or also using Google Tag Manager on Oscommerce with (gtag.js)

ClickFunnels Adword Conversion Tracking using Google Tag Manager

Standard

Track adwords Conversions Tracking with Clickfunnels using Google Tag Manager

Recently, one of client asks me to track Dynamic Adword conversion with ClickFunnels using Google Tag Manager. Already written a previous post , How to track E-commerce tracking in ClickFunnels using Google Tag Manager (http://googletagmanagersolution.com/click-funnel-ecommerce-tracking-using-google-tag-manager/) same concept is going to apply to track ClickFunnels Dynamic Adword Conversion Tracking using Google Tag Manager.

When you will start working on Adword conversion tracking for ClickFunnels make sure you will All the UpSell and Apply adword conversion when Upsell finish or does not go to UpSell. And Make sure you will make a test sale before start implement adword conversion tracking on ClickFunnels using Google Tag Manager.

Integrate ClickFunnels with Google Adword Conversion Tracking using Google Tag Manager

First Install Google Tag Manager to Track adwords Conversions Tracking with Clickfunnels

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

For Dynamic Adwords Conversions Tracking with Clickfunnels using Google Tag Manager used Custom Javascript 

  1. Ge Total Revenue Value of UpSell and other Revenue tracking using Google Tag Manager on ClickFunnels

    clickfunnels conversion tracking

    ClickFunnels Dynamic Adword Conversion Tracking using Google Tag Manager

Now it’s time to verify Adword Conversion Tracking for ClickFunnels using Google Tag Manager

ClickFunnels Adwords Conversion Tracking Tag Manager

Adword Conversion Tracking ClickFunnels using Google Tag Manager

Warning: If you do n’t know about javascript or do n’t have developing knowledge then do n’t try to implement on ClickFunnels Adword Conversion Tracking using Google Tag Manager that can broke your site, Cart and other functionality 

Disclaimer: Google tag manager belongs to Google property 

For Contact: mappchero@gmail.com

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

AdWords dynamic conversion values in Google Tag Manager

Standard

Recently once client asks me to setup google AdWords dynamic conversion values in Google Tag Manager before that he getting an error on Dynamic adword conversion tracking “Conversion Value should be prefixed with standard currency.”, “Conversion Value USD%20%2023“, conversion value not set“, “Double counting Adword Conversion Tracking”, “No HTTP response detected”, “Missing CDATA comments.” and “Non-standard implementation”

Here is two method Setup Dynamic Adword Conversion Tracking  either using Google Tag Manager or Directly Place a Code on Success with Require Dynamic Order Value.

Require following parameters to Set up correct Dynamic adword Conversion using Google Tag Manager or Success Pages

    1. Conversion ID  In the code box, the number after “var google_conversion_id = ” is the Conversion ID, and the number after “var google_conversion_label = ” is the Conversion Label
    2. Conversion Label – In the code box, the number after “var google_conversion_id = ” is the Conversion ID, and the number after “var google_conversion_label = ” is the Conversion Label.
    3. Conversion Value Total transaction value for every order “integrate transaction-specific”
    4. Order ID – Passing a dynamic order ID helps to avoid counting duplicate conversions.  If there are two conversions for the same conversion action with the same order ID, AdWords will know the second conversion is a duplicate, and it won’t be counted. The order ID must be unique for each order. The order IDs must not include any information that could be used to identify individual customers. It can include numbers, letters, and special characters like dashes or spaces, with a character limit of 64 characters.

Before actually set up dynamic adword conversion Tracking , you require to changes in google adword

See below changes in Google Adword

Dynamic Adword Conversion Tracking

Conversion ValueGetting a  Total Order value for adword conversion tracking two way, either you can place a data layer on success page or you can use custom javascript 

How to adword dynamic conversion tracking code to PHP pages

<!-- Google Code for Purchase Conversion Page -->
	<script type="text/javascript">
	/* <![CDATA[ */
	var google_conversion_id = 1234567890;
	var google_conversion_language = "en";
	var google_conversion_format = "1";
	var google_conversion_color = "666666";
	var google_conversion_label = "xxxxXXx1xXXX123X1xX";
	if (<? echo $totalValue ?>) {
		var google_conversion_value = <? echo $totalValue ?>;
		var google_conversion_currency = <? echo $currency ?>;
	}
	var google_conversion_currency = "USD";
        var google_remarketing_only = false;
	/* ]]> */ 
	</script>
	<script type="text/javascript"
	src="//www.googleadservices.com/pagead/conversion.js">
	</script>
	<noscript>
        <div style="display:inline;">
	<img height="1" width="1" style="border-style:none;" alt=""
	src="//www.googleadservices.com/pagead/
	conversion/1234567890/?value=
	<?echo $totalValue ?>&amp;currency_code=<? echo $currency ?>
	&amp;label=xxxxXXx1xXXX123X1xX&amp;guid=ON&amp;script=0">
        </div>
	</noscript>
	</body>

or Using Custom Javascript like

function(){

var total order = document.querySelector(“condition here”).innerText.match(/^.{1}(.*).{0}/i)[1].trim();

return total order;

}

Total Order Value for Dynamic Adword Conversion Tracking

Using Custom Javascript get total value of order for dynamic adwrod conversion tracking

Now it’s time check a result on the website using Google Tag Assistant 

 

Dynamic Adword Conversion Tracking

If you have an issue on adword conversion/Dynamic Adword Conversion tracking counting Double or duplicate in WordPress , Woocomerce, Magento, Shopify , Drupal, wix, Weebly , Joomla  etc any type of custom Cms.

For Contact: mappchero@gmail.com

Warning:if you do n’t know about javascript or do n’t have developing knowledge then do n’t try to implement Dynamic Adword Conversion tracking using Google Tag Manager without, it may be stop form submission  

Disclaimer: Google tag manager belongs to Google property