I'm new to PHP and pulling my hair out trying to get this Analytics code in there. (I'm pretty sure this is a Static PHP site, it barely ever gets updated.)
So the Help Center offered what looked like a pretty good start on how to set this up for PHP:
1) I created the analyticstracking.php file (updated the account # of course) and just to be safe, I uploaded to both
/public_html AND /public_html/php
2) Next -- I couldn't find anything that looked like a footer, so I had to add this line to every template page:
And the directions say to add it before the </body> tag. But that's the problem; as far as I can tell, these are the template pages:
3) And here I find two problems.
a) These files don't seem to have </body> tags. Am I wrong in assuming that these are in fact the template files?
b) I backed these up and renamed the originals -- and the site was still reading them! In other words, those with the original filenames were sitting on my hard drive, and the backed up versions had new names that the PHP file ought not to be able to read. But it could!?!?! What gives?
I'm dying here. If anyone knows anything about this, I'd be forever in your debt.
[edited by: jatar_k at 5:16 pm (utc) on Aug. 11, 2007]
[edit reason] no urls thanks [/edit]