Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Google analytics with Php pages?

Spacemail by SpaceshipSpacemail by Spaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch

xxll_martin_llxx

Established Member
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
You can put the code in anywhere.. it doesn't really matter.
 
0
Close
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
Close
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
Close
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
Close
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
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back