Hello
I'm trying to put code into CMS so I can track visitors. The stats program says that you have to put an include into your index page for it to work. The code you get is: include "/home/user/public_html/cnstats/cnt.php. I've tried putting it at the beginning of the index page but that just creates an error warning at the top of the page. Any help would gratefully appreciated.
Tom
Where to put code for stats?
Re: Where to put code for stats?
What kind of code do you want to add? Google analytics?
Re: Where to put code for stats?
It's just site statistics analysis software, a bit like Awstats.
Cheers,
Tom
Cheers,
Tom
-
- Forum Members
- Posts: 116
- Joined: Mon Jul 28, 2008 4:48 pm
Re: Where to put code for stats?
I should think you need it at the bottom of every page, not just your index page, to get meaningful stats. Its better at the bottom so it doesn't slow down your page load times.
You can try this:
1. Create a UDT and copy and paste the code from the include file into your UDT (minus the opening and closing php tags).
2. Put a reference to the UDT at the bottom of all your templates, just above
Nick
You can try this:
1. Create a UDT and copy and paste the code from the include file into your UDT (minus the opening and closing php tags).
2. Put a reference to the UDT at the bottom of all your templates, just above
Nick
Re: Where to put code for stats?
I'll try that Nick. Thanks for the advice.
Best wishes,
Tom
Best wishes,
Tom
Re: Where to put code for stats?
Works perfect Nick. Thank you very much for your help.
Tom
Tom
-
- Forum Members
- Posts: 116
- Joined: Mon Jul 28, 2008 4:48 pm
Re: Where to put code for stats?
No problem, glad it worked.
Nick
Nick
Re: Where to put code for stats?
Please to add [solved] to subject line of first post...