I'm trying to get Google Analytics to run on a new website that I'm building, but every time I push the "Check Tracking" button, it says it can't find the tracking code on the homepage, but if you View Source the code is there. Does anybody know what I'm doing wrong? (I've never setup google analytics before, I usually have my web monkey doing it) The site in question is in my sig. I appreciate any help
Well, your code looks fine. What is your homepage file called? Index.html / Index.php / Index.htm. When did you add the code comapred to when you checked it?
It's index.php I added the code, then clicked on the "Check Tracking" several times to see if it was just lag, but it wasn't.
I checked to see if your site was banned from Google, and it's not. I looked at your code, and it seems fine. The only other thing I could suggest before you contact Google is change that link text, just to plain text, and remove all the extra spaces from the index.php (line breaks.) Although I think the code looks fine, and all the tags are closed.. there could be something I'm overlooking.
Keep your same code and change the account identifier to this: UA-1258414-7 Once you do this (if you want me to try from my side, let me know, and I will check to see if the problem exist when I try.)
Mark - I've changed the account identifier in index.php, let me know if you have any luck I also turned the link into just text, but I don't see how that would change anything. I appreciate it
It isn't picking it up. Remove the linebreak / space between the code and the < /body > tag. I'm not sure if that will make the difference, but I'm willing to check again if you have the time. If that doesn't work, then I would suggest viewing google's help section, or contacting them for help.
Actually, I just realized I'm only seeing the HTML output of the php file, and not the contents... Check out this link: http://www.google.com/support/analy...g&selected=tracking_php&ctx=tracking__#static and perhaps you could utilize this method to get your code to work on your php page.