Dynadot โ€” .com Registration $8.99

Google analytics with Php pages?

Spaceship Spaceship
Watch
Impact
3
Hey

I'm using a CMS (php fusion) now for my site and I want to put Google Analytics onto it but because there is no <body> </body> where do I place the coding for it?

www.uptheshots.co.uk

Thanks
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
You can put the code in anywhere.. it doesn't really matter.
 
0
•••
I'm not familiar with that particular CMS but most CMS platforms today output html via templates. If yours does place it in there.
 
0
•••
Dan said:
You can put the code in anywhere.. it doesn't really matter.
Lol, not really anywhere.

If the template system has a header or footer, put it in one of those.

That way the Analytics gets loaded with every pageview.
 
0
•••
Hmm....Well I've tried adding it to the bottom of footer page but that hasn't worked. I thought it would just be a 'normal' php fix...I will ask on their site as it's their CMS.

Thanks anyway Rep left.
 
0
•••
If you're trying to paste it into php code, then use:
PHP:
<?php

echo <<<EOT
paste the code here
EOT;

?>
(Take off the <?php and ?> if it's already inside of those.)
 
0
•••
Unstoppable Domains
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back