Tracking and analytics

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.

What goes into a link preview
Part of the cardOpen Graph tagWhere it shows
Titleog:titleThe bold first line
Descriptionog:descriptionOne or two lines under the title
Imageog:imageThe picture, when the app shows one
Site nameog:site_nameA 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.

Go deeper

Updated

Share a file as a link in seconds

Upload any file and get one clean link, with every setting on this page.

Try Link in Seconds

Optional cookies for analytics, ads and session replay.