Author Topic: [req] PhpTrafficA Where to put the php and how?  (Read 2858 times)

0 Members and 1 Guest are viewing this topic.

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
[req] PhpTrafficA Where to put the php and how?
« 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...
As long as I can finish my site before I die.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [req] PhpTrafficA Where to put the php and how?
« Reply #1 on: May 15, 2009, 04:33:14 PM »
global.php maybe?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)