- Make sure you've set your
googleAnalytics="G-XXXXX"
in your config file.
- Make sure the code you've set is your expected measurement id.
- Once this is done, deploy the change, go to your front-end, reload the site clearing the cache while having your Network tab of the Dev tools open.
- Filter the network tab by "collect". Inspect the collect calls.
- Look whether you can see your measurement id in the
tid
property of your calls.
If you see your tid, then you're good. Give it two days max and you should start seeing the traffic reflected in reports. Or see real-time reports if you want to confirm further without waiting.
If you don't see your tid, then it looks like your theme ignores the config's GA4 setting, so it might be hardcoded there. You have two ways from here: change your theme to use the right code whether from the settings or just hardcode the right ga4 code, or you can just keep using your UA tracking but ask Google to cast it all into GA4 through the setup assistant.
The best solution here would be ditching UA/GA4 implementation and reimplement tracking through GTM completely. That is if you're serious about tracking and need to do more than trivial pageviews.