1

Google Universal Analytics will be going away in July 2023 to be replaced with Google Analytics 4.

On July 1, 2023, standard Universal Analytics properties will stop processing new hits. If you still rely on Universal Analytics, we recommend that you prepare to use Google Analytics 4 going forward.

What is the best way to migrate from Google Universal Analytics to GA4 in older Magento 2.4 versions whilst still retaining all the eCommerce analysis provided by the current Universal Analytics module?

I am not interested in links to commercial modules.

3 Answers 3

2

Which Magento version you are using? If you using Magento version >=2.4.5, Magento already released a new module called GoogleGtag to support GA4 and also keeps the old ** GoogleAnalytics** module to support Google Universal Analytics

If you using Magento version < 2.4.5, you can create a custom module based on GoogleGtag module from Magento core version 2.4.5. I'm going to do that and then share it as an open source (free) module to help the community who use Magento versions < 2.4.5 (includes support 2.3.x). Once I have done that, I'll share it and update this answer.

1
  • 1
    Thanks I was referring to < 2.4.5 - making the 2.4.5 module available would be a great idea.
    – paj
    Nov 7, 2022 at 15:08
2

You can setup the Google Analytics 4 tracking alongside Universal Analytics and run both trackings parallelly until the UA expires. I have across a blog that contains the detailed GA4 setup mentioning every step required. You can use this guide to complete the GA4 setup by yourself. https://www.scommerce-mage.com/blog/how-to-setup-magento-2-ga4google-analytics-4.html

0

Instruction on how to configure GA4 with GTM for Magento 2 Store. Easy Step by Step guide configures GA4 Extension in your Magento 2. https://www.magedelight.com/resources/how-to-configure-ga4-with-gtm-in-magento-2-store/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.