I checked the rendered page source code and found the Reduce Bounce Rate script appears after the closing footer tag. Could this skew the pageview results? If so, I can delete the plugin and insert the Reduce Bounce Rate script directly in footer.php.
I’m using WooThemes Canvas 5.3.0 and WooThemes Framework 5.5.5. I placed the Google Analytics tracking code in header.php.
The pertinent page tags, Google Analytics and Reduce Bounce Rate page source is:
<html>
<head>
// contents omitted brevity...
<script type="text/javascript">
(function($){
$(window).load(function() {
if (this._gat) {
tks = this._gat._getTrackers();
ga_track = function(p) {
for (i=0; i < tks.length; i++) {
var n = tks[i]._getName() !== "" ? tks[i]._getName()+"." : "";
a = [];
for (i2=0; i2 < p.length; i2++) {
var b = i2===0 ? n+p[i2] : p[i2];
a.push(b);
}
_gaq.push(a);
}
};
$('a').filter(function() {
return this.href.match(/.*\.(zip|mp3|mpeg|pdf|doc*|ppt*|xls*|jpeg|png|gif|tiff)/);
}).click(function(e) {
ga_track(['_trackEvent', 'download', 'click', this.href]);
});
$('a[href^="mailto"]').click(function(e) {
ga_track(['_trackSocial', 'email', 'send', this.href]);
});
var loc = location.host.split('.');
while (loc.length > 2) { loc.shift(); }
loc = loc.join('.');
var localURLs = [
loc,
'https://mysite.com'
];
$('a[href^="http"]').filter(function() {
for (var i = 0; i < localURLs.length; i++) {
if (this.href.indexOf(localURLs[i]) == -1) return this.href;
}
}).click(function(e) {
ga_track(['_trackEvent', 'outbound', 'click', this.href]);
});
}
});
})(jQuery);
</script><script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxxx'], ['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'https://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
// html stuff snipped for brevity
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxxx']);
_gaq.push(['_setDomainName', 'mysite.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://' : 'https://') + 'stats.g.doubleclick.net/dc.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<<footer>
// content omitted for brevity
</footer>
// Reduce Bounce Rate script begins...
<script>
var _gaq = _gaq || [];
(function (tos) {
window.setInterval(function () {
tos = (function (t) {
return t[0] == 50 ? (parseInt(t[1]) + 1) + ':00' : (t[1] || '0') + ':' + (parseInt(t[0]) + 10);
})(tos.split(':').reverse());
window.pageTracker ? pageTracker._trackEvent('Time', 'Log', tos) : _gaq.push(['_trackEvent', 'Time', 'Log', tos]);
}, 10000);
})('00');
</script>
</body>
</html>