vmg / rinku

Autolinking. Ruby. Yes, that's pretty much it.
ISC License
597 stars 67 forks source link

Automatically add utm_source and utm_medium #30

Closed yogodoshi closed 11 years ago

yogodoshi commented 11 years ago

Hi Vicent, I love Rinku but I need a feature that it doesnt have yet: I wanted to automatically add utm_source and utm_medium parameters in some cases.

I have a social network and wanted that when a user posts links on comments and messages, Rinku automatically added those parameters to the URLs so when I bring visits to another site, they easily know where those visitors came from.

Should I make a pull request or fork it and do my own version with this feature?

vmg commented 11 years ago

Hey! Thanks for the kind words! Unfortunately, we use Rinku in production here in GitHub and I cannot really merge a feature that add extra parameters to all URLs to the library. It goes against our design principles and the goal of the library.

You'll have to implement that on your own fork. Don't hesitate to ask if you need advice on how to do it, though. :)

Thanks!