Title: Checking pages for analytics tracking code
Last modified: May 23, 2020

---

# Checking pages for analytics tracking code

 *  Resolved [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [6 years ago](https://wordpress.org/support/topic/checking-pages-for-analytics-tracking-code/)
 * Hello Dan,
 * I hope you are well! I’m running through this tutorial here to set up Google 
   Analytics properly:
 * [https://moz.com/blog/actually-accurate-analytics](https://moz.com/blog/actually-accurate-analytics)
 * One of the things she first mentions is to check the analytics tracking code 
   is on every page, so I am duly doing that but for some reason I cannot find it
   on the page at all with a find in view source.
 * Please can you help me understand what I have misunderstood or am doing wrong?
 * Thank you for your help.
 * Michael.

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

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [6 years ago](https://wordpress.org/support/topic/checking-pages-for-analytics-tracking-code/#post-12879324)
 * Hi Michael,
 * What’s your site’s URL? The tracking code of CAOS differs slightly from Google
   Analytics’ own.
 *  Thread Starter [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [6 years ago](https://wordpress.org/support/topic/checking-pages-for-analytics-tracking-code/#post-12879331)
 * Ah sorry Dan, I forgot that important piece of information 😉 It’s:
 * [https://reclaimdesign.org](https://reclaimdesign.org)
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [6 years ago](https://wordpress.org/support/topic/checking-pages-for-analytics-tracking-code/#post-12879346)
 * Ah, that’s fast. 🙂
 * I don’t see the tracking code either. Could you temporarily disable Autoptimize?
   That’ll make it easier for me to pinpoint the issue.
 *  Thread Starter [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [6 years ago](https://wordpress.org/support/topic/checking-pages-for-analytics-tracking-code/#post-12879354)
 * Hi Dan,
 * If it’s the minification of view source that’s problematic could I please offer
   a suggestion (rather than disabling autoptimize entirely?
 * If ?ao_noptimize=1 is appended to the url then it bypasses autoptimize.
 * [https://reclaimdesign.org?ao_noptimize=1](https://reclaimdesign.org?ao_noptimize=1)
 * Then it displays nice and tidy instead of an illegible lump of code.
 * If that’s not the issue you’re referring to then I will disable the plugin 🙂
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [6 years ago](https://wordpress.org/support/topic/checking-pages-for-analytics-tracking-code/#post-12879452)
 * You’re completely right. I forgot about that feature.
 * So, with Autoptimize disabled CAOS’ snippet loads: [https://imgur.com/a/OoMJRAL](https://imgur.com/a/OoMJRAL)
 * So, this means that Autoptimize is aggregating the snippet, which is awesome.
   In other words, CAOS has added the tracking code, and Autoptimize is combining
   it with the rest of the JS-files to minimize requests.
 * Now, the collect call is still not being sent. Even with Autoptimize disabled.
   Which is really weird, since I see analytics.js being loaded. Are you using some
   sort of plugin which is blocking tracking cookies? Maybe a cookie notice plugin
   for which you haven’t entirely finished the configuration?
    -  This reply was modified 6 years ago by [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/).
 *  Thread Starter [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [6 years ago](https://wordpress.org/support/topic/checking-pages-for-analytics-tracking-code/#post-12880052)
 * Hi Dan, thanks a lot for checking. I’m glad to hear that CAOS and autoptimize
   are both working as they should 🙂
 * I have no idea what is happening with collect call. To my knowledge I am not 
   using any cookie blocking plugins. I have Sucuri firewall installed – could that
   be the culprit? I haven’t seen any features in the dashboard though relating 
   to cookies. Only the ability to whitelist IPs.
 * If it helps, I can send you over my WP login? Maybe something will jump out to
   you?
 * Michael.
 *  Thread Starter [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [6 years ago](https://wordpress.org/support/topic/checking-pages-for-analytics-tracking-code/#post-12880733)
 * Hi Dan, are there any logs I could send to help troubleshoot? I’m stabbing in
   the dark and not really sure how to go forward with the collect call situation.
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [6 years ago](https://wordpress.org/support/topic/checking-pages-for-analytics-tracking-code/#post-12915378)
 * I’m sorry, I completely missed your last reply.
 * It’s not allowed to exchange admin logins through this support forum, but yes,
   I think it’s a great idea to start snooping around in access logs and error logs.
   for anything related to CAOS or Google Analytics.
 *  Thread Starter [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [6 years ago](https://wordpress.org/support/topic/checking-pages-for-analytics-tracking-code/#post-12916006)
 * No worries Dan. Excuse my ignorance but I couldn’t find any logs here – /wp-content/
   cache/caos
 * Am I looking in the wrong place?
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/checking-pages-for-analytics-tracking-code/#post-13022339)
 * Hi Michael,
 * Are you using an Async JS plugin by any chance? This might be what is breaking
   CAOS.
 *  Thread Starter [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/checking-pages-for-analytics-tracking-code/#post-13024362)
 * Hello Daan, you are right I have started using Async JS, but I already uninstalled
   CAOS so I don’t think that was it.
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/checking-pages-for-analytics-tracking-code/#post-13231442)
 * Hi Michael,
 * Might you ever want to use CAOS again: v3.7.0 (released yesterday) contains some
   major updates in the JavaScript field, also increasing compatibility for Async
   JS plugins, etc. 🙂
 *  Thread Starter [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * (@michaelmartin73)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/checking-pages-for-analytics-tracking-code/#post-13232091)
 * Hi Daan, thank you for the update. Enjoy your week ahead!
 * All the best,
 * Michael.

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

The topic ‘Checking pages for analytics tracking code’ is closed to new replies.

 * ![](https://ps.w.org/host-analyticsjs-local/assets/icon-256x256.png?rev=3307068)
 * [CAOS | Host Google Analytics Locally](https://wordpress.org/plugins/host-analyticsjs-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-analyticsjs-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-analyticsjs-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-analyticsjs-local/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [michaelmartin73](https://wordpress.org/support/users/michaelmartin73/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/checking-pages-for-analytics-tracking-code/#post-13232091)
 * Status: resolved