1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

What is Geo Targeting Script?

Discussion in 'Scripts' started by James chartler, Jun 5, 2013.

  1. #1
    In one forum i found that Geo Targeting Script would help to trace the user from different countries. What is that script? I want to use that in my site. Please give detailed explanation.
     
    James chartler, Jun 5, 2013 IP
  2. anil verma

    anil verma Member

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #2
    
    </script>
     
    <script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script>
    <script language="JavaScript">
     
    var country = geoip_country_code();
     
    switch (country)
    {
    case (country = "US"):
      window.location = "http://bing.com";
    break;
    case (country = "IN"):
      window.location = "http://yahoo.com";
    break;
    case (country = "ID"):
      window.location = "http://xyz.com";
    break;
    case (country = "BD"):
      window.location = "http://cj.com";
    break;
    default:
      window.location = "http://kingofabs.com";
    break;
    }
    </script>
    Code (markup):
    put in the html file and open when user drom US = united state it will see bing.com

    i think u got my point
     
    anil verma, Jun 26, 2013 IP