Google Analytics through Rankmath impacts performance on mobile

#905611
  • Hello,

    I recently made a website myself which you can find here: http://www.blytz.be

    I noticed installing Google Analytics through Rankmath impacts the performance of the mobile version. It goes from score 95 to 74 according to PageSpeed Insights.

    On my client’s website however, this does not happen. So I think there’s something wrong with the configurations.

    I tried to reinstall Google Analytics but it does not help. I do not use any other plugins for Google Analytics and I use Kadence Pro for the website itself.

    Any tips?

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

    We apologize for the issue you are facing with the performance of your website after installing Google Analytics through Rank Math. It’s great that you are taking the initiative to optimize your site.

    While Rank Math is designed to be lightweight and optimized for performance, the integration of Google Analytics can sometimes lead to variations in performance based on various factors, including theme configurations, other scripts running on the site, or even server response times.

    Here are a few tips that might help improve your mobile performance:

    1. Check for Conflicting Scripts: Ensure that there are no other scripts or plugins that might be conflicting with the Google Analytics integration. Since you mentioned you are not using any other plugins for Google Analytics, this might not be an issue, but it’s worth double-checking.

    2. Optimize Your Theme: Since you are using Kadence Pro, make sure that the theme settings are optimized for performance. Sometimes, themes can add additional scripts or styles that can slow down loading times.

    3. Use Asynchronous Loading: If possible, ensure that Google Analytics is set to load asynchronously. This allows the rest of your page to load without waiting for the analytics script to finish loading.

    4. Minimize HTTP Requests: Check if there are any unnecessary HTTP requests being made by your site. Reducing these can help improve load times.

    5. Leverage Caching: If you haven’t already, consider implementing caching solutions to speed up your site. This can significantly improve load times on mobile devices.

    6. Test with Different Tools: Sometimes, PageSpeed Insights may show different results than other tools like GTmetrix or WebPageTest. Testing with multiple tools can give you a better overall picture of your site’s performance.

    If you’ve tried these suggestions and are still experiencing issues, please reply to this ticket, and a human agent from the Rank Math Support team will be able to assist you further. Thank you for raising this concern!

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress login in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    We tried temporarily disabling the Analytics module in our plugin, cleared your website caches, and tested your website on Google’s Pagespeed Test and we’ve come up with the same result for the mobile.

    Can you please confirm if your other website that doesn’t have this issue is also using the Kadence theme?

    Looking forward to hearing back from you.

    Hello Jeremy, thanks for your answer.

    Yes, the other website you can find in the following link: https://klanklicht.be/.
    If I go through the PageSpeed Test of Google, I often score above 90 on that website on mobile, despite it having more content.

    Also, I tested my website (blytz.be) when I disabled Rankmath Plugin altogether.

    Hope this reply helps.

    Hello,

    I would like to clarify: does your score consistently fluctuate between 95 and 75 after installing Rank Math, or does this happen only occasionally? We would appreciate it if you could share a screencast video with us so we can review the issue. When we investigated this on your website, we did not observe the same fluctuations.

    Thank you for your patience and cooperation.

    Best regards,

    Hello Great,

    See the screencast in the following link: https://youtu.be/uFEDQ3iX47E

    There you can see the Rankmath Plugin has an impact on mobile performance.
    The mobile performance always fluctuates between 65 – 85 when Rankmath is activated. However when it is deactivated, it easily gets above 95.

    Hello,

    The issue is that adding the tracking code adds JavaScript to the page loading and unfortunately, we cannot control that file because it comes directly from Google and we cannot make modifications to it, otherwise the tracking would not work.

    We already add the async parameter to the script to try and improve the initial page load but beyond that we cannot optimize the file directly.

    The seconds website doesn’t report the same issue because the server resources allocated to it are able to load it fairly faster and thus it doesn’t impact performance so much.

    Don’t hesitate to get in touch if you have any other questions.

    Hello Miguel, thanks for your answer.

    Both websites are on shared hosting on the same server. What could possibly be the reason that more resources are allocated to one website than the other? Aren’t they supposed to be equal?

    Hello,

    That would largely depend on the host and the individual websites, as a website with less resource-intensive functions/plugins will process scripts faster than websites with more resource-intensive functions.

    We hope this helps clarify the issue. Please let us know if you have any other questions or concerns.

    Thanks for the help!

    Hello,

    We are glad to know that this issue has been resolved. Thank you for letting us know.

    This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.

    We appreciate your patience and cooperation throughout this process.

    Thank you for choosing Rank Math.

    Gary Herbstman
    Rank Math pro
    Content AI Starter

    I have been seeing similar issues. From my investigation it looks like Google tag manager is being inserted by rank math. It is my understanding that Google tag manager is an optional component and not required for Analytics.

    Hello @garyh,

    Just wanted to clear up some details: Rank Math doesn’t work with Google Tag Manager—just Google Analytics. So even if you wanted to, it’s not possible to use Rank Math to set up Google Tag Manager on your site. We only add your Google Analytics code when you turn on the “Install Analytics Code” option.

    Please take a moment to double-check this on your end. If you’re still running into issues, feel free to open a new ticket here and share any images or videos of the problem, and we’ll look into it for you.

    We’re going to close this ticket now since the original issue seems to be resolved.

    Thanks for choosing Rank Math!

    Gary Herbstman
    Rank Math pro
    Content AI Starter

    This is a snippet of your code and it is clearly referencing Google Tag manager:

    protected function get_gtag_info() {
    // Get Google Analytics Property ID.
    $property_id = $this->get( ‘property_id’ );

    // Get main gtag script Url.
    $url = ‘https://www.googletagmanager.com/gtag/js?id=‘ . esc_attr( $property_id );

    $gtag_opt = [];
    if ( $this->get_amp_mode() ) {
    $gtag_opt[‘linker’] = [
    ‘domains’ => [ $this->get_home_domain() ],
    ];
    }

Viewing 15 replies - 1 through 15 (of 16 total)

You must be logged in to reply to this ticket.