Expand my Community achievements bar.

SOLVED

Errors in Google Tag Assistant on AdWords Conversion Tag in DTM

Avatar

Level 3

I could use some assistance with implementing an AdWords Conversion tag that uses a dynamic variable (from DTM data element) for the Google Conversion Value.

Below is what I have currently implemented in DTM.  I'm trying to pull in the orderValue from the confirmation page using _satellite.getVar (below that is an example of the underlying code from that page).

Asynchronous HTML:

<!-- Google Code for Order Confirmation Page Conversion Page -->

<script type="text/javascript">

/* <![CDATA[ */

var google_conversion_id = 933120834;

var google_conversion_language = "en";

var google_conversion_format = "3";

var google_conversion_color = "ffffff";

var google_conversion_label = "BlA8CNj0zWMQwpb5vAM";

var google_conversion_value = _satellite.getVar('orderValue');

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/933120834/?value=orderValue&amp;currency_code=USD&amp;label=BlA8CNj0zWMQwpb5vAM&amp;guid=ON&amp;script=0"/>

</div>

</noscript>

 

Underlying page source from where I’m capturing orderValue and feeding into a Data Element:

 

                 analyticsData.orderNumber = 'dc492ac47e1e4dec8e0667d6d837e7ef';

                 analyticsData.confirmationCartValue = '165.49';

                 analyticsData.confirmationCartNumberOfItems ='2';

                 analyticsData.state = 'TX';

                 analyticsData.city = 'SAN ANTONIO';

                 analyticsData.zip = '78201';

 

Test for orderValue in the console:

 

_satellite.getVar('orderValue')

"165.49"

 

Hope this all makes sense.  Any help or suggestions would be HUGELY appreciated…

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi ,

As per our understanding, Adwords conversion tag is being fired through a Page Load rule on the Order Confirmation page and uses a dynamic variable (from DTM data element) for the Google Conversion Value . Hence we would recommend to implement the tag as a Sequential HTML tag instead of Non-sequential HTML tag because as a general rule, tags that depends on page elements should be defined as sequential tags.   

Also, Apart from the above suggested change everything seems to be perfect. Please let us know in case of any questions or queries.

Thanks & Regards

Parit Mittal

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi ,

As per our understanding, Adwords conversion tag is being fired through a Page Load rule on the Order Confirmation page and uses a dynamic variable (from DTM data element) for the Google Conversion Value . Hence we would recommend to implement the tag as a Sequential HTML tag instead of Non-sequential HTML tag because as a general rule, tags that depends on page elements should be defined as sequential tags.   

Also, Apart from the above suggested change everything seems to be perfect. Please let us know in case of any questions or queries.

Thanks & Regards

Parit Mittal