• Resolved precrime

    (@precrime)


    Hi all
    I just installed Site Kit and i can’t complete the setup as analytics shows the error:

    Error: The response is not a valid JSON response.

    Here is my health file. Could you please help? Thank you very much!
    wp-core version: 6.1.1
    site_language: en_US
    user_language: en_US
    timezone: Europe/Zurich
    permalink: /%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 1
    dotorg_communication: true wp-paths-sizes wordpress_path: /home/ch347581/web/mybraintoys.com/public_html/wordpress
    wordpress_size: 55.89 MB (58601434 bytes)
    uploads_path: /home/ch347581/web/mybraintoys.com/public_html/wordpress/wp-content/uploads
    uploads_size: 545.79 KB (558884 bytes)
    themes_path: /home/ch347581/web/mybraintoys.com/public_html/wordpress/wp-content/themes
    themes_size: 4.99 MB (5237568 bytes)
    plugins_path: /home/ch347581/web/mybraintoys.com/public_html/wordpress/wp-content/plugins
    plugins_size: 168.42 MB (176602465 bytes)
    database_size: 17.55 MB (18399232 bytes)
    total_size: 247.38 MB (259399583 bytes) wp-active-theme name: Storefront (storefront)
    version: 4.2.0
    author: Automattic
    author_website: https://woocommerce.com/
    parent_theme: none
    theme_features: core-block-patterns, widgets-block-editor, post-thumbnails, automatic-feed-links, custom-logo, menus, html5, custom-background, custom-header, site-logo, title-tag, customize-selective-refresh-widgets, wp-block-styles, align-wide, editor-styles, editor-font-sizes, editor-style, responsive-embeds, amp, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, starter-content, widgets, infinite-scroll
    theme_path: /home/ch347581/web/mybraintoys.com/public_html/wordpress/wp-content/themes/storefront
    auto_update: Disabled wp-mu-plugins (1) Elementor Safe Mode: version: 1.0.0, author: Elementor.com wp-plugins-active (13) Akismet Anti-Spam: version: 5.0.2, author: Automattic, Auto-updates disabled
    AliDropship Woo Plugin: version: 1.6.52, author: Vitaly Kukin & Yaroslav Nevskiy & Pavel Shishkin & Denis Zharov, Auto-updates disabled
    Codisto Channel Cloud: version: 1.3.65, author: Codisto, Auto-updates disabled
    Elementor: version: 3.11.2, author: Elementor.com, Auto-updates disabled
    Elementor Pro: version: 3.11.3, author: Elementor.com, Auto-updates disabled
    Facebook for WooCommerce: version: 3.0.14, author: Facebook, Auto-updates disabled
    Hello Dolly: version: 1.7.2, author: Matt Mullenweg, Auto-updates disabled
    Jetpack: version: 11.8.4, author: Automattic, Auto-updates disabled
    Jetpack Boost: version: 1.7.0, author: Automattic - Jetpack Site Speed team, Auto-updates disabled
    Site Kit by Google: version: 1.95.0, author: Google, Auto-updates enabled
    TikTok: version: 1.0.15, author: TikTok, Auto-updates disabled
    WooCommerce: version: 7.4.1, author: Automattic, Auto-updates disabled
    WooCommerce Payments: version: 5.5.1, author: Automattic, Auto-updates disabled wp-media image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1690
    imagemagick_version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
    imagick_version: 3.7.0
    file_uploads: File uploads is turned off
    post_max_size: 20M
    upload_max_filesize: 20M
    max_effective_size: 20 MB
    max_file_uploads: 20
    imagick_limits:
    imagick::RESOURCETYPE_AREA: 251 GB
    imagick::RESOURCETYPE_DISK: 1.844674407371E+19
    imagick::RESOURCETYPE_FILE: 49152
    imagick::RESOURCETYPE_MAP: 251 GB
    imagick::RESOURCETYPE_MEMORY: 125 GB
    imagick::RESOURCETYPE_THREAD: 1
    imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DJVU, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, JBG, JBIG, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
    gd_version: 2.3.3
    gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
    ghostscript_version: 9.50 wp-server server_architecture: Linux 5.15.0-46-generic x86_64
    httpd_software: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f mod_fcgid/2.3.9
    php_version: 7.4.33 64bit
    php_sapi: cgi-fcgi
    max_input_variables: 1000
    time_limit: 120
    memory_limit: 512M
    max_input_time: 60
    upload_max_filesize: 20M
    php_post_max_size: 20M
    curl_version: 7.68.0 OpenSSL/1.1.1f
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    htaccess_extra_rules: false wp-database extension: mysqli
    server_version: 5.7.39-0ubuntu0.18.04.2
    client_version: mysqlnd 7.4.33
    max_allowed_packet: 33554432
    max_connections: 200 wp-constants WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/ch347581/web/mybraintoys.com/public_html/wordpress/wp-content
    WP_PLUGIN_DIR: /home/ch347581/web/mybraintoys.com/public_html/wordpress/wp-content/plugins
    WP_MEMORY_LIMIT: 512M
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: Undefined
    DB_CHARSET: utf8mb4
    DB_COLLATE: undefined wp-filesystem wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    mu-plugins: writable jetpack site_id: 216086061
    ssl_cert: No
    time_diff: undefined
    version_option: 11.8.4:1677882625
    old_version: 11.8.4:1677882625
    public: Public
    master_user: #1 Admin
    current_user: #1 Admin
    tokens_set: Blog User
    blog_token: (#%x!JPYHqRkjMgbLpqLXYnJ3!3)Gf$Z
    user_token: XNGry%yVduDBcKFPXUt*MhUPj$XGNnOt
    version: 11.8.4
    jp_plugin_dir: /home/ch347581/web/mybraintoys.com/public_html/wordpress/wp-content/plugins/jetpack/
    plan: free
    protect_header: {"trusted_header":"REMOTE_ADDR","segments":1,"reverse":false}
    full_sync: {"started":"Fri, 03 Mar 2023 22:34:19 +0000","finished":"Fri, 03 Mar 2023 22:34:24 +0000","progress":{"options":{"finished":true},"functions":{"finished":true},"constants":{"finished":true}},"config":{"options":true,"functions":true,"constants":true,"users":[1],"network_options":true}}
    sync_size: undefined
    sync_lag: 0 seconds
    full_sync_size: 2
    full_sync_lag: 1 day, 1 hour, 12 minutes, 21 seconds
    idc_urls: {"home":"https:\/\/mybraintoys.com","siteurl":"https:\/\/mybraintoys.com","WP_HOME":"","WP_SITEURL":""}
    idc_error_option: false
    idc_optin: true
    cxn_tests: All Pass. google-site-kit version: 1.95.0
    php_version: 7.4.33
    wp_version: 6.1.1
    reference_url: https://mybraintoys.com
    amp_mode: no
    site_status: connected-site
    user_status: authenticated
    verification_status: verified-file
    connected_user_count: 1
    active_modules: site-verification, search-console, adsense, analytics, analytics-4, pagespeed-insights
    required_scopes:
    openid: ✅
    https://www.googleapis.com/auth/userinfo.profile: ✅
    https://www.googleapis.com/auth/userinfo.email: ✅
    https://www.googleapis.com/auth/siteverification: ✅
    https://www.googleapis.com/auth/webmasters: ✅
    https://www.googleapis.com/auth/adsense.readonly: ✅
    https://www.googleapis.com/auth/analytics.readonly: ✅
    capabilities:
    googlesitekit_authenticate: ✅
    googlesitekit_setup: ✅
    googlesitekit_view_posts_insights: ✅
    googlesitekit_view_dashboard: ✅
    googlesitekit_manage_options: ✅
    googlesitekit_update_plugins: ✅
    googlesitekit_view_splash: ✅
    googlesitekit_view_authenticated_dashboard: ✅
    googlesitekit_view_wp_dashboard_widget: ✅
    googlesitekit_view_admin_bar_menu: ✅
    enabled_features:
    adsenseSetupV2: ⭕
    dashboardSharing: ⭕
    ga4ActivationBanner: ⭕
    ga4Reporting: ⭕
    gm3Components: ⭕
    gteSupport: ⭕
    userInput: ⭕
    search_console_property: https://mybraintoys.com/
    adsense_account_id: pub-744•••••••••••••
    adsense_client_id: ca-pub-744•••••••••••••
    adsense_account_status: approved
    adsense_site_status: added
    adsense_use_snippet: yes
    adsense_web_stories_adunit_id: none
    analytics_account_id: none
    analytics_property_id: none
    analytics_profile_id: none
    analytics_use_snippet: yes
    analytics_4_property_id: none
    analytics_4_web_data_stream_id: none
    analytics_4_measurement_id: none
    analytics_4_use_snippet: yes
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Hi @precrime,

    Thanks for reaching out, hopefully we can determine the cause and ensure Site Kit works as expected. This errors can occur in various circumstances, it’s a generic WordPress error that may indicate a REST API related issue or a plugin conflict among other possible issues. If you’d like to share the below we can determine more on this:

    1. At what stage do you encounter this error (ie. When selecting a new account to be created within your Analytics setup or at another stage during Analytics setup)?
    2. Do you see any warnings or errors when checking your Site Health status (Tools > Site Health > Status), which differs from your Site Health information requested above? Such errors may include REST endpoint references.

    Once we have the above we can provide you with some troubleshooting suggestions. Let me know if you have any questions.

    Thread Starter precrime

    (@precrime)

    Hi James and thank you for your help.

    I installed the plugin “SiteKit” and i could create an account, and also when i log in to google analytics, https://analytics.google.com/analytics/web/, i can sign in without problems.

    The error occur when i enter the “SiteKit” site on wordpress and then click on “Complete Setup”, there i got the message after clicking on “configure Analytics”: Error: The response is not a valid JSON response.

    Yea i got three errors there:
    -Page cache is not detected and the server response time is slow
    -Have a default theme available (and i have a theme active)
    -A scheduled event is late
    -You should use a persistent object cache

    I now solved the critical cache issue, so the other are just recommended.

    Thank you very much for your help

    Kind regards

    • This reply was modified 3 years, 3 months ago by precrime.
    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for the update @precrime, and for sharing the additional insights.

    If this occurs only when connecting Analytics can you share whether you’re selecting an existing Google Analytics account and property, or does this occur if you allow the plugin to create a property for you? I ask as if this is occurring only if allowing Site Kit to create a new property, there is a workaround involving creating a new property at Analytics level, and then selecting this within Site Kit. I’m happy to guide you through this if you check whether you can select an existing property in order to complete Analytics setup within Site Kit.

    Let me know if you have any questions with the above.

    Thread Starter precrime

    (@precrime)

    Thank you so much for your help. I created the property via Kit, but when i log in to google analytics, everything works.

    What i saw, is that i have two properties under my domain: One with the Number UA-… and one with just numbers. Do you know why i have two properties? And which of those should i try to link?

    I see the two properties in Sitekit, but when i choose them and try to complete setup, i get this error

    Thank u

    • This reply was modified 3 years, 3 months ago by precrime.
    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for the update @precrime. If you encounter the error when selecting an existing property let’s perform some additional checks. Firstly, can you share a recording of what you’re encountering? You can use a service such as Loom or RecordIt to share a screen recording, while using this secure form to share this privately. 

    Within the recording please show the error as it appears, while also showing any browser console errors that appear.

    I also noticed your site has various optimizations performed via W3 Total Cache, although I don’t see this present in the Site Health information you kindly shared. We may perform some additional checks after reviewing a recording of your experience, this time using the Health Check & Troubleshooting plugin.

    What i saw, is that i have two properties under my domain: One with the Number UA-… and one with just numbers. Do you know why i have two properties? And which of those should i try to link?

    It’s normal that users select both a Universal Analytics property (with a UA prefix) and a Google Analytics 4 (GA4) property. When selecting each property, it will display a list of all properties from the selected Analytics account. There can be multiple properties per account. What you’re describing here is normal.

    Let me know if you have any questions with the above.

    Thread Starter precrime

    (@precrime)

    Thank you very much James, i just recorded and sent the video. Thank you for your help.

    Kind regards

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for the update @precrime. Unfortunately the link to the video you shared isn’t valid, resulting in a 404 error.

    Do you mind checking the link, or providing another? After doing so I can review and provide the next steps.

    Thread Starter precrime

    (@precrime)

    I dont know how, but now i didnt get the issue anymore and i could complete the setup – even though i did not change anything. Thank you anyway for your great support.

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for the update @precrime. I also can’t be sure what happened in your case, but good that you’re no longer encountering the same error.

    I’ll close this support topic but do reach out if you run into any errors or if you have any queries.

    Hello @jamesosborne,

    I read all the conversation above and I have the same issue. When I select the property of google analytics to finalize the process set up, an error show up with the message “The response is not a valid JSON response.” Also I tried to do the same with the rest of plugins inactivate. Can you pls give me any advice?

    Plugin Support James Osborne

    (@jamesosborne)

    Sorry to hear that @gregoryleon. If you’d like to open an individual support topic we can work with you from there, while also sharing your Site Health information.

    Based on previous reports there seems to be a possible block at host level impacting creating a new Analytics property or account. I’m not sure in your case if it’s specific to setting up a new account/property, or whether it occurs when also selecting pre-existing ones. One workaround may be to create a new account and/or property from analytics.google.com, and then selecting this existing account/property when setting up Site Kit. Once we have your support topic we can communicate with you from there. It would be great if you could also share your hosting provider, as it may be possible for us to perform some additional checks on this.

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

The topic ‘Error: The response is not a valid JSON response.’ is closed to new replies.