New Adwords Script HELP!

Scott5
New Member
1 0 0

Hi, 

I am attempting to install the new adwords script but the tutorial uses something with var and does not look anything like what Google is telling me to install. Any ideas on how to edit this code to include the transaction-specific values and transaction ids? 

<!-- Event snippet for Purchase/Sale conversion page -->
<script>
  gtag('event', 'conversion', {
      'send_to': (Removed my code)
      'value': 1.0,
      'currency': 'USD',
      'transaction_id': ''
  });
</script>

The old script looks like this: 

<!-- Google Code for new_code 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 = "ffffff";
var google_conversion_label = "Wk66CJYKwABCg6zc6wM";
var google_conversion_value = 1;
/* ]]> */
</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=1&amp;label=&amp;guid=ON&amp;script=0"/>
</div>
</noscript>

 

0 Likes