I was previously referencing an external file and I can't figure out where I have the code that's referencing it. It stopped working because Google changed the code. I added the new script to the html_header.php file so it would be right before the </head> tag. But I need to delete the old script reference and I can't figure out where it's coded.
Here's a snippet of /includes/templates/mytemplate/common/html_header.php
Code:
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-43155911-1', 'oldsummit.com');
ga('send', 'pageview');
</script>
</head>
But the view source shows up like this:
Code:
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-43155911-1', 'oldsummit.com');
ga('send', 'pageview');
</script>
<script src='/google_analytics_auto.js'></script></head>
I can't find how the google_analytics_auto.js is being inserted. Searching for it using the Developers Tool Kit, or using BBEdit on a local version of the files comes up empty.
Any ideas what could be inserting it? The javascript file itself has been deleted so it's not autoloading it and anyways it is in the root directory, not one of the special javascript directories. It has be referenced somewhere and I can't find it. Using v. 1.5
Bookmarks