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&currency_code=USD&label=BlA8CNj0zWMQwpb5vAM&guid=ON&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…