Форуми / Cotonti / Support / Custom php scripts in cotonti

Need to integrate a visitor tracking system

schulle4u
#1 28.03.2010 00:14
Hi,

I'm almost done building my first cotonti website. But now I need to include a custom php script and not sure how to do this. i know there's an option to allow php execution in pages, but since this is a script I need globally, this option probably is useless for me. I've played around with the template files and freetext variables, but this doesn't work.

So is there a way to include a php file without the need of creating a plugin or something else that would over-complicate the task? :) By the way, the script is a counter and visitor tracker. Cotonti has some stats functions, but I need/want something more extensive. The script has a text counter, but I don't need it to appear on the site, just the tracking feature is what I want.

Using Cotonti 0.6.7

Steffen
signature://doesnt.exist
ez
#2 28.03.2010 04:39
Maybe GOOGLE ANALYTICS is an option ?
==- I say: Keep it EZ -==
schulle4u
#3 28.03.2010 05:59
I rather prefer keeping such data on my own server instead of sharing them with third party companies, so Google is not an option I would choose.
signature://doesnt.exist
Trustmaster
#4 28.03.2010 19:38
I'd recommend making a simple plugin using the global hook. It is really very easy and consistent way of script integration.
May the Source be with you!
schulle4u
#5 28.03.2010 22:58
OK thanks, I'll have a look at it. Unfortunately I'm rather a end-user and not a developer, but we'll se how it works.

Steffen
signature://doesnt.exist