Shorten Tracking URLs
The current URLs used for tracking link clicks are quite long. Offering a way to shorten them via Bit.ly or perhaps an custom shortened URL would be helpful.
Carlos Fuentes commented
PLease consider this feature! We are having problems with customers using Microsoft 365 Enterprise. The URLs longer than 2055 are being cut off by Outlook when viewing a mail sent by us through Mailgun. Asking to Microsoft, 2055 is the character limit for any URL received. This is a critical issue because many of our clients uses this platform. Consider a way of resolving it from Mailgun, Thank you!
Current unsubscribe links are 190+ characters long.
First, you are contradicting your own recommendation: "Long links may cause bounces. Some ESPs will block emails with links (or any consecutive text) longer than 99 characters."
Second, such links look ugly in the text versions of the email.
I agree with Sasha on the fact that shortening links can make more harm than good. However, I would still recommend to implement a database-based solution, i. e. store all messages ever sent and reference them by ID. A 64-bit identified would be sufficient for these purposes, you can use 96-bit for extra security -- that would lead to just 16-character long base64-encoded identifiers -- way better that the current 150-characters monsters. In the era of super-cheap storage space I do not think it will be a problem to store such information for a very long time.
We did it once and were faced with the need to store gigantic amount of the data that we had to support forever. We'd like to avoid doing that actually.
Using shorteners in mass mailings usually makes more harm than good.