How to track transaction-specific conversion values (Google Adwords)?

Highlighted
New Member
8 0 0

Hey guys,

I'm currently tracking conversions through Google Adwords, however, I'm only seeing the # of conversions and not the specific transaction value (e.g., $59 or whatever the sale amount is).

I suspect this is a code issue. I'm currently using the following, which has been pasted under Settings > Checkout > Additional Scripts:

Any ideas anyone?

<!-- Google Code for Shopify Sales Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 851734237;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "2M36CLLfoXEQ3d2RlgM";
if ({{ total_price }}) { var google_conversion_value = {{ total_price | money_without_currency }}; }
var google_conversion_currency = "AUD";
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/851734237/?value={{ total_price | money_without_currency }}&amp;currency_code=AUD&amp;label=2M36CLLfoXEQ3d2RlgM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>

 

 

0 Likes
Highlighted

Looks like the conversion value should be tracking for you Ben.

There are some alterations and improves you can make. See my AdWords tracking guide for Shopify.

To debug, you can visit the thank you page of an order then look at the source code to confirm the google_conversion_value is what you want it to be. You should also go to the Tools>Conversions section of AdWords to see what conversion is being triggered because sometimes the conversions can come from other sources you've setup.

Run Google Shopping ads? Get the free definitive guide to Google Shopping for Shopify (no optin required): https://www.digitaldarts.com.au/google-shopping
0 Likes
Highlighted
New Member
8 0 0

Thanks mate! Very helpful - AdWords specific value tracking all working fine now.

0 Likes
Highlighted
New Member
2 0 0

Nevermind! Realized Shopify is not supporting gtag.js right now.

0 Likes
New Member
1 0 0

The new conversion tracking code looks a little different so can anyone tell me how to edit that, What I found is this one. Let me know if that looks OK:

<!-- Global site tag (gtag.js) - Google AdWords: YOUR CODE -->
<script async src="YOUR CODE"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'YOUR CODE');
</script>
<script>
  gtag('event', 'conversion', {
      'send_to': 'YOUR CODE',
      'value': {{ total_price | money_without_currency | remove:',' }},
      'currency': 'USD',
      'transaction_id': '{{ order.order_number }}'
  });
</script>

0 Likes
Highlighted

See the link I shared above.

Run Google Shopping ads? Get the free definitive guide to Google Shopping for Shopify (no optin required): https://www.digitaldarts.com.au/google-shopping
0 Likes