Setting up GA4
Login into Google Analytics.
Select an account for example:
Go to the “admin” part (left hand side).
Similar to follow page will appear:
Make sure you selected correct account:
And use “GA4 Setup Assistant”:
Follow "I want to create a new Google Analytics 4 property" steps:
After “Create and continue” your result will be: Green note - "Connected"
Follow: "Go to your GA4 property"
Make sure all selected as required, save and back to "Setup Assistant"
Right hand side (near "Collect website and app data") select arrow and select menu "Manage data streams"
"Web stream details" window will appear.
Select "View tag instructions"
Select "MEASUREMENT ID" and insert it in the shop's backend.
Both codes (Universal Analytics and G4) are supported.
On this G4 setup is complete.
You may check it in source code:
And in Google Analytics: "Reports" -> "Real-time"
"USERS IN LAST 30 MINUTES" value will be positive.