Google Analytics 4 Property with Shopware

It is there, the new Analytics 4 Property. The problem is, however, that Google creates only this property by default via the wizard. The "Google Services Plugin" of Shopware, however, can only work with UniversalAnalytics and the very old Analytics Property. If you enter the new ID, called Measurement ID which begins with "G-", in the Google Services Plugin in the Shopware backend, this will not help you. The new Analytics 4 Property needs an implementation via Google Tag Manger, but the Shopware plugin loads Universal Analytics, UA for short.
We'll now briefly show you how to connect Shopware and Google Analytics, despite this new hurdle.
Create Analytics 4 Property and the old Universal Analytics at the same time
First, go to Administration and add a new property. Here you have to show the advanced options to create a Universal Analytics property as well. We have also checked here that analytics should be optimized for the 4 property. Because the goal should eventually be to switch completely to the 4 version.
Administration -> Create Property -> Show Advanced Options -> Create Universal Analytics Property -> Create both Google Analytics 4 and Universal Analytics Property + Enable Optimized Analytics for Google Analytics 4 Property
Now you have created an old UA property in addition to the new Property 4. Now switch to this new UA property at the top of the main navigation.
Here you will also find directly the UA-ID which you have to enter into the Shopware Google Services Plugin:
Done! Now your shop should be tracked as usual.
Criticism: There is currently no simple solution to quickly store the actual new Analytics 4 property.
We will try to work out a solution in the coming weeks and present it here.

Hello, my name is Meike. I take care of the EXWE back office and am responsible for our social media channels. All of our articles are meant to make your life easier and help you make decisions. Nevertheless, it can happen that something remains unclear, so: If you have questions about this article you can easily reach me at +49 231 93149827.
Are you interested in Shopware and want to get started as a developer? Then we have tips for you on how to become the ultimate Shopware developer!
Learn about the improvements and new features from Shopware 6.0 to Shopware 6.4.1.0 and stay up to date on the topic of online store creation.
This is how you can add the shipping note for shipping abroad in Shopware - Shopware Hacks from EXWE that will make your life easier.