Title: Universal Analytics &amp; GA4 parallel
Last modified: May 4, 2021

---

# Universal Analytics & GA4 parallel

 *  Resolved [W★](https://wordpress.org/support/users/filmpuls/)
 * (@filmpuls)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/universal-analytics-ga4-parallel/)
 * Heja Dan,
 * I do not seem able to manage to get the plugin working for Universal Analytics
   and GA4 in parallel. GA4 works (G-xxx (v4 API)), but whatever other setting I
   test for UA-yyy (v3 API), its either Universal Analytics or GA4 that is not working;
   Universal Analytics is connected to GA4 via tag in analytics.
 * thanks for advising.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funiversal-analytics-ga4-parallel%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 14 replies - 1 through 14 (of 14 total)

 *  [ijjimem](https://wordpress.org/support/users/ijjimem/)
 * (@ijjimem)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/universal-analytics-ga4-parallel/#post-14404005)
 * Same issue!
    I need both analytics and gtag-4 to be served locally.
 *  [ijjimem](https://wordpress.org/support/users/ijjimem/)
 * (@ijjimem)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/universal-analytics-ga4-parallel/#post-14404049)
 * 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 5 years, 1 month ago by [ijjimem](https://wordpress.org/support/users/ijjimem/).
 *  Thread Starter [W★](https://wordpress.org/support/users/filmpuls/)
 * (@filmpuls)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/universal-analytics-ga4-parallel/#post-14406121)
 * [@ijjimem](https://wordpress.org/support/users/ijjimem/) thanks, have tested 
   this already, but without success… have you connected GA4 to General Analytics
   or the other way round or vice versa?
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/universal-analytics-ga4-parallel/#post-14423911)
 * 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★](https://wordpress.org/support/users/filmpuls/)
 * (@filmpuls)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/universal-analytics-ga4-parallel/#post-14424559)
 * 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 5 years, 1 month ago by [W★](https://wordpress.org/support/users/filmpuls/).
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/universal-analytics-ga4-parallel/#post-14424586)
 * 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★](https://wordpress.org/support/users/filmpuls/)
 * (@filmpuls)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/universal-analytics-ga4-parallel/#post-14424800)
    1. the dumbest and at the same time truest of all answers: because a client of 
       mine wants it
    2. because a comparison of data from UA and GA4 is a good learning and therefore
       not without sense
    3. and: because it is not possible with CAOS plugin, but with tracking code in 
       header/footer it can be done.
 *  -  This reply was modified 5 years, 1 month ago by [W★](https://wordpress.org/support/users/filmpuls/).
    -  This reply was modified 5 years, 1 month ago by [W★](https://wordpress.org/support/users/filmpuls/).
    -  This reply was modified 5 years, 1 month ago by [W★](https://wordpress.org/support/users/filmpuls/).
 *  Thread Starter [W★](https://wordpress.org/support/users/filmpuls/)
 * (@filmpuls)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/universal-analytics-ga4-parallel/#post-14425129)
 * all questions answered; thanks Daan!
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/universal-analytics-ga4-parallel/#post-14425142)
 * Well, since you make such a convincing argument 😉 I started browsing around 
   the interwebs and found [this](https://developers.google.com/analytics/devguides/collection/ga4/basic-tag?technology=gtagjs).
 * 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](https://github.com/Dan0sz/caos-ga4-ua) which should
   do the trick!
 * Let me know how it goes!
 *  Thread Starter [W★](https://wordpress.org/support/users/filmpuls/)
 * (@filmpuls)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/universal-analytics-ga4-parallel/#post-14428357)
 * 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 5 years, 1 month ago by [W★](https://wordpress.org/support/users/filmpuls/).
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/universal-analytics-ga4-parallel/#post-14428364)
 * Page cache?
 *  Thread Starter [W★](https://wordpress.org/support/users/filmpuls/)
 * (@filmpuls)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/universal-analytics-ga4-parallel/#post-14428584)
 * 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 🙂 🙂
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/universal-analytics-ga4-parallel/#post-14428603)
 * So, we’re good. It works now?
 * Btw. You did insert your G- tracking ID into the code of the plugin?
 *  Thread Starter [W★](https://wordpress.org/support/users/filmpuls/)
 * (@filmpuls)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/universal-analytics-ga4-parallel/#post-14429268)
 * 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.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Universal Analytics & GA4 parallel’ is closed to new replies.

 * ![](https://ps.w.org/host-analyticsjs-local/assets/icon-256x256.png?rev=3307068)
 * [CAOS | Host Google Analytics Locally](https://wordpress.org/plugins/host-analyticsjs-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-analyticsjs-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-analyticsjs-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-analyticsjs-local/reviews/)

 * 14 replies
 * 3 participants
 * Last reply from: [W★](https://wordpress.org/support/users/filmpuls/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/universal-analytics-ga4-parallel/#post-14429268)
 * Status: resolved