Hello,
We apologize for the issue you are facing with Google Analytics configuration in Rank Math. It seems that there might be a glitch in the connection between Rank Math and your Google Analytics account since the button is showing red.
To troubleshoot this, please follow these steps:
- Go to Rank Math SEO → General Settings → Analytics.
- Click on the Test Connections option at the top right of the Analytics settings. This will validate the existing connections.

- If you see a red signal again, try reconnecting your Google account by clicking on the reconnect option.

If the issue persists even after reconnecting, we recommend replying to this ticket and sharing any error logs you may have. This will help our support team assist you more effectively.
Thank you for raising this concern, and we hope to resolve it for you soon!
Sources:
Resolving Rank Math Analytics Related Issues » Rank Math
Resolving Rank Math Analytics Related Issues » Rank Math
Hello,
Thank you for contacting Rank Math, and sorry for any inconvenience caused.
Please follow these steps to reconnect Rank Math with your Google account and grant all the necessary permissions:
1) Remove Rank Math’s access from Google Please remove RankMath’s app from your Google apps permissions: https://myaccount.google.com/permissions

2) Re-connect to regenerate the auth token from Google
After that, reconnect the Google account again to regenerate the auth token from Google, by going to WordPress Dashboard > Rank Math > General Settings > Analytics and configure the Search Console and Analytics settings again:

3) Grant all necessary permissions
Kindly check all necessary checkboxes to allow Rank Math to access some of the Google Services. Please check my screenshot below for reference:

4) Follow the instructions to sign in with your Google account and allow Rank Math to access your data. https://rankmath.com/kb/connect-your-google-account/
You can also refer to this guide for more details: https://rankmath.com/kb/analytics-issues/#expired-google-oauth-token
We hope this resolves the issue for you.
If you still face any problems or have any questions, please let us know.
We’re always here to help.
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.