Welcome to WebmasterWorld Guest from 54.225.22.139

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

Need Ideas Troubleshooting GA Code In Wordpress

     
6:11 am on Apr 24, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:June 16, 2010
posts: 3813
votes: 29


Hi there, Everyone:

i was so happy to see my bounce rate drop significantly after moving lots of static pages over to wordpress.

My bounce rate on those bogs pages is low - I mean, real low... I mean, like 0%

Now, I love to fantasize that I have created the perfect content and that no one who comes across my material would ever want to bounce out of my site.

But alas, I believe it is much more likely to be some problem with the way GA is installed in my wordpress blog.

Does anybody have any ideas on how to troubleshoot GA when it appears to be tracing most metrics EXCEPT bounce rate?

Thanks in advance.
2:15 pm on Apr 24, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:June 16, 2010
posts: 3813
votes: 29


And of course I forgot to post the code. It is between the opening and closing head tags.

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1234567-8']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>
7:22 pm on Apr 27, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:June 16, 2010
posts:3813
votes: 29


Got it figured out.

My theme was displaying the GA code TWICE.

had to edit the header.php file of my theme and change it there.
12:40 pm on Apr 28, 2012 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member netmeg is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 30, 2005
posts:12901
votes: 193


Save yourself the trouble and use the Yoast Google Analytics plugin. It does everything, and does it right.
1:49 pm on Apr 28, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:June 16, 2010
posts:3813
votes: 29


Thanks for the tip!

there are SO MANY SEO plugins it was kind of difficult to know which one to use...
3:15 pm on Apr 29, 2012 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member netmeg is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 30, 2005
posts:12901
votes: 193


Anything with the name Yoast on it is more than a safe bet.