add_to_cart event GA4
Has anyone successfully added an add_to_cart event for GA4 in xcart v.4.7.# using gtag?
I have the purchase event set up and working fine. Here is my current code... Code:
{if $main eq "order_message" and $orders} |
Re: add_to_cart event GA4
Yes. You can't do it through the tpl files as the purchase event as the add to cart goes through an ajax call so it has to be done with the ajax callback and the add to cart js file. Same goes for some other events at checkout - add payment, add shipping, begin checkout...
|
Re: add_to_cart event GA4
Oh, alright thanks Steve.
|
Re: add_to_cart event GA4
Quote:
Which file was this used in for the purchase event? |
All times are GMT -8. The time now is 11:05 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.