| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
add_to_cart event GA4 | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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
|
|||||||||
|
|||||||||
![]() 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
|
|||||||
|
|||||||
![]() 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
|
|||||||
|
|||||||
![]() Quote:
Which file was this used in for the purchase event? |
|||||||
#5
|
|||||||
|
|||||||
![]() Did you get his worked out? Thanks
__________________
216 Digital Marketing - Cleveland, OH Cleveland SEO. |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|