Wednesday, January 03, 2007

Google Analytics Tracker Not Installed Error

I was adding Google Analytics to http://www.fortresssolutions.com, and it kept telling me it the little Javascript snippet wasn't installed. I looked at the code, it was there. I looked at the page using View Page Source, it was there. But it still wasn't working.

So I looked at it using Firebug, and found the problem. The snippet is supposed to be added just before the </body> tag, which I had done. But Firebug showed that it was inside of a div instead of outside. I had an unclosed div block, so when I added one more </div> to my footer, that fixed it, put the code in the body just before the </body> tag, and it started working.

0 Comments:

Post a Comment

<< Home