Google Analytics not working on website

#611109
  • Resolved Brian Crocker
    Rank Math free

    I have followed the instructions here to try and get this working but the results are still showing 0 for everything. It is for babydam.com but I use rank math for a few clients and I have the same issue for all my websites

    Here is a copy of my system info

    
    ### rank-math ###
    
    version: 1.0.120
    database_version: 1
    plugin_plan: Free
    active_modules: link-counter, analytics, seo-analysis, sitemap, rich-snippet, woocommerce, acf, content-ai, instant-indexing, role-manager, redirections, local-seo, 404-monitor, image-seo
    refresh_token: Token exists
    permissions: 
    	Search Console: Given
    rank_math_404_logs: 176 KB
    rank_math_redirections: 96 KB
    rank_math_redirections_cache: 64 KB
    rank_math_internal_links: 96 KB
    rank_math_internal_meta: 16 KB
    rank_math_analytics_gsc: 11 MB
    rank_math_analytics_objects: 32 KB
    rank_math_analytics_inspections: 176 KB
    
    ### wp-core ###
    
    version: 6.2.2
    site_language: en_GB
    user_language: en_GB
    timezone: Europe/London
    permalink: /%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: undefined
    environment_type: production
    user_count: 119
    dotorg_communication: true
    
    ### wp-dropins (3) ###
    
    advanced-cache.php: true
    db.php: true
    object-cache.php: true
    
    ### wp-active-theme ###
    
    name: BabyDam V3 (babydam-website-v3)
    version: 1.0.0
    author: Brian Crocker
    author_website: https://babydam.com
    parent_theme: none
    theme_features: core-block-patterns, post-thumbnails, wc-product-gallery-slider, wc-product-gallery-zoom, widgets-block-editor, title-tag, automatic-feed-links, html5, menus, custom-logo, woocommerce, widgets
    theme_path: /var/www/vhosts/babydam.com/httpdocs/wp-content/themes/babydam-website-v3
    
    ### wp-mu-plugins (1) ###
    
    [Smush Pro] - Fix some images are not serving from CDN.: author: Thobk @ WPMUDEV, version: (undefined)
    
    ### wp-plugins-active (43) ###
    
    Advanced Custom Fields: Font Awesome: version: 4.0.5, author: Matt Keys
    Advanced Custom Fields PRO: version: 6.1.7, author: WP Engine
    Ajax Load More: version: 6.1.0, author: Darren Cooney
    Ajax Load More: Filters: version: 2.1.0, author: Darren Cooney
    Better Search Replace: version: 1.4.2, author: WP Engine
    CookieYes | GDPR Cookie Consent: version: 3.1.1, author: CookieYes
    Defender Pro: version: 4.0.0, author: WPMU DEV
    Duplicate Page: version: 4.5.2, author: mndpsingh287
    Facebook for WooCommerce: version: 3.0.30, author: Facebook
    Fluent Forms: version: 5.0.7, author: Contact Form - WPManageNinja LLC
    Fluent Forms Pro Add On Pack: version: 5.0.7, author: Fluent Forms
    Google Customer Reviews for WooCommerce: version: 2.6.12, author: eCreations
    Google Listings and Ads: version: 2.5.0, author: WooCommerce
    Hosting Tools: version: 2.4.4, author: 34SP.com
    Hummingbird Pro: version: 3.5.0, author: WPMU DEV
    Hustle Pro: version: 4.8.0, author: WPMU DEV
    Mailchimp for WooCommerce: version: 3.1, author: Mailchimp
    MonsterInsights - Dimensions Addon: version: 2.0.8, author: MonsterInsights Team
    MonsterInsights - eCommerce Addon: version: 8.4.0, author: MonsterInsights Team
    MonsterInsights - EU Compliance: version: 2.2.7, author: MonsterInsights Team
    MonsterInsights - Forms Tracking Addon: version: 2.2.8, author: MonsterInsights Team
    MonsterInsights - Google Optimize Addon: version: 1.5.2, author: MonsterInsights Team
    MonsterInsights - Media Addon: version: 1.0.9, author: MonsterInsights Team
    MonsterInsights - Page Insights Addon: version: 1.5.4, author: MonsterInsights Team
    MonsterInsights Pro: version: 8.18, author: MonsterInsights
    OptinMonster: version: 2.13.7, author: OptinMonster Popup Builder Team
    Order / Coupon / Subscription Export Import Plugin for WooCommerce: version: 2.4.9, author: WebToffee
    Payment Plugins for Stripe WooCommerce: version: 3.3.44, author: Payment Plugins, s******@p*****************
    Print Invoice & Delivery Notes for WooCommerce: version: 4.7.3, author: Tyche Softwares
    Product Customer List for WooCommerce: version: 3.1.5, author: Kokomo
    Product Variation Swatches for Woocommerce: version: 2.3.3, author: ThemeHigh
    Query Monitor: version: 3.13.1, author: John Blackbourn
    Rank Math SEO: version: 1.0.120, author: Rank Math
    Reading Time WP: version: 2.0.13, author: Jason Yingling
    Smart Coupons For WooCommerce Coupons: version: 1.4.9, author: WebToffee
    Smush Pro: version: 3.14.1, author: WPMU DEV
    WooCommerce: version: 7.9.0, author: Automattic
    WooCommerce Opayo Payment Suite: version: 5.11.0, author: Andrew Benbow
    WordPress Importer: version: 0.8.1, author: wordpressdotorg
    WPC Buy Now Button for WooCommerce: version: 1.2.6, author: WPClever
    WP Fingerprint: version: 2.1.2, author: 34SP.com
    WPMU DEV Dashboard: version: 4.11.18, author: WPMU DEV
    WP Store Locator: version: 2.2.240, author: Tijmen Smit
    
    ### wp-server ###
    
    server_architecture: Linux 4.18.0-425.10.1.el8_7.x86_64 x86_64
    httpd_software: nginx/1.25.1
    php_version: 8.0.27 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 3000
    time_limit: 180
    memory_limit: 2048M
    max_input_time: 60
    upload_max_filesize: 128M
    php_post_max_size: 128M
    curl_version: 7.61.1 OpenSSL/1.1.1k
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 10.3.35-MariaDB
    client_version: mysqlnd 8.0.27
    max_allowed_packet: 16777216
    max_connections: 151
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /var/www/vhosts/babydam.com/httpdocs/wp-content
    WP_PLUGIN_DIR: /var/www/vhosts/babydam.com/httpdocs/wp-content/plugins
    WP_MEMORY_LIMIT: 2048M
    WP_MAX_MEMORY_LIMIT: 2048M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: true
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: Undefined
    DB_CHARSET: utf8
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    mu-plugins: writable
    
    
Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    In this case, please follow the steps below to create a troubleshooting log so that we can check the issue further.

    1. At first add the following filter to your website:

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

    Kindly follow this KB to add the filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    2. After adding the filter, please run the pending Scheduled Action from your WordPress Dashboard > Tools > Scheduled Actions > Pending:

    Pending

    When some actions have completed running, please check the Analytics log under /wp-content/uploads/rank-math and share that with us using this tool: https://wetransfer.com/

    You can also get in touch with your web host, and they will help you locate the Analytics log file.

    Looking forward to helping you.

    Thank you.

    Hi Reinelle,

    Thank you for your reply.
    I can confirm I have followed the instructions above however when clicking the run button I see the notification pop up for:
    Successfully executed action: rank_math/analytics/data_fetch

    However, no logs are created against the Scheduled Actions, which does happen when I try other pending requests. Also, nothing new goes into the folder.

    I have enclosed a copy of the folder contents rank math.

    As you will see there are no logs for the analytics, only for sitemaps.

    When looking at the failed actions I can see its pretty much only Rank Math entires. They all say:
    “action failed via Async Request: Scheduled action for rank_math/analytics/get_inspections_data will not be executed as no callbacks are registered.”.

    Thanks,
    Brian

    Hello,

    Can you please confirm if the filter code is properly active on your website?

    If the code is there, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins 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.

    I can also confirm I have added the filter to the end of the functions.php file.

    Thanks

    Hello,

    Please also include your website’s WP dashboard login in the sensitive data section so we can take a closer look at the issue.

    Looking forward to helping you.

    [moved to the Sensitive Data Section]

    Marlow
    Rank Math free

    Hello,

    I’ve tried both login details and I can’t seem to log in to the website. (Please check the sensitive data section)

    Would you kindly check again if the details are correct for the user? Also, you can create a temporary login for us instead:
    https://wordpress.org/plugins/temporary-login-without-password/

    Please then share the temporary login link in the sensitive data Section.

    We really look forward to hearing back from you. Thank you.

    Hi guys,

    Sorry, I’m not sure what happen there but I have reset the password to what was originally entered into the sensitive data.

    Thanks

    Hello,

    We’ve checked your website and found that your Google Analytics Account was not properly connected to Rank Math. We selected the properties from Rank Math > General Settings > Analytics and saved the settings. After that, we manually fetched the data and now it is appearing on your Analytics Dashboard:

    We also found that the scheduled action to fetch the data from Google was missing on your site. We’ve created this so that Rank Math can automatically fetch the data from Google.

    However, as the data is now appearing on your website, you can remove the filter shared by my colleague above. Otherwise, it will create the analytics log every time the data will fetch.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.

    Thank you.

    Thank you for your help.

    That you say the accounts were not linked is odd considering it worked previously and on all sites where I use the plugin it died at the same time.

    Thank you for getting it functional again.

    Hi there,

    We’re delighted to hear that this issue has been resolved. We appreciate your kind words and your support.

    I’m closing this ticket now but if you ever have another question or need any help in the future, please don’t hesitate to create a new forum topic. We’ll be more than happy to assist you again.

    Thank you for choosing Rank Math and have a wonderful day!

    Cheers

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

The ticket ‘Google Analytics not working on website’ is closed to new replies.