Hi, installed Google Ads Conversion Tracking via Google Tag Manager. Issue with Purchase Value

Hi,
I have installed Google Ads Conversion via GTM. I have installed the Purchase Tag as Google Ads Conversion and as GA4 event to use in GADS as secondary conversion. The GA4 event fires and also measures the Conversion VALUE, while the GADS Purchase event doesn’t measure the VALUE, which shows always as $0.

Below is the setup:

Code:

{% if first_time_accessed %}

{% endif %}

Google Tag Manager Purchase Tag setup:

Google Tag Manager Variable Value at this time - also tried with only “ecommerce.value” :

Could you please help?

Thank you in advance.

2 Likes

@giovanni_maggi
please find the correct version of the purchase value liquid code that was as per the liquid code.
you can validate the with GTM previews.

window.dataLayer.push({
      event: 'purchase',
      ecommerce: {
        transaction_id: "{{ order.order_number }}",
        currency: "{{ order.currency }}",
 'value': {{ checkout.total_price  | times: 0.01 }},
  "tax": {{ checkout.tax_price | times: 0.01 }},
"shipping": {{ checkout.shipping_price | times: 0.01 }},
"discount": {{ checkout.discounts_amount | times: 0.01 }},

        items: items
      }
    });

{% endif %}

I hope this will help you. let me know if you need further details.

hi,

thanks for your reply.
However, I don’t see the “value” in your code. Shouldn’t be included a line:
“value: …”
to be able to retrieve the variable?

thanks

1 Like

@giovanni_maggi please check again I have updated my answers.