Re: [phpOpenTracker-general] Making POT go
solutions_PHP <[email protected]> Sat, 27 May 2006 12:01:32 -0700
| Newsgroups | gmane.comp.web.phpopentracker.general |
|---|---|
| Message-ID | <[email protected]> |
Hello John--
I know how you feel, been there! I hope this helps get you started...
This is what my POT directory looks like:
/phpOpenTracker/
/report/
/scripts/
error.log
phpOpenTracker.php
I use POT to track multiple websites. So, inside the
/phpOpenTracker/Config.php file, I have a the clients array setup
with values for the sites I want to track:
1 => 'site1.com',
2 => 'site2.com'
...
Inside the /scripts/ directory, I have a "webbug" for each site:
webbug_site1.js
webbug_site2.js
...
In the files for site1.com and site2.com, I call the appropriate
webbug, for example:
<script language="JavaScript"
src="http://www.myPOTinstallationsite.com/POT/scripts/webbug_site1.js"
type="text/javascript">
</script>
<noscript>
<img alt=""
src="http://www.myPOTinstallationsite.com/POT/scripts/image.php?client_id=1"
width="1" height="1" />
</noscript>
To review statistics, I visit:
http://www.myPOTinstallationsite.com/POT/report/index.php
(which I have protected with .htaccess). I'm using the sample
report files included with the POT distribution.
One recommendation I would make is to set up your DB using
MySQL_Merge. Otherwise, you'll eventually have really slow reporting.
I'm sure my email here also makes alot of assumptions, but I hope
it's helpful!
cheers
SAM :)
John Oliver wrote:
> OK... I think I have it installed. So... now what? The documentation
> makes an awful lot of assumptions.
>
> Basically, I think we want to use a web bug or something similar. We
> have Flash-based banner ads out there, and want to have a "hit" passed
> back to us with an identifier for each ad. We assign a "project id" to
> each ad, so if we can just get that, that'll be enough for us to tell
> everything else. We added something to the Flash code that sent a "hit"
> back to a virtualhost I created so that a log entry would be generated
> with the pid, and I was planning on using some bash scripting to read
> out and count pids
>
> Now that I found out about POT, it sounds great, but there's absolutely
> no clue about what to do with it! If I was interested in info about
> HTML served up from our server, I can see some info. But how would a
> "hit" from the outside access and pass info to POT? Once stuff is being
> logged, where are the logs, how do I read them, where's the control
> panel or whatever to sort it all out?
--
Sam Stevens, solutions_PHP
http://www.solutionsphp.com/
Open source? Of course!
phpdirectory - a coder's arsenal
http://www.phpdirectory.com/
**************************************************
Tired of sifting through all that SPAM? We recommend using
MailWasher, an excellent tool for socking it to spammers.
Download a free trial:
http://fta.firetrust.com/index.cgi?id=5966&page=1
**************************************************
IMPORTANT - CONFIDENTIAL INFORMATION
Privileged/Confidential Information may be contained in this message.
If you are not the addressee indicated in this message (or
responsible for delivery of the message to such person), you may not
copy or deliver this message to anyone. In such case, you should
destroy this message and kindly notify the sender by reply email.