URL Rotator Plugin for WordPress

Welcome to the URL Rotator Plugin for WordPress!

The URL Rotator plugin allows you to specify a group of target URLs you’d like to cycle through, then specify a jump key that allows you to reference this group from anywhere.

For example, let’s say I want to create a jump key to cycle through three different search engines.

I create the jump group to include:

http://www.google.com

http://www.yahoo.com

http://www.bing.com

I then create a jump key of ’searchengine’ on my site, so I can send people to the url http://jonathanboettcher.com/searchengine and it will automatically cycle through those three sites. Try it – the link is live. Each time another person clicks on the site, it chooses the next URL as the target.

The plugin also has a hit counter that you can reset – a crude but effective way of measuring overall traffic. For example, if you’re testing three offers and you send 300 clicks, you know that each offer has received 100 clicks.

In addition, the plugin was designed so that it can pass along any URL variables you send to it. So if you’re trying to do keyword tracking, you can do that. You just have to be careful you format your target URLs correctly.

Here’s a YouTube video I did which explains a bit more:

For the time being, I’m planning on keeping this plugin free, but I have a few ideas up my sleeve that are going to make this plugin far more powerful (think about tracking) and at that point I will probably start charging something for it.

To get the plugin, just enter your name and email below, so that you will be notified of updates (and there will be some cool ones coming!) and you will be automatically redirected to the download.

Name:
Email:

If you’ve got comments or suggestions for the plugin please leave a comment below!

72 Responses to URL Rotator Plugin for WordPress
  1. teevee
    July 13, 2009 | 2:14 pm

    I am so happy to be the first one to comment. :)

    I have not tested it yet so I have no suggestions, but love the idea. I just now getting into CPA networks and love the possibilities.

    Great job.

  2. Jonathan
    July 13, 2009 | 2:18 pm

    Thanks Teevee! I think it could be pretty useful to quickly test a handful of offers, and on top of that, the redirection ability alone is pretty cool, even if you only use it for single URLs (not groups).

    Stay tuned – we’re working on a better version that is going to allow keyword tracking throughout wordpress so that you can easily integrate this with any tracking software, and also so that you don’t lose stats as people browse through a wordpress site and the cookie gets lost!

  3. Wizzer
    July 17, 2009 | 2:32 am

    I found your blog via BlogEngage – I use WP extensively and love the idea of this plugin. I’ll be trying it out over next week or so and will probably recommend to our members at Blogging Beginners

    I’ll let you know my thoughts in due course. Thanks. Wizzer

  4. Jonathan
    July 17, 2009 | 2:03 pm

    Thanks Wizzer – I appreciate any feedback, and very much appreciate any recommendations! Cheers.

  5. Eric Itzkowitz
    September 3, 2009 | 12:38 am

    @Jonathan: I am getting an error when trying to preserve a variable or create a jump group. The error reads, “You do not have sufficient permissions to access this page.” I am not sure how to resolve this issue. Can you assist me?

  6. DJ Tutorial
    October 22, 2009 | 7:57 pm

    This looks like a great plugin. I have a new idea up my sleeve and I’m working on getting everything I need together before I start the project. I am planning on using this as a destination rotator for an ad, much like how you mentioned in your other post about using it to try different affiliate products. Thanks for making this free! (btw, I hope it’s ok that I used keywords in the name field. if not, i apologize and have no problem with you replacing it with my name) -Fooz

  7. Jonathan
    October 23, 2009 | 3:20 pm

    Hi Fooz, I’m glad you find it useful.

  8. Gregory Hyne
    October 28, 2009 | 11:36 am

    I’ve got a wordpress blog that’s based upon a template. My homepage is a static page (squeezepage with opt in) that is an external html file. Would I be able to use your plugin to rotate the homepage so I can split test it with Aweber. In other words I don’t want to have to enter a jumpkey path. Any help appreciated.

  9. Jonathan
    October 28, 2009 | 11:47 am

    Hi Gregory – I’m not sure you’d be able to pull that off with this particular rotator. What does spring to mind though is using Google’s Website Optimizer (free) to swap pages. Basically what you’re looking for there is a split testing plugin rather than a rotator. Although, I guess if you redirected your home URL to a jumpkey path, then within the jump key you specified two different pages, then it could technically function as such. I think you could probably find a cleaner solution though by looking for some sort of split testing plugin for wordpress. I assume there must be something out there – if not let me know and maybe I’ll get one built! =)
    Cheers

  10. Hamo
    November 7, 2009 | 7:09 pm

    Excellent, I was just about to hire a programmer to build me one, then thought I would have a look around, and found your plugin, which is exactly what I needed. Cheers.

  11. Eric
    January 9, 2010 | 2:34 pm

    I’m getting the following when trying to install. I have checked permissions and everything looks ok.

    “Unable to create directory /images/2010/01. Is its parent directory writable by the server?”

  12. MLM Edge
    January 26, 2010 | 12:56 am

    Absolutely Fabulous tool. I am using for ppc marketing co-ops and its fantastic. Wasnt sure how I would go about it until I found your brillian plugin. I love wordpress and I now love you. LOL.

    Thanks

    Jay Roberts

  13. David
    January 28, 2010 | 10:23 am

    I don’t know what I am doing wrong. It just goes to page not found.

    Thanks

  14. David
    January 28, 2010 | 10:35 am

    I don’t know why it would matter, but it didn’t seem to work on a subdomain, but worked on a regular domain.

  15. Jonathan
    January 28, 2010 | 7:09 pm

    Hmm interesting observation David. I hadn’t noticed that before. Thanks.

  16. MLM Edge
    January 31, 2010 | 5:15 am

    Hey Jonathon

    I have the plugin working and all is well BUT
    adwords keeps disapproving it as the destination URL (of which there are 8 in rotation) does not match the display URL which if course it wouldnt as i have 8 different ones.

    Any Ideas?

    Jay Roberts

  17. Jonathan
    January 31, 2010 | 10:22 am

    Hey Jay,

    Yeah, if you’re trying to do a split test of the actual landing page, you would probably be better off using Google’s Website Optimizer.

    The way I would use this plugin in that situation is to create a somewhat generic landing page, with a “Get More Info” or whatever link on the page… which would then be rotated.

    You have to be very careful with Adwords’ TOS requirements… they’re quite picky.

    Oh – just occurred to me that they don’t allow multiple destination domains in an adgroup… so if you’re redirecting to multiple domains, that’s probably your problem right there. Could try it again, but with all redirects on a single domain… or try the static LP with a rotating offer link.

    Cheers

  18. walter daniels
    February 28, 2010 | 10:35 am

    I stumbled across your pages from a comment on an aweber page, and am glad I did. You’re refreshingly different in your attitudes. I was especially glad to see the WordPress rotator. One of the things I wanted to do as a continuity offer, was rotating ads on the blog pages, for members. I wasn’t sure if it could be done, or if it was worth doing. This looks like it could work for me.
    I’m trying to raise money to set up a site and start selling a book that I’ve almost finished. It’s based on Barnum’s comment about wasted advertising money. “I know of my advertising is wasted, I just don’t know which half!” My guess now, is that it’s more like 75% wasted, based on what I see being done. If you’d like to look at the almost finished work, let me know.

  19. Jonathan
    February 28, 2010 | 4:47 pm

    Hi Walter – this plugin will rotate URLs behind an ad, but it isn’t a banner rotator, which it sounds like you might be looking for… ?

  20. Juni
    March 3, 2010 | 12:21 pm

    This is very good. One modification is required which I am sure some will not agree.
    Once a user see an offer and if they return back they should see the same offer unless they have cleared their cache. That way you will not confuse the user by showing other URL..

  21. Jonathan
    March 3, 2010 | 12:40 pm

    Hi Juni, that’s an excellent suggestion. Cheers.

  22. [...] for a few days, which I found to be quite easy. And, it was this testing of Jonathan’s URL Rotator plug-in that provided further validation for a few additional features I thought might make this a more [...]

  23. mark
    June 23, 2011 | 12:10 pm

    Are the URL rotated randomly?
    If I have a 3 websites and 100 visitors,
    would each website show 33 times or

    it could be 20, 50, 30 ..

  24. Jonathan
    June 24, 2011 | 8:59 am

    Hi Mark, the URLs are rotated evenly, not randomly. So out of 99 clicks, the 3 sites would each get 33 clicks…. the purpose is to evaluate the earning potential of different offers with your traffic, not to randomize the links per se.

  25. Karl Steinmann
    October 6, 2011 | 4:22 pm

    Hey man!

    Thanks for this rockin’ plugin! It’s going to be very handy for me as I need to test offers/ads and would like to keep it all “in house.” There are services that offer rotators (as you undoubtedly know), but having it all in one place makes it very helpful and convenient.

    Outstanding! I look forward to trying this out. :-)

  26. Shanna
    November 8, 2011 | 6:41 am

    This sounds exactly what I am looking for to promote my teams pages for our network marketing company. I’ve downloaded it and will check it out. Thank you!

  27. micky
    December 26, 2011 | 9:30 am

    Love these tips! I am going to install some today hopefully. One question – how do you feel about adding all these plugins? I don’t want to bog my site down w/ too many. Also – wondering what you think about putting a floating subscribe bar in wordpress.

  28. Matt
    January 31, 2012 | 8:53 am

    Jonathan,
    I tried your plugin awhile back but wasn’t quite ready for it. Now that I am , I can’t get access to it. Any chance you can forward a link to my email.
    Thanks Jonathan, great stuff!

  29. Jon
    February 19, 2012 | 2:38 pm

    Hi Jonathan, looks like a great plugin, thanks for sharing!
    I have 2 Questions:
    1)can the same result be accomplished using Google Website Optimizer?

    2)What plugin r u using for the “subscribe to blog updates” check box below? And how did you get them to be checked by default…

    Thanks for your help!

  30. James A
    March 8, 2012 | 10:56 pm

    Hey Jonathan

    Thanks for the great free tool… just uploaded and going to start some testing now.

    Will allow me to test and see which offers are converting quickly then nail those ones!

    Thanks again… much appreciated.

    James

  31. Jonathan
    March 28, 2012 | 12:08 pm

    Website Optimizer is quite different…

    The subscribe one is called “Subscribe to Comments”

  32. Jon
    March 28, 2012 | 3:20 pm

    Hi Jonathan,

    Thanks for the great plugin!~

    Just installed it.
    You mentioned on your email that u might be working to develop this plugin further, have some updates in the works and are looking for suggestions. If u are still working on this plugin, I had a couple features that would be very useful to add;

    1) More permanent tracking statistics, so u don’t loose all your data or history every time you want to restart the same campaign. So in other words the ability to restart multiple sub-campaigns within the same jump group and look back at your history to test and track etc.

    2) To have the visitors cookied, so that once they click the main URL, if they click on that Ad or email link ever again, they always go back to the original affiliate link or offer they first landed on. (so the affiliate or team member (in the case of a co-op) who paid for the original traffic, will get any sale from that visitor)

    3) To have weighted factors to control the percentage of time a specific link is clicked in the rotation, for example URL#1 gets 73% of clicks, URL#2 gets 27% etc. Also a different mode that gives the ability to specify a specific number of clicks that URL 1 gets, for example 500 clicks, b4 moving on to URL 2, and so on, etc

    4) The ability to cloak the links, so they appear as a prettier link or just a completely custom URL

    There’s not enough people making good SELF HOSTED WP plugins for this application so we really appreciate what you’ve embarked on here, it’s a huge need!

    Thanks again!

  33. Jonathan
    March 28, 2012 | 3:30 pm

    Thanks Jon, those are great suggestions.

  34. Clay Montgomery
    April 2, 2012 | 7:00 am

    Hey Jonathan,

    I’m about to grab this plugin to test it out. Great job, by the way.

    I read through most of the other comments and like some of these other people I was searching for something like this so I can run ad co-op’s with my team using their affiliate links.

    I would set up separate ad campaigns, each one with an order form to order one or more shares. The form would be done with a custom form plugin so I can ask them for their username which goes at the end of their affiliate link.

    I’m explaining all of this so you understand before I make a suggestion.

    It would be nice to have one of two things. Either use your existing plugin to create a complete ad co-op plugin capable of setting up separate campaigns and building the link groups automatically. Also closing out a campaign for further purchases once all shares have been purchased.

    Or give us a way to automatically populate a custom field at the end of a link in our link group. Something like {affid} for example.

    I’m not a programmer or I would be more specific. The ad co-op manager plugin would be an awesome idea and I would not expect something like that to be free.

  35. Terence W
    April 3, 2012 | 8:05 pm

    just commenting to let you know i’m interested in using this plugin too. ive downloaded it and just about to start split testing offers to find a winner.

    glad to see you are still involved with this plugin in 2012.

  36. Eric
    April 26, 2012 | 3:25 pm

    Thank you very much, i´ve been crazy for one week looking for this plugin.
    Really simple, efective and intuitive.
    Now i can test to rotate my Landing Pages to search for the best one.
    Thanks!

  37. Hamzy
    May 17, 2012 | 11:33 am

    Looks great. I will use this plugin.

  38. Chris
    May 22, 2012 | 4:51 pm

    How do I edit or delete entries I create that have mistakes in the links?

    URL Rotator won’t delete these entries. I cannot find the entries in any database tables for my site. Deactivating, deleting the plugin, and reinstalling restores the previous data.

    Not sure if this is related, but I have a “This needs mod_rewrite turned on!” message in the plugin control panel, but I verified my mod_rewrite is turned on.

  39. Jonathan
    May 23, 2012 | 4:08 pm

    The edit / delete functions work fine for me… not sure what may be causing that. Also, if you have fancy urls turned on, ie domain.com/post-ID/ then this should work fine.

  40. Chris
    May 23, 2012 | 5:19 pm

    Jonathan, I tried the default wordpress permalink setting, and I tried the post name structure setting.

    It didn’t matter which was set, I still have 4 links in URL rotator that I cannot edit or delete, no matter what I do.

    I could not find any database table associated with this plugin. Is there an XML file or something where it keeps track of the links? If so, where and how do I locate the file so I can edit it?

  41. Chris
    May 23, 2012 | 5:20 pm

    Also, my host verified mod_rewrite is installed and turned on, but I still have the message

  42. carlo
    May 29, 2012 | 11:17 am

    Hello Jonathan I also have a problem to make it work.
    I put the links are not rotating.
    I have the “This needs mod_rewrite turned on!”
    I would not be me to do something wrong

  43. Fern
    June 20, 2012 | 1:32 pm

    Downloaded it, set it up, its perfect. I am not tech savvy, but I did it in 2 minutes. I love it, thank you so much.

  44. Dave
    July 12, 2012 | 9:16 am

    This could be used for advertising co-ops for insurance agents, real estate agents, etc. whereby the agents receive leads based on the amount of money they put into the ad pool. Then, there would need to be the ability to ad “weighted” distribution to each link in the rotation. For example: link 1 = weight 1000, link 2 = weight 500, and link 3 = weight 25.

    Link 1 would receive the majority of the traffic. When no weight is specified for any link the group, it would default to random rotation.

    Just a thought. :-)

  45. Rada Francis
    July 13, 2012 | 8:03 am

    I love the idea behind this plugin. I recently installed it again even thought I downloaded it a long time ago. I am running into a problem though. When the plugin is active my whole website is so slow and the page which is added to the rotator shows up as unavailable. When I deactivated the plugin everything went back the being fast and I can see the page. Not sure if there is a glitch or something?

    Thanks

    Rada

  46. Jonathan
    July 13, 2012 | 8:17 am

    Hi Rada, it is possible that there is a conflict between the rotator and another plugin you have running I suppose. Although it hasn’t been updated in a while, I’m running the rotator on quite a few installations currently, and haven’t had any problems. I guess my recommendation is to start disabling other plugins while this one is still running, and see if you can find another that reacts the same way? That’s my best guess…

  47. Rada Francis
    July 13, 2012 | 9:57 am

    Thanks for your quick response I will try doing that. I just wanted to make sure there wasn’t anything going on at this time which could slow it down. Great work on this plugin btw. :)

  48. alex
    August 11, 2012 | 11:02 am

    just want to say thank you for this amazing feature, i’m now using this onmy blog

  49. Jason
    August 21, 2012 | 4:37 am

    Just want to drop a quick message and say this url rotation is an amazing plugin, exactly what I was looking for. Thank you

  50. Jeremy
    September 23, 2012 | 2:27 am

    Hey Jonathon – great plugin thanks. However, can’t get it to rotate the links. Getting the same message as Carlos and Chris in this thread. mod_rewrite needs to be turned on.

    Any fix for this that you know of? Running Windows 7 if that helps, but shouldn’t make a difference me thinks.

  51. Jonathan
    September 24, 2012 | 8:36 am

    Hi Jeremy – you have to have fancy URLs enabled, ie domain.com/postname or one of the other options. That enables mod_rewrite.

  52. Terence
    October 30, 2012 | 4:36 pm

    I’m getting a strange error due to this plugin all of the sudden. I was using yottaa.com for web speed optimization when its started causing a lot of issues with my site, so I canceled with them. I don’t know if its a related issue but now I’m getting a strange error involving this plugin: Warning: unserialize() expects parameter 1 to be string, array given in /home/adskdhh/public_html/mydomain.com/wp-content/plugins/rotator/rotator.php on line 53

    Any idea how I can fix it? When looking at that file in notepad++ there its saying everything is broken after line 53 which says:
    $wjdata = unserialize(get_option(“willjumpdata”));

    Line 54+:
    function wj_mgmt(){
    global $wjdata;
    echo ”;
    $wpurl = get_bloginfo(‘wpurl’);

    if (isset($_GET['newgroup'])){
    echo “Adding New Group…”;
    //$wjdata = array();
    $newgroup = array();
    $newgroup['key'] = $_POST['gkey'];
    $newgroup['links'] = explode(“\n”,trim($_POST['glinks']));
    $newgroup['clicks'] = 0;
    $wjdata[$_POST['gkey']] = $newgroup;
    update_option(“willjumpdata”, serialize($wjdata));
    }

    if (isset($_GET['savegroup'])){
    echo “Saving Group…”;
    $group = $_GET['savegroup'];
    unset($wjdata[$group]);
    $newgroup = array();
    $newgroup['key'] = $_POST['gkey'];
    $newgroup['links'] = explode(“\n”,trim($_POST['glinks']));
    $newgroup['clicks'] = $_POST['gclicks'];
    $wjdata[$_POST['gkey']] = $newgroup;
    update_option(“willjumpdata”, serialize($wjdata));
    $edit = $wjdata[$_POST['gkey']];
    }

    Is that normal?

  53. Jonathan
    October 30, 2012 | 4:45 pm

    Hi Terence, I’m not a programmer (I outsourced the creation of this plugin some time ago), so I’m not really able to help you out with that unfortunately. But no, it’s not normal, and I’ve not seen that problem before and I’ve put this on 50+ sites. Sorry I can’t be of more assistance.

  54. NaTrna
    November 4, 2012 | 2:46 pm

    Hi Jonathon. I have misplaced the plugin after different moves with my websites. I tried to re-subscribe but I can’t(already subscribed) I NEED THAT PLUGIN!! lol! But yeah for real, it’s da only one like it!

    Thanks,
    NaTrna

  55. Richard Schulz
    November 13, 2012 | 11:41 am

    Very Cool, was just asking a friend yesterday what Link Rotator to use for coop solo ads we are running as a team, he never answered so I googled “Link Rotator” and found this, Simple easy to use and all the info I need, # of hits to link!!

    Thanks for the Plugin works with out effort!!

  56. Jaymie Johnson
    December 24, 2012 | 12:40 pm

    Good stuff, thaNKS

  57. Scott
    September 10, 2013 | 9:47 pm

    You my friends are a BAD ASS! Thank you so much for your amazing plugin!

  58. Willie Diaz
    September 14, 2013 | 5:10 pm

    Yo homie just passing through to give ya many thanks for the plugin. Works like charm and very fortunate I found it and your video is very clear on the instructions. A+ for you my friend.

  59. cj
    September 21, 2013 | 12:44 am

    Finally something that works!! THANK YOU SOO MUCH!!!

  60. gino
    October 29, 2013 | 9:27 pm

    DUDE this is exactly what i was looking for ,,, MAN YOUR A GOD… in my esyes if you like to teach me more stuff & such conect with me ,, team crazy money
    Gino

  61. Jay
    November 15, 2013 | 4:26 pm

    Hey
    Thanks for putting this together. I can’t get it to track how many ppl actually click the link.. How can I get it to do this?
    Thanks!

  62. James Armstrong
    February 12, 2014 | 11:55 pm

    This is the perfect plugin for what I needed. I run a team page for a larger company and our public page directs non-members to join the larger group. I can put each team members affiliate link in the list and it rotates thru so each team member gets signups. Added benefit to being on our team!
    Thanks for the great plugin!

  63. Peter Dunning
    March 8, 2014 | 5:21 pm

    Jonathan thank you for putting this out there on the net I had been looking for this very thing for sometime now. It works great and will be a key part in my advertising efforts for my group of affiliates

  64. Gazz
    April 7, 2014 | 12:45 pm

    Thanks Jonathan, the plugin works like a dream ! :)

  65. Dion Wright
    April 23, 2014 | 10:52 am

    Hi Jonathan, i downloaded and installed the plugin and it is just what the doctor ordered!

    There is one thing. I am using this url rotator to promote affiliate products and i don’t want my hoplinks to be tampered with. Is there any way for me to cloak my Targets?

    Rsvp

  66. Jonathan
    April 23, 2014 | 11:07 am

    Hi Dion, true cloaking goes beyond the reach of this plugin… with that said, the link you’ll be actually using on your page is the redirect, so it will not show your target link. The target will only show once the user hits the target page.

  67. cindy
    April 24, 2014 | 11:45 pm

    Wow you literally saved me money!!! I cant thank you enough for this plug in you created for us! It workssss great!!! Thank you so much again. I appreciate that

  68. tim
    April 28, 2014 | 9:49 pm

    Hi jonathan. I would love to give this plugin a try. Soumds like exaclty what I need. Your download link is not working for me. Is it still available for download?

  69. Bryan
    May 11, 2014 | 12:50 pm

    Hi Jonathan:

    Downloaded your URL Rotator and using it on powerleadsystem.org and it works well with the latest version of WordPress 3.9.1.

    I now have included your link in an ebook I am working on http://seomindcrime.com/free-ebook-download/

    Thank you for such a good plugin.

    Sincerely,
    Bryan

  70. Chad Deckard
    May 12, 2014 | 2:20 pm

    You know what be a very cool feature for testers is to be able to delegate within the group a weight of each domain added. So, if I had 4 domain rotating and I knew one was converting the most I could weigh that one to 50% of the traffic, another say… 20% and another 15% and the last 15%. Am I missing that this feature already exhists?

  71. Jonathan
    May 12, 2014 | 2:58 pm

    Hi Chad, that’s a cool idea but it’s not built in such a way that you can specify that (unfortunately, I’m not developing this plugin anymore at the moment).

    WITH THAT SAID… I’ve not tried it, but I suspect if you doubled up on URLs, you could build your own weighting system. Let me know if it works :)

  72. Chad Deckard
    May 13, 2014 | 12:20 pm

    Jonathan,

    Awh!!! Good idea! Thanks for the insight that would help a great deal. Didn’t realize that could be done. So, I will try that in regards to the number of domains and their repetition to be served within a given group to weigh them heavier on better producers aka A/B/C split testing. Have a great day! :)

Leave a Reply