Google Ads Conversion Tracking - Custom Variables - Please Help!

Sergio-Duque
Tourist
4 0 10

Hi Everyone,

ISSUE:

I'm running my shopify store with an external checkout called Cashier, From BOLD Apps.
(I know we're no longer allowed to use these 3rd party checkouts, but It was installed many years ago.)

I know we can add a regular custom script on shopify's checkout settings to track these Google sales, but It's been impossible for me because the Values we need to replace for the [order value], [currency], and all that Jazz, are different from the ones I'd use if I were using that code on the Shopify's checkout settings.

note: I already contacted them for support and all they say is they don't offer support for this very "specific" thing, which is really bad imo.

QUESTION;
If you know how to write/read code, I'd really appreciate it if you can help me out with this.

The following is the BASE code google provides, where i need to replace "{{ currency }}", '{{ order number}}'. and the 'Value" with my App's (checkout) Variables, which they provide, but I haven't been able to make the code work/run with successful purchases.

 

 

 

{% if first_time_accessed %}
<!-- Event snippet for Purchase conversion page -->
<script>
  gtag('event', 'conversion', {
    'send_to': '1234567',
    'value': {{ checkout.total_price | money_without_currency }},
    'currency': '{{ currency }}',
    'transaction_id': '{{ order_number }}',
  });
</script>
{% endif %}

 

 

 

The following image are the variables they say we can use (here's the link where they mention them) 

 

Variables.png

And there are 2 locations where they allow us to paste our tracking scripts, which are the following:

I believe I need to make this code work on Location 1, but I'm having troubles with the code itself.

1) location 1
Custom2.png

2) Location 2

Custom.png

One of my issues have been that I'm not sure what to do with the "gtag" word or the parentheses. Maybe its easy but I havne't been able to make it fire at the end of my test purchases. I'm testing whether it works or not with the google tag assistant. I don't know what lines to remove and what not.

 

I' really appreciate it if you can help me out with this!

 

Thank YOU!

Replies 0 (0)