URL Rotator Script for WordPress

One of my favorite WordPress plugins is GoCodes. It is kind of a personalized TinyURL for WordPress, on your own blog.

Apart from using it to cloak your links in things like blog posts and emails (redirect users through your blog to the affiliate link), you can also use it as a stationary URL that you can change at any date in the future without disrupting your link infrastructure.

For instance, if you were promoting a particular offer for some time, then the offer suddenly went dead, you could easily just replace the target URL with another offer, with very minimal effort. Far better than having to replace all the links in your blog and email campaigns!

Recently it occurred to me that wouldn’t it be great to be able to build some crude split-testing ability into that same concept? This would be perfect for testing CPA offers, as you could send a certain amount of traffic to each offer and find out which converted best.

I know there are URL rotating scripts out there; but I really like working with WordPress, and any manual scripting really slows things down.

So I hired a programmer to build me the newly created URL Rotator wordpress plugin.

Essentially what this allows you to do is specify a group of URLs you’d like to cycle through, then specify a jump key that allows you to reference this group from anywhere.

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

I create the jump group to include:


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.

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

In addition, we designed the plugin 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.

I’ve decided to release this for free, as it is my first WordPress plugin, however depending on the demand for it I may decide to start charging a small fee for it.

Get it now while it’s free!

13 Responses to URL Rotator Script for WordPress
  1. bbrian017
    July 17, 2009 | 7:23 am

    Hey that’s really cool how it cycles through different urls!

    I think this could be very beneficial for bloggers of all kinds!

    Especially when try to use affiliate links!

    Thanks for sharing


  2. Jonathan
    July 17, 2009 | 2:00 pm

    Hi Brian,

    Yeah – I think affiliate marketers can really make use of this, especially as when you’re starting out in a niche, you don’t necessarily know which offer or product is going to convert the best. This way you can keep the blog generic enough (ie don’t mention specific products, but stay tightly targeted on your niche) that you can send them to any offer.

    Once you find the one that works best, just delete the other URLs from the list. If that offer gets pulled off the market 4 months later, just repeat the process – and you never have to change any links in your posts & pages.

  3. Rome Flights
    July 20, 2009 | 10:16 am

    This also saves a lot of space for your post. Like instead of giving links to multiply search engines, you can just place one which links to them randomly. You just wont see where you’re going until it loads. But it can be pretty usefull for affiliates.

  4. […] Jonathan has created a brilliant Word Press plugin called URL Rotator […]

  5. NL Energie
    August 13, 2009 | 6:45 am

    I don’t really see a use for the url rotater. Of course a custom tinyurl can be handy, i don’t see a cause for one link with 3 differents urls in it.
    Unless you have one great deal with 3 different affiliates parties 😉

  6. Jonathan
    August 14, 2009 | 2:46 pm

    NL – in the context of a normal blog, you might not have as much use for it beyond the tinyurl functionality; however if you’re using WordPress as a CPA marketing platform this could be hugely useful. For instance, if you’ve got a health blog you could put a link in there for a colon cleanse, then just rotate the offers in the link until you found the one that converted best.

  7. William
    October 2, 2009 | 1:42 pm

    Hi Jonathan,

    On 2.8.4, with a reasonable set of plugins installed (Including prettylink), I’m getting this error.

    Warning: Invalid argument supplied for foreach() in /home/website.com/wp-content/plugins/rotator/rotator.php on line 174

    Any chance you’re planning on updating soon? I had been considering hiring a programmer to write a plugin for me as well to do this very thing. You beat me to it by about 2 months!


  8. Jonathan
    October 7, 2009 | 1:57 pm

    Hi William – I’ve tested it on sites running 2.8.4 and everything seems to be ok. At what point do you get the error – on installation, setup or actually running the link? Do you have fancy URLs turned on? Perhaps try disabling prettylink (I’m not familiar with it) and try again, to see if you can isolate that?


  9. PPC Keyword Tracker WordPress Plug-in
    January 29, 2010 | 1:33 am

    […] found a blog ran by a really nice and helpful guy named Jonathan Boettcher. He had a plug-in called the URL Rotator (with Tracking) Beta, which seemed close to what I was […]

  10. Sebastian | Ganar Plata Por Internet
    January 23, 2011 | 1:19 pm

    thank you for the plugin and the information maybe can help me with my blog

  11. Aslan
    March 30, 2011 | 3:58 am

    Thanks so much for this powerful plugin. I was trying for a few days to get a php script to do this for me but I couldn’t. Then I though maybe I can buy a WP plugin for the same job and I found your site and it was Free.

    I have so many uses for this plugin im actually excited to install it on all my sites.

    Big thanks for making it free. Your the man!


  12. Prong Media - Jedi Link Building
    March 1, 2012 | 5:23 am

    […] The tool I use is actually a plug-in for WordPress, and it was created by my friend and fellow mastermind group member, Jonathan Boettcher. […]

  13. bessy
    May 13, 2012 | 6:13 am

    thnx for this

Leave a Reply