Thanks for reaching out @myerrorsandmysolutions, and appreciate you sharing details of this. I’ll perform some checks on this and report back to you here. While doing so, can you share at what stage you notice this errors, or are they consistent when visiting a particular plugin page?
Thread Starter
Eclipses
(@myerrorsandmysolutions)
Hi,
This issue happens in the homepage only when I’m logged in.
I use Google Chrome, when I press F12 to pen the DevTolls and see the errors in the Console.
Thank you
Eclipses
Thanks for your patience on this @myerrorsandmysolutions. I performed some additional checks on your site and while I can see that you have Tag Manager snippets placed, I can’t be sure if they were placed via Site Kit given it looks like all comments are stripped out.
I also performed some checks on some test sites, whereby Tag Manager was setup and configured via Site Kit, without encountering the same errors despite various tags added and remaining logged in. To troubleshoot this further, please share the following:
- Your Site Health information. You can use this form to share privately if preferred. I can then confirm some possible causes and configurations.
- Does the same occur if you temporarily deactivate WP Optimize? I asked as I can see various caching and optimizations performed, which does seem to impact Site Kit placed snippets (screenshot with example).
- Did you noticed any loss of functionality, or non reporting of site visits in Analytics?
Let me know if you have any questions with the above. Thank you.
Thread Starter
Eclipses
(@myerrorsandmysolutions)
Thank you for your support. Here answers to your points
- I’ve sent you site health information via your form.
- I confirm that with WP Optimize the errors do not show
- I did not notice any loss of functionality, I need to test more
Appreciate you sharing the additional insights @myerrorsandmysolutions. I checked and indeed I could create the same error as you reported. After checking some configurations, it looks like the WP Optimize option to minify content is causing this console error. While it doesn’t seem to impact any Site Kit standard behavior from my testing, there is a warning that “this setting may need specific configuration to work on your site”. My expectation is that this can be safely ignored, although I will raise this with the team.
If you want to make sure the console error no longer appears, you can also add a Site Kit exclusion within WP Optimze, via adding the below to the “Exclude JavaScript from processing” setting within WP Optimize:
plugins/google-site-kit/
The above seemed to do the trick in my case. Do let me know how you get on with the above, or ask if you have any questions. Thanks also for bringing this to our attention. Note that it’s not uncommon for third party optimization plugins to impact any front end feature of Site Kit, and as with WP Optimize there are usually warning or notes when it comes to enabling minification or other optimization settings.
Thread Starter
Eclipses
(@myerrorsandmysolutions)
Perfect, thank you, I’ve added the exclusion in WP Optimize.
Perfect, that should do it @myerrorsandmysolutions! Thanks for the update. If you encounter any further Site Kit related console errors or if you have any plugin related queries, be sure to get in touch.
If you have a moment free please also consider sharing your thoughts on the plugin, in particular if you’ve been a Site Kit user for some time.