Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   General Business Knowledge (http://www.greenguysboard.com/board/forumdisplay.php?f=10)
-   -   Hits-sent counting software (http://www.greenguysboard.com/board/showthread.php?t=2327)

Marius 2003-11-13 02:36 PM

Hits-sent counting software
 
Hi,

We're looking for some software that will count and manage hits sent to sponsors from our pages.
It must be able to handle 100000+ a day without killing the servers.

We've thought about some circlejerk program but just thought I'd ask here if some of
you have recommendations, or even something for sale?

Thanks!

guschi2k 2003-11-13 03:31 PM

if you just want to count the traffic you sent to a specific url and don't need any fancy administration / stats GUI

Code:

#!/usr/bin/perl
# Set Variables
# This is the counter log filename
$databasefile = '../html/stats/iwonderiftheycounallthetrafficisend.txt';
# This is your main URL path
$YourURL = 'http://www.domain.com';
##########################################################
$originallink = "$ENV{'QUERY_STRING'}";
# v3.5 - Get remote file
if ((substr($originallink, 0, 7) eq 'http://') ||
    (substr($originallink, 0, 6) eq 'ftp://')) {
 $link = $originallink;
}
else {
 $link = "$YourURL/$originallink";      # YourURL + Link to file
}
open(DB,"+<$databasefile") || die $!;
flock(DB,2);                  # Locking file
seek(DB,0,0);
@DATA = ;
$SIZE = @DATA;

$i = 0;
while ($i <= $SIZE) {
  ($counter,$oldlink) = split(/`/,$DATA[$i]);
  chop($oldlink);
  if ($oldlink eq $originallink) {
    $counter++;
    $DATA[$i] = "$counter`$originallink\n";
    goto LocateLink;
  }
  $i++;
}
push @DATA, "1`$originallink\n";
LocateLink:
@DATA = sort {($b =~ /(\d+)/)[0] <=> ($a =~ /(\d+)/)[0]} @DATA;
seek(DB,0,0);
print(DB @DATA);
truncate(DB,tell(DB));
flock(DB, 8);                # Unlocking file
close(DB);
print "Location: $link\n\n";

i found that piece of code a while ago and use it to count all the traffic is send to specific urls

you just need to create a *.txt file and start to send all traffic through count.cgi or however you want to name it :)

i'm sure it can handle 100k clicks per hour without slowing your server down. :)

Verbal 2003-11-13 04:33 PM

Hey Marius,

You might wanna check out phpAdsNew .

It's a free and very powerful! |thumb|


Peace,
Verbal

Marius 2003-11-13 06:12 PM

Thanks Verbal, someone posted the same to me on another board.
But I didn't get any url, so I couldn't find it. (they called it something slightly different)

Gonna give it a try, have you tried it yourself Verbal?

Verbal 2003-11-13 08:46 PM

Marius,

Yes, I'm still testing and tweaking it on my domains. There's so many features it takes a bit to get it all up and going. I like how you can run ad campaigns, track hits across multiple domains, do geo-targeting and a lot of other useful options. It's the best ad server software I've used so far.

And you can't beat the price! :D

lordaron 2003-11-13 09:23 PM

oh another dude from norway, cool :)

Marius 2003-11-14 02:42 PM

Thanks for the info Verbal.
Installing it now, looking forward to see how it works.

I just saw that |greenguy| and |Jim uses it on this site as well.

That's right Lordaron, I'm from Norway too |bananna|

I currently live in Spain.
What about you?

{fusion} 2003-11-15 05:29 AM

Hi check out

http://www.nibbi.net/scripts/EzClickStats.php

only $15.00 USD and very well coded, nice light code and works well.


All times are GMT -4. The time now is 10:17 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc