Google Analytics not detected

If you have enabled the Delay JavaScript Execution option in WP Rocket, and you use an automated tool like GAchecker.com, Google Tag Assistant, or an automated SEO analysis tool, they may report that they cannot find Google Analytics on your website, even though it's there. 

Tools like this typically search the code of your site for a specific word, filename or pattern related to Analytics.

With the above WP Rocket features, the code is changed slightly and the optimized version won't match what the tool is looking for. The code is still there, just not in the specific format they are looking for. So these tools will often product a false result.

So Tag Assistant and other tools won't recognize this and will show a warning, even though tracking is working correctly:

Check that tracking is working


To verify if the tracking is working (this is the method recommended by Google)

  1. Visit your site while logged out of WordPress.
  2. Open your Google Analytics account
  3. On the left side find the Real Time report. Give it a few seconds and your visit should show up. 

This lets you know the tracking is working and you can ignore the false result. 

Troubleshooting a problem

If visits are not showing up, please deactivate the Delay JavaScript Execution feature and see if that helps.

If the problem is related to the  Delay JavaScript Execution feature, you may exclude Analytics from being delayed by checking the Google Analytics box, and any other you're using on your site, in the One-click exclusions section, as shown below:

check google analytics box

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.