GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   What is outclick tracker? any benefits? (https://gfy.com/showthread.php?t=830426)

dfa 05-23-2008 12:52 PM

What is outclick tracker? any benefits?
 
i hear people using outclick tracker. What is it exactly, how can i get it?
And what are the benefits of it?

Thanks in advance

dfa 05-23-2008 01:53 PM

I don't need anything fancy. I need something that simply will keep a tally on how many times a link was clicked and wrote it to a file. Something like that is fine. I basically just want to see how many hits a couple links get.

Goodings Media 05-23-2008 10:48 PM

hey,


this is something rough n ready, make it more robust as you need to

PHP Code:

<?php
/***** Link tracker*******
Track hits using ....out.php?out=http://yourtradepartner.com

************************/

if(isset($_GET['out'])){
        
mysql_query("UPDATE tracker SET hitsout=hitsout+1, hitsout_today=hitsout_today+1 WHERE link='" $_GET['out'] . "'");    
        
header('Location: ' $_GET['out']);
?>

build a table in your database called 'tracker' with fields 'id', 'hitsout', 'hitsout_today', 'link'

run a cron job with a seperate script each day that sets all 'hitsout_today'=0

make link the URL of your trade partners. To standardize and simplify the script, always use the form http://partner.com

So, to use....

http://www.yourwebsite.com/out.php?o...p://google.com

Hope that helps :)

papill0n 05-23-2008 11:39 PM

Quote:

Originally Posted by dfa (Post 14229027)
i hear people using outclick tracker. What is it exactly, how can i get it?
And what are the benefits of it?

Thanks in advance


like you said in your second post the benefits are that you are able to track how many clicks a link gets

Goodings Media 05-24-2008 12:09 AM

just missed out a curly bracket, } :P

PHP Code:

<?php
/***** Link tracker*******
Track hits using ....out.php?out=http://yourtradepartner.com

************************/

if(isset($_GET['out'])){
        
mysql_query("UPDATE tracker SET hitsout=hitsout+1, hitsout_today=hitsout_today+1 WHERE link='" $_GET['out'] . "'");    
        
header('Location: ' $_GET['out']);
}
?>


dfa 06-01-2008 10:40 AM

thanks a lot guys...really appreciate it


All times are GMT -7. The time now is 02:32 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123