shlink icon indicating copy to clipboard operation
shlink copied to clipboard

Automatic link tagging

Open KetchupBomb opened this issue 4 years ago • 1 comments

Summary

Tagging links is useful for tracking certain aspects of the Shlink ecosystem. The drawback is that these tags must be manually applied to any generated link.

What are your thoughts on having a "rules engine" where you can specify that if x then apply tag y?

For instance, if I wanted to track all links which are "media links", I could have a rule like:

if domain in ["youtube.com", "vimeo.com", "twitch.tv"], then apply ["media", "medium-retention"] tags


I think this would be quite useful, even if the rules engine is only capable of parsing the destination link for the standard fields: scheme, domain, path, params, etc.

Beyond this, tagging links based on other metadata could also be useful:

  • Tagging based on which API key was used to generate said link
  • Tagging based on time of day
  • Tagging based on incoming IP address
  • etc.

But this increases the scope. Even just URL parsing tagging is desirable. IMO.

KetchupBomb avatar Mar 02 '21 17:03 KetchupBomb

Sounds like something nice to have.

It's a bit trickier than it seems though. I'll try to give it a thought.

acelaya avatar Mar 03 '21 06:03 acelaya