Forum Moderators: coopster

Message Too Old, No Replies

How to install Google Analytics on a PHP based site?

I'm trying to find the easiest way to get around my client's CMS.

         

cavemanlawyer15

3:43 am on Aug 7, 2007 (gmt 0)

10+ Year Member



My client uses a CMS for all his web content development. I tried dumping the Google Analytics code at the bottom of each section in the CMS, but clearly this is still way too far up the page for Google to make use of it. So next I tried getting in behind the CMS via FTP, but found that PHP files aren't exactly east to edit.

Is there a good PHP editor out there for Mac OS X? Or a better way to get this @#$ code in there and get on with life?

Thanks
PB

Habtom

5:05 am on Aug 7, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I tried dumping the Google Analytics code at the bottom of each section in the CMS, but clearly this is still way too far up the page for Google to make use of it.

Can't you put it on top? I couldn't understand the difficult part about it.

dreamcatcher

8:05 am on Aug 7, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi cavemanlawyer15, welcome to Webmaster World. :)

You can use any text editor to edit PHP files. Notepad will do, but there are many free text editors out there. You don`t really need a 'PHP' editor.

dc

cavemanlawyer15

2:23 am on Aug 9, 2007 (gmt 0)

10+ Year Member



Re: placement of Google Analytics code, no, it is supposed to go at the very end, right before the </body> tag ideally. I've sometimes had to move it up the page a bit, but that's the rule of thumb.