Analytics Stopped Working Week of May 19th – May 25th

#1065060
  • Resolved John C
    Rank Math free

    Rank Math Analytics Stopped Working

    I have a few websites that this happened on out of the blue without rhyme or reason and still can’t get them to collect any Analytics data, even though I have done all of the following:

    • Uninstalled any conflicting plugins (Site Kit for example) and reconnected Rank Math and enabled toggle to install analytics code.
    • Disconnected the Sites from my Rank Math account / dashboard and reconnected
    • Verified Wordfence isn’t blocking Rank Math via Learning Mode
    • Verified Scheduled Actions are running via https://yourdomain.com/wp-admin/tools.php?page=action-scheduler&status=pending
    • Verified there is actually data / traffic via Google Analytics and Google Search Console
    • Verified domain name is correct in GA4 and GSC
    • Tested all connections are green within Rank Math dashboard
    • Attempted to import new data manually via the Analytics Database > Delete Data and Update Data Manually buttons
    • Verified Cloudflare is not blocking Rank Math traffic and even created Page Rules and IP Address whitelists for Rank Math

    At this point, I have no clue what is causing the complete lack of data from showing up in the Rank Math dashboard under the Analytics and SEO Performance section.

    My architecture is as follows for reference:

    • Vultr VPS and using OpenLiteSpeed One-Click-Install for WordPress
    • Wordfence
    • Cloudflare DNS

    The odd thing is, everything was working fine, but multiple sites started showing issues during this week and have not recovered since even though data is flowing into GA4 and GSC. Please help me resolve this.

Viewing 12 replies - 16 through 27 (of 27 total)
  • Hello,

    We are able to manually pull data from Google as you can see from the screenshot below:

    Rank Math support

    This indicates that there may be an issue running the actions on your website. Can you please check with your hosting provider if the Cron Job is working as intended?

    Looking forward to hearing back from you.

    John C
    Rank Math free

    Any response?

    Hello,

    The action to fetch the data wasn’t present on the site. We have created it and the data fetch is now working fine.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    John C
    Rank Math free

    Can you please explain EXACTLY what you did in detail so I can apply the same “fix” across the other impacted websites?

    John C
    Rank Math free

    Anything?

    Hello,

    Please share the login details of other sites, so we can check and confirm if the issue is related to the missing data fetch action or something else.

    Looking forward to helping you.

    John C
    Rank Math free

    Jaideep – can you please simply just share WHAT you did in DETAIL to resolve the first site mentioned?

    I want to be able to apply the “fix” myself rather than lean on your support to “do it for me.”

    Thanks.

    Hello,

    We used our internal debugging tool for the data fetch action.

    If the issue persists on other websites, please share their login details with us so we can investigate.

    We look forward to hearing from you.

    John C
    Rank Math free

    Adetayo,

    Ah, so just so I understand (and everyone else likely to read this forum post) – we, the actual users of your plugin, won’t be able to resolve this specific issue on our own and need you (the plugin author) to resolve this on YOUR END?

    So, it’s not a problem with our websites, but rather a problem with your plugin/platform?

    Is there a KB article for this? A root cause explained why this would even happen to begin with?

    While I wait for your answers to the above, I will create some new temp accounts for you to access the other impacted websites. But in the meantime, if you could please answer the above, your community would benefit from an answer to the following:

    1. Why does this happen exactly?
    2. How can it be prevented?
    3. Can we resolve this on our own? (it doesn’t sound like it)
    4. How can we identify if you (Rank Math) need to get involved to resolve this on YOUR END?

    Thanks, John

    John C
    Rank Math free

    Adetayo – How are we looking on the above detailed explanation? Can you update your users, please?

    John C
    Rank Math free

    Is anyone from Rank Math Support willing to address the above? Or are we letting this thread die without a proper explanation?

    Hello,

    We apologize for the unexpected delay in response.

    Please note that when you install the Rank Math plugin on your website, it creates a scheduled action that triggers every 3 days (in the free version) to fetch the data automatically on your website. You can also check this Scheduled Action from your WordPress Dashboard > Tools > Scheduled Actions > Pending, or you can try visiting the following URL:

    https://yourdomain.com/wp-admin/tools.php?page=action-scheduler&status=pending
    

    This is how it should look:

    However, when we checked your website, we found that this scheduled action was missing, and that’s why Rank Math was not able to fetch the data on your website automatically. Most probably, this scheduled action was not created due to some Cron Jobs or any other issues.

    Which is why we manually fetch the data on your website using our debugger plugin here.

    When we confirmed there is nothing wrong with the plugin or your Google account connection, we manually created the scheduled action on your website, as you can see here.

    If you see that this scheduled action is missing on your other website, you can use the following filter code to add this to your website:

    function rm_set_schedule_analytics_data_fetch() {
    	if ( as_has_scheduled_action( 'rank_math/analytics/data_fetch' ) !== true ) {
    		as_schedule_recurring_action( strtotime( 'tomorrow' ), 3*DAY_IN_SECONDS, 'rank_math/analytics/data_fetch', array(), "rank-math" );
    	}
    }
    add_action( 'init', 'rm_set_schedule_analytics_data_fetch' );
    

    The filter can be removed after executing it once successfully.

    Here’s how you can add a filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    Thank 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 12 replies - 16 through 27 (of 27 total)

The ticket ‘Analytics Stopped Working Week of May 19th – May 25th’ is closed to new replies.