Not able to track revenue and conversion in GA (Locknlock.in)

Arif_lr17
Tourist
6 0 2

Hello Members,

I have build a new website and I have recently installed the GA G4 and UA through GTM, but it has been 10 hours but the conversion percentage or revenue it not showing up in either of my account. I have enable enhanced e-commerce in GA UA setting. The traffic coming is accurately getting reflected on GA but only the revenue and conversion are not getting tracked.

Also, i have placed this code in the addition scripts option in checkout.

{% if first_time_accessed %}
<script async src="https://www.googletagmanager.com/gtag/js?id=G-QS7MDV6JHH"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-QS7MDV6JHH');

var shipping_price = '{{shipping_price | money_without_currency }}';
shipping_price = shipping_price.replace(",", ".");

var total_price = '{{total_price | money_without_currency }}';
total_price = total_price.replace(",", ".");

var tax_price = '{{tax_price | money_without_currency }}';
tax_price = tax_price.replace(",", ".");

gtag('event', 'purchase', {
currency: "{{shop.currency}}",
transaction_id: '{{order.transactions[0].id}}',
shipping: shipping_price,
value: total_price,
tax: tax_price
})
</script>
{% endif %}

 

Website is: Locknlock.in

Let me know if any additional things I need to do or any errors I made in implementing them. I have created two separate UA and G4 account under the same id.

0 Likes
MS-WEB-DESIGNER
Shopify Partner
2807 176 470

Dear @Arif_lr17 

Use old GA tag with Google tag manager

0 Likes
Arif_lr17
Tourist
6 0 2

Do you mean, I should embed the Universal Analytics code in Tag manager?

0 Likes