Structured data and social previews

How to add Open Graph tags for link previews

These pages have no Open Graph tags, so when somebody shares the link on Slack, LinkedIn, or WhatsApp, the preview is blank or scraped at random. It does not affect ranking; it affects whether anybody clicks a shared link.

What it is, and what it costs

Open Graph tags (og:title, og:description, og:image) tell social platforms and chat apps how to render a link preview. Without them, the preview is a guess (no image, a stray line of text), and a shared link with a blank card gets far fewer clicks than one with a clear title and image.

How to fix it

Add og:title, og:description, and og:image to the head of each page, and a matching twitter:card for X.

  • WordPress: Yoast and Rank Math generate Open Graph tags and let you set a per-page share image.
  • Shopify: good themes output them; set social images in theme settings and per product.
  • Hand-coded: add the og: meta tags to your head template, with an image around 1200×630.

How to check your site

View source for og: tags, and paste the URL into a preview debugger (LinkedIn Post Inspector, or opengraph.xyz) to see the card.

Questions people ask

What size should the og:image be?
Around 1200×630 pixels. Smaller images may be cropped or ignored by some platforms.

Does your site have this?

Check your site to see how your links preview when shared.

See also

All SEO checks →