Magento 2 Google Analytics 4 Tutorial – Set Up GA4 for Magento

Опубликовано: 16 Июнь 2026
на канале: Magefan - Trusted Magento & Shopify Solutions
1,921
5

Learn how to set up Google Analytics 4 in Magento 2 to track customer behaviour, measure conversions, and gain actionable insights — all without touching website code.
In this step-by-step tutorial, we’ll show you how to integrate Google Analytics 4 in Magento using the Magefan Google Tag Manager Extension.

Whether you’re a developer or a store owner, this setup makes it easy to collect accurate analytics data and understand your store’s performance.

⚙️ How to Set Up Google Analytics 4 in Magento 2?
1. Install the Magefan Google Tag Manager Extension
2. Create a Google Tag Manager account and GA4 property
3. Retrieve your GTM and GA4 tracking IDs
4. Add tracking IDs to your Magento admin panel
5. Export and import the JSON container file to GTM
6. Verify the connection and review your GA4 tags

🔗 Useful Resources
👉 Step-by-step guide: https://magefan.com/blog/add-google-a...
👉 Google Tag Manager Extension: https://magefan.com/magento-2-google-...
👉 More Magento 2 Extensions: https://magefan.com/magento-2-extensions

⏱️ Video Chapters
0:08 Get tracking IDs
0:40 Paste the tracking IDs into the Magento admin
1:08 Export JSON file from Magento
1:13 Import JSON file to GTM
1:56 Test GTM connection
2:08 Check GTM tags

#magefan #magefanextensions #googleanalytics4 #ga4 #googleanalyticstutorial #magento2