Analytics data issue

#1053374
  • Resolved Jim Beam
    Rank Math free

    Good day, when I connect RankMath to Search Console account, the widget at dashboard stops to load. I have followed some of the troubleshooting steps at https://rankmath.com/kb/analytics-issues/ but none of them resolves the state. The connection test is successful but rank_math/analytics/data_fetch cron hook is missing. I also get this fatal error in php.log

    [19-Jun-2025 03:01:06 UTC] PHP Fatal error: Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /home/html/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-analytics-common.php:339

    This suggests that the analytical data might be corrupted but I don’t know how to rebuild them (none of the fixing tasks in Database Tools did remove the issue). Can you give me some clue to remove the culprit?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    We apologize for the issue you are facing with the Rank Math Analytics data. It seems like there are a few things to address based on your description.

    1. Missing Cron Hook: The missing rank_math/analytics/data_fetch cron hook could indicate that the scheduled actions are not running properly. You can try to manually run the scheduled action by going to WordPress Dashboard → Tools → Scheduled Actions → Pending and look for the action named rank_math/analytics/data_fetch. If it’s pending, you can run it manually.

    2. Fatal Error: The fatal error you mentioned suggests that there might be an issue with the data being processed. This could be due to corrupted data in your analytics database. To address this:

      • Navigate to Rank Math SEO → General Settings → Analytics.
      • Scroll down to the Analytics Database section and click on Delete Data. This will clear any corrupted data.
      • After deleting, click on Update Data manually to fetch fresh data from Google Analytics and Search Console.

      Delete and Update data in Analytics

    3. Reconnecting Accounts: Since the connection test is successful, but you are still facing issues, it might help to disconnect and reconnect your Google account in the Analytics settings. This can sometimes resolve underlying connection issues.

    4. Debugging Further: If the problem persists, you may want to create an Analytics debug log file to capture more details about the issue. You can do this by adding the following filter to your theme’s rank-math.php file:

      add_filter( 'rank_math/analytics/log_response', '__return_true' );

      After adding this, run the pending scheduled actions again and check the log file located in /wp-content/uploads/rank-math/.

    If these steps do not resolve the issue, we recommend replying to this ticket with any additional details or error logs, and a human agent from our support team will assist you further. Thank you for raising this concern, and we hope to help you resolve it soon!

    Sources:
    Resolving Rank Math Analytics Related Issues » Rank Math
    Resolving Rank Math Analytics Related Issues » Rank Math

    How can I manually wipe all analytics data? The numbers that appear in search traffic, CTR, impressions etc. It seems in General settings > Statistics > Delete data does not clear them. I’m getting n/a for all values in the main statistics box.

    Hello,

    Please click this button and paste the data here so we can check your site

    clipboard

    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.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Analytics data issue’ is closed to new replies.