How to remove google analytics?
-
I’m trying to remove the following code located on my wordpress blog:
<script type=”text/javascript”>
var _gaq = _gaq || [];
_gaq.push([‘_setAccount’, ‘UA-33458099-1’]); /* Ohloh Meta account*/
_gaq.push([‘_trackPageview’]);_gaq.push([‘_setAccount’, ‘UA-33473300-1’]); /* Ohloh Footprint account – for combining s tats */
_gaq.push([‘_setDomainName’, ‘ohloh.net’]);
_gaq.push([‘_trackPageview’]);(function() {
var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
ga.src = (‘https:’ == document.location.protocol ? ‘http://’ : ‘http://www’) +
‘.google-analytics.com/ga.js’;
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
})();
</script>I’ve been doing a lot of research online as to where to find it but so far my leads have gone up dry.
Here was how I started. Under Appearances and editor, I clicked on my footer.php code under templates which gives me this code:
<?php
/** * Footer Template * * Here we setup all logic and XHTML that is required for the footer section of all screens. * * @package WooFramework * @subpackage Template */ ?><?php include(‘xxxx-footer-canvas.php’);?>
<div id=”footer” class=”col-full”><?php woo_footer_inside(); ?>
<div id=”copyright” class=”col-left”>
<?php woo_footer_left(); ?>
</div><div id=”credit” class=”col-right”>
<?php woo_footer_right(); ?>
</div></div><!– /#footer –>
<?php woo_footer_after(); ?>
</div><!– /#wrapper –>
<div class=”fix”></div><!–/.fix–>
<?php woo_foot(); ?>
<?php endif; ?> <!–END of REMOVE ******************************************–>
<?php wp_footer(); ?>
</body>Next, from the code above I saw that I needed to look under xxxx-footer.php for the content. There was a log of content on the xxx-footer.php fie but nothing that led me towards the location (I could post some of the contents if relevant).
I’ve deduced that the problem is in this function called taken from the footer.php in templates. I confirmed it by removing this function call and the code disappeared. However, this code removed more than just the tracking code. Now what I’m trying to do is pinpoint the location of this but my leads have gone dry.
Additonally, I’ve looked under functions.php, functions.wp-scripts.php, general-template.php with no luck.
I have no plugins that would indicate that the code comes with a plugin. The current plugins I have are:
AddThis Social Bookmarking Widget
Akismet
AP Extended Mime Types
Broken Link Checker
Contact Form 7
Disqus Comment System
Hello Dolly
Improved Include Page
Polldaddy Polls & Ratings
pType Converter
Q and A FAQ and Knowledge Base for WordPress
Raw HTML
Ultimate TInyMCE
WordPress Importer
WordPress Move
WP Show IDs
Where could this code possibly be? Help would be appreciated.
The topic ‘How to remove google analytics?’ is closed to new replies.