DEV Community

Cover image for Tracking link click from SMS, or any link!
Zubair Mohsin
Zubair Mohsin

Posted on

Tracking link click from SMS, or any link!

How do you track a "link click" from an SMS? It's pretty simple ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

  • Shorten your "actual link" โœ‚๏ธ
  • Send that "shortened link" in SMS ๐Ÿ“ฒ
  • User clicks on "shortened link" in SMS and opens it up in browser ๐Ÿค
  • Boom, that's a click ๐Ÿฅณ (Increment your clicks stats)
  • Now you can redirect them to "actual link" โ™บ

That's how all link click tracking works actually ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

Let's take a look at Twitter as an example:

When you click on any link shared inside a tweet, Twitter first redirects you to a url https://t.co. That's how link clicks are calculated in Twitter analytics.

bit.ly works the same ๐Ÿ˜‰

I hope someone finds it useful ๐Ÿ™Œ๐Ÿผ

Top comments (0)

Sentry image

See why 4M developers consider Sentry, โ€œnot bad.โ€

Fixing code doesnโ€™t have to be the worst part of your day. Learn how Sentry can help.

Learn more

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay