All things Shopify and commerce
Hi all,
I've recently reviewed my Google Ads conversion tracking tags in my Shopify theme code and realised I had the following values:
'value': 1.0, 'transaction_id': ' '
But i've been reading that it is better to dynamically track both value and the order number as follows:
'value': {{ checkout.total_price | money_without_currency }}, 'transaction_id': '{{ order.order_number }}'
I understand the value part (captures conversion value more accurately), but I don't see any additional benefit from including the order number? I cannot even see anywhere in Google Ads where its possible to view the order number against a conversion.
Could someone help me understand this better?
Is this a generic answer or do you know this specifically because, as I mentioned in my original question, there doesn't appear to be any way to actually see the Order Number in Google Ads.
Happy to be corrected if that's not the case.
Tracking the order number will allow you to avoid double tracking. For example when the user reloads the thank you page, or navigates back to that page.
Then Google will see the same transaction id, and will not count it again in Google Ads.
You can learn more here: https://support.google.com/google-ads/answer/6386790?hl=en
It has nothing to do with tracking specific orders or getting back the customer.
@EmmanuelFlossie is right. Further to his response, if you track the order ID with the order object, you will still have duplicate tracking issues since the variable is sometimes empty.
Your best following my tutorial. Instead use
'transaction_id': '{{ name }}',
You can even further expand and use
{{ order.name||order.id }}
And of course wrap it inside a
I tried all these suggested codes in GTM as transaction-ID but always got an error warning which was saying, the variable is wrong.
Which one I should add now?
Thank you
Simon
All the mentioned examples are valid. It's possible you are having a different issue.
But in any case, here is another value you can use.
{{ order_id }}
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024