What is a link preview?
Definition
A link preview is the card a chat app or social site shows when you paste a link: a title, a short description and often an image. The app builds it by fetching the page and reading its Open Graph tags.
Also called: Link unfurl, Rich link preview, Open Graph preview, Share card
How is a link preview made?
A link preview is made by a program, not a person. When you paste a link, the chat app or social site sends its own fetcher to the address, reads the page's Open Graph tags (og:title, og:description and og:image) and draws a card from them. If a page has no such tags, the app falls back to the page title or shows a bare link.
Some apps fetch the page from the sender's device, some from their own servers, and some again for each person in the chat. Many also keep a copy of the card, so a change to the page can take a while to show.
Does a link preview count as a view?
It should not, because no person has opened anything yet. A preview fetch is bot traffic: it happens the moment the link is pasted, often before the recipient has seen the message. A tracker that counts every request shows a view seconds after you send a link. A careful one recognizes preview fetchers and leaves them out of link analytics.
What can a link preview reveal?
A preview can show more than you meant to share, because it is built before anyone types a password. If the card shows the real file name or a thumbnail of a private photo, everyone in the chat sees it, including people who never open the link. That is why a password-protected link should keep its file name and image out of the preview, and why it is worth checking what a card shows before you post a link in a group.
How do you change a link preview?
You change it by changing the Open Graph tags on the page the link points to, then letting the app fetch the page again. On a hosted file you cannot edit the page yourself, so the host has to offer a setting for the preview title and description. Because apps keep cards for a while, a fresh paste may still show the old version for some time.
| Part of the card | Open Graph tag | Where it shows |
|---|---|---|
| Title | og:title | The bold first line |
| Description | og:description | One or two lines under the title |
| Image | og:image | The picture, when the app shows one |
| Site name | og:site_name | A small label, in some apps |
Link preview: common questions
Why does my link preview show the old title or image?
The app kept a copy of the card from the first time the link was shared. Most apps fetch it again after a while; until then the old card can keep showing.
Why did my link get a view the moment I pasted it?
Usually the app fetched the page to build the preview. Good analytics recognize that fetch as a bot and leave it out.
Can I stop a link preview from showing?
Many chat apps let you remove the preview card from a message. Whether the app still fetches the page depends on the app.
What size should a link preview image be?
A wide image of about 1200 by 630 pixels is the common choice, because many apps show a wide card of roughly that shape. Keep important text away from the edges, since some apps crop the image.
Can a link preview leak a private file?
It can leak the title and a thumbnail to everyone in the chat. For private files, use a host that hides the name and picture of locked links in the preview.
Related terms
- Bot trafficBot traffic is the opens a link gets from software rather than people: chat apps building a preview, email security scanners checking for phishing, search crawlers and uptime monitors. It is a common reason view counts look too high.
- Link analyticsLink analytics is the record of what happened after you shared a link: how many opens, when, from which country and device, how long people stayed and how far they read. Good analytics leave out bots and link-preview fetches.
- Password-protected linkA password-protected link is a link that asks for a password before the file loads. Send the password through a different channel than the link, so one leaked message is not enough to open the file.
- Email gateAn email gate is a form in front of a file that asks the visitor for their email address first. It is common for lead magnets, and it turns an anonymous view count into a list of named readers.
- Shareable linkA shareable link is a web address that opens a file for anyone who has it, without the file traveling as an email attachment. You send a few characters instead of the bytes, and you can usually change or turn off the link later.
Go deeper
Updated