Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Errors in Google Tag Assistant on AdWords Conversion Tag in DTM

Avatar

Avatar
Validate 1
Level 3
flandyroyd
Level 3

Likes

22 likes

Total Posts

20 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
flandyroyd
Level 3

Likes

22 likes

Total Posts

20 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
flandyroyd
Level 3

30-03-2016

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…

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

30-03-2016

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

Answers (0)