I am searching for a script (preferably in PHP) or an external solution which lets me create an "URL shortener" with advanced reports.

We have been using Google Short Links for a while: it works really well, but it lacks reporting (it only displays a counter with the total number of redirects). Our setup is as follows: "go.mydomain.com" points to the web service, and we can create links such as "go.mydomain.com/product1".

What I'm looking for is a similar service (or self-hosted solution) but with advanced reports, so we can track redirects by day, month, etc, distinguish between mobile and desktop users (very important!) and so on.

  • @Su': was it really necessary to edit my question to remove the "thanks" at the end? -.-" – ItalyPaleAle Apr 1 '12 at 0:47
  • 2
    Yes, that is generally not accepted here. – John Conde Apr 1 '12 at 2:18
  • @Qualcuno I can't find the reference link right this second, but the short version is that the SE sites aren't really for "discussion" per se. (See also: if there are more than five comments on a response, the system starts suggesting you take it to chat.) Just establish the facts and ask your question, without all the hello please and thanks. Those niceties pretty much just take up space and are discouraged. All that said, if you want to continue discussing this, it probably belongs in meta. – Su' Apr 1 '12 at 9:43

You can try this:
and this:

  • Thank you for your answer. However: the first one doesn't have any reporting (a part from a basic counter). The second one doesn't track links from desktop/mobile... Do you know any hosted solutions, by the way? – ItalyPaleAle Apr 1 '12 at 9:41

Bitly Enterprise will probably cover anything you need, but it's ~$1000/mo flat, no cheaper plans. The stats included with free bitly accounts(previously part of bitly Pro) are pretty minimal.

  • That's too much expensive... I don't mind paying, but 995$/month is really too much. – ItalyPaleAle Apr 1 '12 at 10:23
  • 1
    I suspected it might be, but it's the only one I know of that really offers any significant reporting. Don't know why most/all the other options seem uninterested in filling the massive price gap from free to this. – Su' Apr 1 '12 at 19:42
  • Thanks. I think we will just write a script by ourselves, as soon as we have some time. And maybe release it publicly on github after, given the current available options... – ItalyPaleAle Apr 1 '12 at 23:17

Not the answer you're looking for? Browse other questions tagged or ask your own question.