I have a website hosted on Blogger and I set up Google Analytics with Universal Analytics about a day ago. The dashboard keeps showing “No Tracking Code” status but when I check the real-time reports, I can actually see visitors being tracked correctly.
I added the tracking code to my site template that looks like this:
<script>
(function(d,w,u,t,c,h,e){d['AnalyticsTracker']=c;d[c]=d[c]||function(){
(d[c].data=d[c].data||[]).push(arguments)},d[c].time=1*new Date();h=w.createElement(u),
e=w.getElementsByTagName(u)[0];h.async=1;h.src=t;e.parentNode.insertBefore(h,e)
})(window,document,'script','//www.google-analytics.com/analytics.js','tracker');
tracker('create', 'UA-XXXXXXXX-X', 'myblog.com');
tracker('send', 'pageview');
</script>
I can test this by opening different browsers and watching the real-time reports update when I visit pages. The tracking definitely works but the main dashboard still says no code is installed.
I did not fill in the Analytics ID in Blogger’s built-in settings because that seemed to be for the older version of Analytics. I have tried moving the code to different spots in my template and even tested with a second blog to make sure it was not just my setup.
Why does the status still show as not installed when the tracking appears to be functioning properly?