Thank you for contacting the support.
Measurement ID is a factor of GA4 whereas the screenshot that you’ve shared from the source of the website is of a UA (Universal Analytics) property.
Could you confirm if you’ve enabled the Install analytics code option in Rank Math > General Settings > Analytics? https://rankmath.com/kb/using-ga4/#install-analytics-code
If not and if you’ve not added the GA4 tag to the website with any other plugin/theme/service, please enable that option and see if the tag gets added.
Let us know how that goes.
Hi, thanks for your quick response.
Yes, I was connecting rank math with the universal property. What I did was to disconnect the google service and then reconnect rank math with the GA4 property that I created. But, for some reason the analytic tag was not being inserted into the web page code. So I decided to copy the html code that analytics gives me, and paste it into the head.php directly, and it works fine👍🏻.
But, I wonder if what I did is good or it is a bad practice, because reading your post (about how to integrate rank math and google analytics), apparently that process is automatic and it is not necessary to do what I did.
Please tell me if it is right what I did, and if that is going to produce a bad function for rank math and analytics integration.
Adding the code manually won’t affect anything in Rank Math Analytics.
However, if you wish to install the code with Rank Math, please follow these steps:
1. Remove access to Rank Math from your Google account:
2. Then, head over to Rank Math > General settings > Analytics and reconnect with Google, give all the permissions, configure the settings again, and enable the Install Analytics code option.
Hope this helps.
Let us know how it goes.
Looking forward to helping you.
Thanks for your answer, defintely help me a lot. I will consider the guide above for connect google analytic directly with rank math.
Glad that helped.
Please feel free to reach out to us again in case you need any other assistance.
We are here to help.