TV202 Prosper202 Tracking202 Export202 WorldProxy202 Meetup202 | Blog Forum Newsletter Twitter | Advertise
Login · Register
Home About Docs Scripts Blog Forums Hosting Donate Download
Before Posting, Have You Read the FAQ? And Have You Searched? If Not Please Do!

Can I disable Filtered Clicks?

Post new topic Reply to topic Prosper202 Forum Index » Prosper202 Installing & Upgrading
New Posts Search Forum
Author Message
shawnwalters


Joined: Sep 24th, 2009
Posts: 3

Post Posted: Oct 7th, 2009 at 3:56pm Post subject: Can I disable Filtered Clicks? Reply with quote

My advertising source sends some visitors several times for different keywords. And it appears prosper only recognizes the first one as a valid click. Is there a way to disable feature that in the code somewhere?

Thanks,

Shawn

Back to top
shawnwalters


Joined: Sep 24th, 2009
Posts: 3

Post Posted: Oct 7th, 2009 at 6:16pm Post subject: Re: Can I disable Filtered Clicks? Reply with quote

Is it as simple as commenting out the return true line of this snippet from functions-tracking202.php?

//this will filter out a click if it the IP WAS RECORDED, for a particular user within the last 24 hours, if it existed before, filter out this click.

function checkLastIps($user_id, $ip_id) {

$mysql['user_id'] = mysql_real_escape_string($user_id);

$mysql['ip_id'] = mysql_real_escape_string($ip_id);

$check_sql = "SELECT COUNT(*) AS count FROM 202_last_ips WHERE user_id='".$mysql['user_id']."' AND ip_id='".$mysql['ip_id']."'";

$check_result = _mysql_query($check_sql) ; //($check_sql);

$check_row = mysql_fetch_assoc($check_result);

$count = $check_row['count'];

if ($count > 0) {

//if this ip has been seen within the last 24 hours, filter it out.

return true;

} else {

//else if this ip has not been recorded, record it now

$mysql['time'] = time();

$insert_sql = "INSERT INTO 202_last_ips SET user_id='".$mysql['user_id']."', ip_id='".$mysql['ip_id']."', time='".$mysql['time']."'";

$insert_result = _mysql_query($insert_sql) ; //($insert_sql);

return false;

}

}

Back to top
daviddochoa
Website Twitter


Joined: Aug 22nd, 2009
Posts: 68

Post Posted: Nov 21st, 2009 at 4:47pm Post subject: Re: Can I disable Filtered Clicks? Reply with quote

What did you find out when you turned that into "false" ?

Back to top
Post new topic Reply to topic Page 1 of 1

Creative Commons License This work (Prosper202, Tracking202 and Export202) is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.