You have probably received several emails from Google informing you that as of July 1, 2023, the analytics system (Universal Analytics) will be retired and will need to be upgraded to Google Analytics 4 (GA4).
The time when analytics will stop working is approaching. Since Magento does not yet have built-in GA4 functionality for event reporting, we decided to create our own module for integration into Magento 1.9 / Openmage. There are some paid modules on the market, but we found that customers report issues with functionality and data reporting.
How exactly does the Google Analytics 4 module for Magento 1 / Openmage work?
The module is installed on the website and then reports GA4 information about the content the user is viewing. This way, we can observe in real-time what the customer is viewing and what their actions are.

Below is a list of events that we have integrated and that the store reports:
- view_item - viewing a product page
- view_item_list - viewing a category of items
- add_to_cart - adding an item to the cart
- remove_from_cart - removing an item from the cart
- view_cart - viewing the cart (checkout/cart)
- begin_checkout - beginning the checkout process (checkout/onepage, firecheckout, checkout/onestep,..)
- purchase - completing a purchase (checkout/success)
- sign_up – user registration
- login - user login to the account
The data displayed is in the form of a Google Tag (gtag) and is reportedly also recognized by Tag Manager.
You can read more about the events at the link below: https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag
The price of the module with installation is 150€ + VAT. You can order the module and its installation via email at podpora@degriz.net.
Additional modifications or customizations of the module are not included in the price. The module is ready for Magento 1.9.4.5 and for Openmage. The price of the module is for one Magento installation (there can be multiple stores on the same installation).
The module is managed under System / Configuration / Degriz / Gtag for Google Analytics 4 and can be configured for each store if you have multiple stores through the administration.

Of course, if you are not interested in events, you can add the GA4 code to the store for integration without additional modules. You can do this under the menu System / Configuration / General / Design / HTML Head -> Miscellaneous Scripts.
For all those who have the system upgraded to the latest version of Openmage (19.5 or 20.1), we have added the option to set the GA4 code under the menu System / Configuration / Sales / Google API.
You can check your store version by logging into the administration and checking the footer of the website. For security and better performance, we recommend that you update the store regularly.
For Magento 2, we currently do not have our own module and have not tested alternative modules. If there is interest, the module will be developed.
