[help] a redirecting question :(

4 replies
hey everybody, im in desperate need of help
i just wanted to ask how to redirect affiliates.

Long story short,
affiliate link = game pay per lead (converts: US, CA, UK) or else goto survey.
how can i create a link?, that does this:
link = (if US, CA, UK go to affiliate) or else go to thenameofgame.com

why:
i wanna provide a link where everybody will go to the same destination.
if consumer is from targeted audience, he goes through my affiliate link.
if not, it's ok. mantain a clear name at least :/
(it sucks if somebody tells you go here to play this game, and you bump on a survey ,right?)


More Detailed example:
(if you allready understood you dont need to read this ^^)

Let's say Ubibroft creates a game: Watch docs
Ubibroft pays affiliates 1.25€ per lead from UK US CA.
i get my "Warrioraffiliate link" which is: ubismoney.com/ref=123
i say to my Youfube channel:
Guys play Watch docs, it's cool! click here: ubismoney.com/ref=123
(-yes i will cloak that xD)
Player from UK clicks, signs up! all good!
Player from DE clicks, see's a survey ad.. leaves.. hates me.. etc :/

How can i create a link that will do this:
Player from UK clicks, gets redirected to ubismoney.com/ref=123
Player from DE clicks, gets redirected to watchdocsonline.com
So that both are satisfied?

Thanks for any answer in advance,
I hope there's somebody out there who can help me..!
Cheers, Skyscreamer

(all links & brand names provided in this post are creation of my fantasy, and used as an example. Any use is at your own risk)
#question #redirecting
  • Profile picture of the author andrewjorgenson
    Use GeoIP to determine the users location ( freegeoip.net: FREE IP Geolocation Web Service - possibly useful resource).

    From there it should be pretty straight forward.
    {{ DiscussionBoard.errors[8504209].message }}
    • Profile picture of the author SKYscreamer
      Originally Posted by andrewjorgenson View Post

      Use GeoIP to determine the users location ( freegeoip.net: FREE IP Geolocation Web Service - possibly useful resource).

      From there it should be pretty straight forward.
      yah this looks like it would do the trick, thanks
      can you please assist me a bit further?
      i dont really get how to do the whole process there :/
      {{ DiscussionBoard.errors[8506670].message }}
      • Profile picture of the author BuddhaOfCode
        Originally Posted by SKYscreamer View Post

        yah this looks like it would do the trick, thanks
        can you please assist me a bit further?
        i dont really get how to do the whole process there :/
        You can do that with a server side language or by Javascript, ..

        Here is a Javascript solution for you:
        HTML Code:
        <html>
        <head>
          <script type="text/javascript" src="//j.maxmind.com/js/geoip.js">
          </script>
          <title>JS Location</title>
         <script>
          if(geoip_country_code()  == 'US' || geoip_country_code()  == 'UK') {
           /// DO This
        }
         else  { 
          /// DO That
        }
        </script>
        </head>
        
        <body>
        
        </body>
        {{ DiscussionBoard.errors[8507295].message }}
  • Profile picture of the author KittyPoo
    You would need ip to country database for finding real location of your visitors and then you can redirect as per your need and as per the language you are using
    {{ DiscussionBoard.errors[8518160].message }}

Trending Topics