4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: AntiNSA2 on May 15, 2009, 02:06:39 PM

Title: [req] PhpTrafficA Where to put the php and how?
Post by: AntiNSA2 on May 15, 2009, 02:06:39 PM
Hi!

Im trying to use this php script because google analytics slows everythign down too much... I have the instructions:
Code: [Select]
No image (local site only):
Somewhere in your php code, include the following lines:

    $sid="587539";
    include("/home/lifephotography/htdocs/stat/write_logs.php");

PHP can not record screen resolution. If you do want to track screen resolution, phpTrafficA will use javascript to set a cookie to do so, Include the following line in the head section of your page

    <script language="JavaScript" type="text/JavaScript" src="phpTACookie.js"></script>

File to download: phpTACookie.js


But Im not sure where to put the code...... any ideas???

Thanks!

My 4images dir is: home/htdocs/
and my statstic directory is  home/htdocs/stat


Thanks.. I think its a good tracking script as phplogger is a bit out of date... and analytics takes so long to contact google...
Title: Re: [req] PhpTrafficA Where to put the php and how?
Post by: V@no on May 15, 2009, 04:33:14 PM
global.php maybe?