Google Analytics Not Detected
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)
- Visit your site while logged out of WordPress.
- Open your Google Analytics account
- 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