Same issue!
I need both analytics and gtag-4 to be served locally.
Nevermind, find the solution.
Use GA4 tag instead of analytics regular tag in the Google for WooCommerce.
In GA configure them to be connected to each other.
Good luck π
-
This reply was modified 1 year, 10 months ago by
ijjimem.
Thread Starter
Wβ
(@filmpuls)
@ijjimem thanks, have tested this already, but without success… have you connected GA4 to General Analytics or the other way round or vice versa?
Hi!
Can you provide me with steps on how to setup UA alongside GA4? Because I honestly don’t really understand what you’re aiming at here. :+)
Thread Starter
Wβ
(@filmpuls)
Hi back,
Communication is the illusion that it has occurred π
my question is: can CAOS plugin gather data from both UA and GA4? I have tested to add Google Analytics Tracking ID G-xxx in Basic settings and G4tag.js under advanced settings, and also adding Google Analytics Tracking ID UA-xxx and analytics.js without success.
best, K
-
This reply was modified 1 year, 10 months ago by
Wβ
.
Hi W,
That clarifies things. π Thanks!
Short answer: No, CAOS can’t do that. π It’s either GA4 or UA. Could you provide a use case why that would be a useful feature? Then I’ll consider adding it. π
Thread Starter
Wβ
(@filmpuls)
all questions answered; thanks Daan!
Well, since you make such a convincing argument π I started browsing around the interwebs and found this.
According to Google’s documentation we should be able to run them both in paralel by simply providing the GA4 ID in a second config attribute.
So, I made this mini plugin which should do the trick!
Let me know how it goes!
Thread Starter
Wβ
(@filmpuls)
thanks, Daan – tested it, did not work and even having deleted the mini-plugin and CAOS (removing all data from CAOS) and re-installed CAOS, CAOS plugin is not adding UA-code (checked in the source code) anymore and stopped working π
-
This reply was modified 1 year, 10 months ago by
Wβ
.
Thread Starter
Wβ
(@filmpuls)
first thing I did – checked the SQL (I know, there is a seeting in advanced section to erase all data when uninstalling), but still found some data, probably because I am using CAOS happily for years now.
re-installed and here we go, the magic happens π π
So, we’re good. It works now?
Btw. You did insert your G- tracking ID into the code of the plugin?
Thread Starter
Wβ
(@filmpuls)
good is the prename, its close to perfect π and yes, have adapted G-XXXXXXX in caos-ga4-ua.php in order to help Mr. Google to understand who I am.