Hello,
We apologize for the issue you are facing with the tracking code installation. The error message you are encountering, "The value for the ‘parent’ field was invalid but must be in format ‘accounts/123’," typically indicates that there may be a problem with the Google Analytics account or property setup in Rank Math.
Here are a few steps you can take to troubleshoot this issue:
-
Check Your Google Analytics Account: Ensure that you have the correct account and property selected in the Rank Math settings. You can verify this by going to the Rank Math Analytics settings and confirming that the account ID matches the one in your Google Analytics account.
-
Enable Install Analytics Code: Make sure that you have enabled the Install Analytics Code option in Rank Math’s settings. This option should only be enabled if you are not using any other plugin or theme to add your Google Analytics code.

-
Save Changes: After making any changes, ensure you click on the Save Changes button at the end of the page.

-
Clear Cache: If you have caching enabled on your site, clear your cache after making these changes to ensure that the latest settings are applied.
If you continue to experience issues, please reply to this ticket with your website URL so that a human agent from our support team can assist you further. Thank you for raising this concern, and we appreciate your patience as we work to resolve it!
Sources:
How to Install Google Analytics With Rank Math SEO » Rank Math
Hello,
Thank you for your query and we are so sorry about the trouble this must have caused.
If you have not yet created a GA4 property for your website, please visit this page (https://analytics.google.com/analytics/web/) and sign up for a Google Analytics account and property.
Once done, reconnect your Google Account in Rank Math so the new Analytics account will reflect in the dropdown section.
Let us know how that goes. Looking forward to helping you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.