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've had a site online for a few weeks, and Google Analytics is working fine. Except Goals, which are not registering for some strange reason.

To be clear: visits to the site are being registered, but no goals are being registered. This is not correct, as people are visiting the goal pages.

I've set up two pages specifically to test this, Funnel Page and Goal Page. (You can visit these, but please do not visit any other pages on the site, as I am performing an experiment and SO referrals would taint results).

Below is a screenshot of Profiles > Goals on Analytics.

What I have set up

Can you see any obvious mistakes I have made? I think I must have missed something really obvious, as this is my first time using Analytics, but I must get this fixed ASAP. It's driving me crazy.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Is step 1 required? Or can people click thru to the Goal URL from another area of your site?

Your Analytics tracking script is outside your <body> tag, it's even outside your <html> tag

share|improve this answer
    
As shown on the screenshot, the 'Required step' checkbox is un checked. So I think that the answer to your question is no, step 1 is not required. –  Adjam Mar 14 '12 at 10:26
    
I updated my answer fix your js –  Anagio Mar 14 '12 at 10:33
    
Thank you for your updated answer. Visits to the site are registering despite this, however maybe this could stop goals from registering. I have now moved the analytics tracking code to be inside the <body>. I will update the question tomorrow to report if any goals have/ have not registered. –  Adjam Mar 14 '12 at 10:44
    
It worked! I knew I just missed something dumb like that. So if your analytics javascript is outside the <html> tags the hits count but the goals don't register. Thank you so much! –  Adjam Mar 15 '12 at 11:20

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.