Create Your Own URL Shortener

14 comments Written on January 18th, 2011 by
Categories: Digital Media, Marketing, Strategy

Bit.ly, ow.ly, tinyurl are just a few of the free services that allow you to shorten your links for social media and analytical tracking. But you can now have the power of these free services with your own custom short URL using YOURLS which stands for Your Own URL Shortener.

YOURLS is a free application that contains the PHP scripts to shorten URLs and track their clicks. Much like WordPress, YOURLS requires a LAMP (Linux, Apache, MySQL, PHP) configuration and installs quickly and easily. After it’s setup you can integrate with your WordPress blog, use to shorten URLs on the fly or even make your own public link shortener.

The first step is to find your short domain. One site that I found is Domain Search that allows you to search the many country specific extensions. Instead of .com or .net, you can find extensions that fit your brand. For example my short URL is sqjw.me for Square Jaw Media. You want to play with phonetic and abbreviated versions of your brand or product name to find the right short URL.

Once you have purchased your URL and directed the name servers to your web server it’s time to install YOURLS. Much like WordPress YOURLS install code does most of the work. After downloading you want to set up your MySQL database and enter your login information to the YOURLS config.php file. The YOURLS site has good documentation to walk you through the process and explains the configuration options.

The final installation step is to copy all the site files to your web server. After logging into the administration at http://yoursite.com/admin/ your ready to create and test your first short URL. I recommend testing a few YOURLS with someone you know via email or IM before posting out on social media sites. That way you can work out any bugs before going public.

YOURLS link shortening screen

You can also customize your short link. For instance I created a short link (http://sqjw.me/web) to use on my Twitter profile and track how many people click from my Twitter profile to my website. You can create a customer short URL for each of the sites that you link to your website to determine which site drives the most traffic. From the YOURLS admin interface you can also share your links to Facebook and Twitter.

Once you have shortened and shared your link you can then see how much traffic and from where the clicks came from. The reports include geographic as well as time period statistics. Direct and referrer clicks are also tracked.

YOURLS statistics

There is even a WordPress plugin that will automatically create the short URL when you publish a page or post. The only downside I’ve encountered is that the plugin can create multiple links for the same page or post. Luckily there is a support forum where you can log your bug and I hope the developer fixes this bug soon so I can take advantage of the integration.

Overall I really like how YOURLS gives greater control over short links and accompanying data. The creative marketer in me loves the branding aspect. Try it on your blog or website and let me know what you think.

Tags: , , ,

About the Author: Brian McDonald
http://www.squarejawmedia.com
Brian McDonald started Square Jaw Media to document strategies and techniques he had used over his experience working in marketing and communications since 1990. During this time Brian wrote about many of the exciting Raleigh social media events where great knowledge was being shared and tries to share some of the tips and tricks.
  • Anonymous

    I was just looking for something like this yesterday! I want this on my MVUE and 5 Bucks sites. If I have a problem installing it may I call you?

  • http://squarejawmedia.com/ Brian McDonald

    Yes I can help you. It’s easy install and config process.

  • http://www.twitter.com/MikeAdamsNC Mike Adams

    I started using YOURLS in Nov. 2010 and I love it. Get’s you a pretty good idea of how your links are performing; all with a branded url!

  • http://squarejawmedia.com/ Brian McDonald

    Mike you and Greg got me interested in this! Thanks for the lead and comment!

  • http://www.jefftippett.com Jeff Tippett

    Great post. YOURLS is new to me. Thanks for sharing.

  • Pingback: Tweets that mention Create Your Own URL Shortener | Square Jaw Media -- Topsy.com

  • http://squarejawmedia.com/ Brian McDonald

    Would be good tool for Calvert Creative!

  • http://twitter.com/angelahall1 Angela Hall

    I saw someone tweeting about not clicking on shortened links from Libya/Russia. I’d suggest considering politics, security risk, etc when considering which country to use for your domain extension.

  • http://squarejawmedia.com/ Brian McDonald

    That’s a good tip. I ended up with Montenegro (.me) extension which seems very popular with several other sites.

  • http://www.theantisocialmedia.com/ Jay Dolan

    A tool I used for my upcoming short url (It’s coming eventually, I swear it) is domai.nr. Really simple to figure out lots of possible domains and set you up with a registrar.

  • http://squarejawmedia.com/ Brian McDonald

    Thanks for the link Jay. I like domai.nr search tool to give users ideas for custom short link domains. Can’t wait to see what you end up with!

  • http://www.1918.com/ 1918

    I’m installing it right now! Thanks for the heads up Brian.

  • http://squarejawmedia.com/ Brian McDonald

    Phil you will love it!

  • Pingback: Argyle Social: Ushering in a New Era of Analytics « Greg de Lima