Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a WP 3.3.2 site and i use the google analytics code.

Though everything seems ok with the results i get there is an error. All visitors drop off after homepage.

You can check the image here. ! http://imgur.com/shyNX

I change position of the GA code and from just before < / body> i moved it to just before < / head> and now i use a wordpress plugin for this work.

Still nothing changes.

share|improve this question
    
First you don't need a plugin to handle that task, edit your footer.php file or whatever file outputs the </body> tag, second you need to place the code before the </body> tag to give a chance for the data to be collected properly –  user983248 May 25 '12 at 22:14
    
Thats where i had the code but nothing worked. So i moved it before </head> and still nothing and then i give a try to a wp plugin with the same result. –  t0s May 26 '12 at 6:49

2 Answers 2

From the look of things you don't have the code on all your pages or there is a serious problem with your homepage design.

share|improve this answer
    
I do have the code on all of my pages. I can't imagine what that problem could be :( –  t0s May 25 '12 at 16:56
    
@t0s can you give me a link to your site please. –  toomanyairmiles May 25 '12 at 17:15
    
yes here u are dmoysiadis.gr thank you. –  t0s May 25 '12 at 17:39
    
@t0s your tag is fine, could you add toomanyairmiles at gmail dot com as a viewer on your analytics and i'll take a look. –  toomanyairmiles May 25 '12 at 17:45
    
i'm not the admin. I will have to contact to the admin who is a friend of mine. I will email him to add you as soon as possible. –  t0s May 25 '12 at 17:53

You will want to go into your /wp-admin/ folder. Log-in and go to your footer.php file under Appearance>Themes>Editor. When you open the footer.php file you need to add the generated code to link to Google Analytics at the bottom of the source shown, this will ensure it is on every page. Then 'Save' your changes to the footer.php file.

share|improve this answer
    
NO! Do not put google analytics in the header! You will have to wait for GA to load before the page loads. Analytics tags should ALWAYS be the last thing on the page before the closing body tag. –  toomanyairmiles May 25 '12 at 9:49
    
@toomanyairmiles - I personally practice using it in the footer.php of WordPress sites, just before closing the body tag as well. I was a little tired when I wrote the original answer. You are absolutely correct, Google Analytics will be forced to load if called before the </head> tag instead of the body tag. Thank you! –  toughskin May 25 '12 at 16:18
    
@toomanyairmiles - "You will have to wait for GA to load before the page loads." - No longer the case if using the async snippet. –  danlefree May 25 '12 at 19:54
    
@danlefree - Thank you for the information. Here is information for migrating GA to Asynchronous! –  toughskin May 26 '12 at 9:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.