Skip to content

Help article

Short link best practices

Practical playbook for naming, verifying, and measuring short links on yhor.xyz.

By yhor.xyz·
1

Name aliases systematically

Use a brand-channel-campaign pattern like yhor.xyz/acme-fb-summer so you can tell at a glance where each link belongs. Aliases accept a-z A-Z 0-9 _ and - with a length of 4 to 30 characters. Keep them short but still readable, and avoid random digits unless you have to.

2

One alias per channel, never reuse

Do not post the same link on both Facebook and Instagram. Clicks get pooled and your attribution disappears. Create separate aliases per channel, for example acme-fb-summer and acme-ig-summer, then compare click totals on the stats page directly.

3

Verify the destination before publishing

Open the short link in a new tab before you hit post. Confirm the redirect lands on the right URL and that the page actually loads. Avoid HTTP-only destinations since modern browsers display a Not Secure warning.

4

Set expiry for time-boxed promos

For campaign links with a deadline, set expiresAt when you create them. After expiry the system returns 410 Gone instead of redirecting, and a daily cron removes the record. This stops visitors from landing on a promo page that already ended.

5

Review click analytics weekly

Open each link's stats view to see totals, the last 30 days, top referers, and recent clicks. Click data lives for one year before MongoDB's TTL index deletes it. A weekly check is enough to tell which channels are pulling their weight.

6

Do not nest short links

Never shorten a yhor.xyz link with another service that loops back. It adds redirect hops, hurts latency, and risks getting flagged as spam. Always use a single layer of shortening that points straight to the real destination.

7

Pre-test the redirect on mobile

Most users tap links from a phone. Test the redirect on real iOS and Android devices, and verify it works inside the in-app browsers of LINE, Messenger, and Facebook. Do this before pushing the link out broadly.