| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
add_to_cart event GA4 | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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:
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3 mods: reCaptcha running on UNIX www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2 mods: reCaptcha cdseo pro running on UNIX |
|||||||
#2
|
|||||||||
|
|||||||||
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...
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
Re: add_to_cart event GA4
Oh, alright thanks Steve.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3 mods: reCaptcha running on UNIX www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2 mods: reCaptcha cdseo pro running on UNIX |
|||||||
#4
|
|||||||
|
|||||||
Re: add_to_cart event GA4
Quote:
Which file was this used in for the purchase event? |
|||||||
|
|||
X-Cart forums © 2001-2020
|