Wordpress CPA plugin with Geo targeting feature

16 replies
Hello i'm looking for a wordpress plugin with geotargeting features.
I have traffic from US, UK, CA, what i need is to redirect users on different landing pages based on their countries.
Eg: if the visitor is in the US, that's fine, no redirection.
If the user comes from UK, the plugin should redirect them to a UK CPA offer and so on...
How can i do that with wordpress?

Best regards

M
#cpa #feature #geo #plugin #targeting #wordpress
  • Profile picture of the author Greedy
    This script is all you need...

    <script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script>


    <script language="JavaScript">

    var country= geoip_country_code();

    if(country == "US")
    {
    window.location = "YOUR US OFFER"
    }

    else
    {
    window.location = "OTHER OFFER URL"
    }

    </script>
    Just use else if to add new countries.
    {{ DiscussionBoard.errors[8793352].message }}
    • Profile picture of the author Master IM
      Thanks Greedy, i have tried that bbut it doesn't work for me.
      Basically i need to redirect users on different webpages on the website.
      Ex: US users goto domain.com/cpa-us
      CA users: go to domain/cpa-ca
      and so on
      the problem is i get loops whle trying to do that.
      here is the code i use:

      <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://domain/us/";
      break;
      case (country = "GB"):
      window.location = "http://domain/gb";
      break;
      case (country = "CA"):
      window.location = "http://domain/ca";
      break;
      default:
      window.location = "http://domain/all";
      break;
      }
      </script>

      Probably because i'm trying to redirect to the same website where the code executes.
      I need to do that, because i want to capture leads before sending them to the cpa offer.
      {{ DiscussionBoard.errors[8795444].message }}
    • Profile picture of the author twotul
      Originally Posted by Greedy View Post

      This script is all you need...



      Just use else if to add new countries.
      Hey can you tell me more about this. I am trying buy not work. Please help me.
      Signature
      {{ DiscussionBoard.errors[9975508].message }}
      • Profile picture of the author quinnj102
        Originally Posted by twotul View Post

        Hey can you tell me more about this. I am trying buy not work. Please help me.
        What are you going to be using this for? I have my own script called CPA Redirect Pro that has geo targeting and more... If you are interested contact me on Skype at joseph.quinn81 for more info.

        If you would prefer a Wordpress plugin, I can help you with that also .


        Thanks,
        Joseph Quinn
        Signature

        Unlimited Talk Text and Data Plan $49 Click on the link for more info >> No More Contracts <<

        {{ DiscussionBoard.errors[9975517].message }}
  • Profile picture of the author Greedy
    Just paste my script above into a text file, then save it as .HTML, and upload to your server.

    It will only take you 5 minutes. It is very easy to use.
    {{ DiscussionBoard.errors[8794486].message }}
  • Profile picture of the author wrs6
    Open-Source Geo Redirection Script :cpaclickz.com
    {{ DiscussionBoard.errors[8794588].message }}
  • Profile picture of the author alistair
    Here's one that may fit the bill if it's a plugin you want- AdRotate Pro - AdRotate Plugin for WordPress (no affiliate link).

    They do a free version but it doesn't give you the geotargeting feature - WordPress › AdRotate « WordPress Plugins

    Anyway it might be an option.
    {{ DiscussionBoard.errors[8794668].message }}
  • Profile picture of the author awsproduct
    hello
    i think use a code of Greedy is great more than plugin wordpress
    Signature
    {{ DiscussionBoard.errors[8794678].message }}
  • Profile picture of the author atwellpub
    WP Traffic Tools has a lot of capabilities that target these practices. WSO here too.

    WPTrafficTools
    {{ DiscussionBoard.errors[8795053].message }}
  • Profile picture of the author Master IM
    ok, addressed the issue, thanks
    {{ DiscussionBoard.errors[8796232].message }}
    • Profile picture of the author IamFurqan
      Try this "I hope this can help you"

      Cheers

      Code:
      <!doctype html>
      <html>
      <head>
        <meta charset="utf-8">
        <title>Redirecting...</title>
        <!------------------------------------------------------------------ 
          MaxMind's GeoIP JavaScript API 
          @URL: http://dev.maxmind.com/geoip/javascript 
        -------------------------------------------------------------------->
        <script src="//j.maxmind.com/app/country.js" charset="ISO-8859-1"></script>
        <script>
          // ----------------------------------------------------------------
          // A small snippet for geo-redirection using MaxMind's GeoIP API.
          // Add your targeted country's "ISO 3166-1 - Alpha-2" code and
          // redirect URL to the "target" array object. 
          // ----------------------------------------------------------------
          // Example: target['us'] = "http://domain.com";
          // ----------------------------------------------------------------
          // Country Codes can be found @( Wikipedia - http://bit.ly/nWBMYz )
          // See Column: "Alpha-2 Code"
          // ----------------------------------------------------------------
          (function(){
              
              var target = new Array(); // Create a new target Array.
              
              // Example Code:
              target['All'] = "http://domain.com/"; // Redirects' Non-targeted/other visitors to this URL.
              target['US']  = "http://domain.us/";  // Redirects' US Visitors to this URL.
              target['GB']  = "http://domain.uk/";  // Redirects' UK Visitors to this URL.
              target['CA']  = "http://domain.ca/";  // Redirects' Canadian Visitors to this URL.
          
              // ------------------------------------------------------
              // DON'T EDIT THE BELOW CODE UNLESS REQUIRED
              // ------------------------------------------------------
              var visitorCountryCode = geoip_country_code();
              var redirectURL = target[visitorCountryCode];
              if(redirectURL == null) redirectURL = target['All'];
              if(redirectURL) window.top.location.href = redirectURL;
              
          })();
        </script>
      </head>
      <body>
          <p>Please wait...</p>
      </body>
      </html>
      Signature

      I'm a Newbie

      {{ DiscussionBoard.errors[8796717].message }}
      • Profile picture of the author quinnj102
        I have a plugin that does this. U can set approved countries for traffic and redirect the rest of the traffic to any URL that you want.

        WP Click Control
        Signature

        Unlimited Talk Text and Data Plan $49 Click on the link for more info >> No More Contracts <<

        {{ DiscussionBoard.errors[9004598].message }}
  • Profile picture of the author owen2012
    Hey Master IM,

    I usually create a html redirect like this one:

    https://s3.amazonaws.com/Country/country.html

    Cheers
    {{ DiscussionBoard.errors[9008204].message }}
  • Profile picture of the author Avocado Plugins
    Hey there if you are still looking for a solution or for anyone else who might be looking for a solution then here is a very neat plugin developed professionally to accomplish that task.

    No bloated features, no complicated controls.

    Very straight-forward & user-friendly.

    Get the plugin here >>> CPA GEO Targeting WordPress Plugin <<

    Signature
    Let our lean, healthy and shredded WordPress Plugins make you more money... start here.
    {{ DiscussionBoard.errors[9301707].message }}
  • Although it's not a WP Plugin, this feature and more is built into the newest version of Prosper202 ClickServer 1.8.4

    You can redirect by browser type (firefox, chrome, safari etc) , device type desktop/mobile, geo (country/state/city), OS windows,mac etc and much more.

    As always Prosper202 is free to download and use.

    Here's a pre-release video I did before launching this feature:
    {{ DiscussionBoard.errors[9301747].message }}
  • Profile picture of the author quinnj102
    Originally Posted by Master IM View Post

    Hello i'm looking for a wordpress plugin with geotargeting features.
    I have traffic from US, UK, CA, what i need is to redirect users on different landing pages based on their countries.
    Eg: if the visitor is in the US, that's fine, no redirection.
    If the user comes from UK, the plugin should redirect them to a UK CPA offer and so on...
    How can i do that with wordpress?

    Best regards

    M
    Hi I am in the process of developing a wordpress plugin that will do exactly what you are looking for and on top of that will detect mobile and desktop users and redirect to the appropriate offer.

    First it will check the country and if they country is allowed it will check if the visitor is on mobile or desktop and then redirect to the correct offer. Same thing with the country.

    If the offer does not accept traffic from that country you will be able to redirect to any URL of your choosing (i.e. similar offer that allows traffic from that country).

    This way there is no wasted traffic and your conversions will skyrocket
    Signature

    Unlimited Talk Text and Data Plan $49 Click on the link for more info >> No More Contracts <<

    {{ DiscussionBoard.errors[9430526].message }}

Trending Topics