Geotargeting

Status
Not open for further replies.

Ben89

New member
Mar 30, 2007
670
4
0
Hey guys,

So I'm looking to promote this offer that initially asks for the users's state of residence, but that piece of info is redundant if I'm geotargeting and know where the user is coming from already. So, my question is what is the best way to send them to the affiliate link and quickly redirect them to the next page of the offer? I was thinking a meta refresh?
 


A meta refresh wouldn't work unless you could put it on the advertiser's first page asking for the state.

I think the best you can do is pre-populate the offer if the advertiser allows it, and get your users to click through.
 
I would think php could do it pretty nicely... this is an ugly example since I'm not sure how you get your geoip data or what your aff link looks like, or if you can even prepop data to the particular offer you're running to.

<?php

$ip = $_SERVER['REMOTE ADDR'];

$location = getLocation($ip);

header("Location: http://www.afflink.com/?prepostate=$location");

?>

meta refreshes are not as fast as this. Not sure of faster ways, maybe do something at the .htaccess level?
 
Last edited:
Status
Not open for further replies.