What Are Open Graph Tags? A Plain Guide for Shopify Stores

Updated Nov 23, 2026

Open Graph tags are small lines of code in a page's HTML head that tell Facebook, WhatsApp, LinkedIn, X and other apps what to show when someone shares a link: the title, description, image and URL. On a Shopify store, your theme writes these tags for you. Their quality decides whether a shared product link looks sharp or looks broken.

What are Open Graph tags, in plain terms?

When you paste a link into a chat or a social post, the app goes and visits that page in the background. It isn't reading your whole product page. It looks for a few specific labels in the page's code that say "here's the title, here's the image, here's a short summary." Those labels are Open Graph tags.

Facebook created the Open Graph protocol, and most apps that build link previews now read it: Messenger, WhatsApp, LinkedIn, Slack, Discord, iMessage, Telegram and more. X reads its own "Twitter card" tags first and falls back to Open Graph when they're missing.

Every Open Graph tag is a meta tag with a property that starts with og: and a content value. Here's one:

``html <meta property="og:title" content="Linen Throw Blanket – Sand"> ``

Shoppers never see these tags on the page. They only show up when the link gets shared. If you'd like the big-picture version of what a preview card is and why it matters, our guide to link previews on Shopify covers that.

Why Open Graph tags matter for a store

A shared link is often the first thing someone sees from your shop. A friend sends a product to a group chat, a customer posts a collection in a Facebook group, or you drop a link in a LinkedIn post. The card that shows up is built entirely from your Open Graph tags.

Good tags give you:

  • A clear, clickable card: the right product photo, a readable title and a short line about it.
  • Consistency: every platform pulls from the same source, so your store looks the same wherever it's shared.
  • Fewer surprises: without tags, apps guess. They might grab your logo, a payment badge or a random banner, or show no image at all.

Open Graph tags aren't a Google ranking factor in themselves. Their job is to make shares look good, and a better card usually gets more taps.

The core Open Graph tags, with examples

Here are the tags you'll see most often on a Shopify product page, with what each one does.

og:title

The headline of the card. On Shopify it's usually the product, collection or page title.

``html <meta property="og:title" content="Linen Throw Blanket – Sand"> ``

Keep it short enough to read at a glance. Long titles get cut off, and where that happens varies by platform.

og:description

The line of text under the title. Shopify themes usually fill it from your SEO description (the "Search engine listing" field), or from the start of the product description if that field is empty.

``html <meta property="og:description" content="Soft stonewashed linen, 130 x 180 cm. Free shipping over $50."> ``

Some apps show it in full, some trim it and some skip it entirely, so put the most useful words first.

og:image

The picture, and the tag that matters most. It has to be a full, public URL to an image file.

``html <meta property="og:image" content="https://yourstore.com/cdn/shop/files/linen-throw-sand.jpg"> ``

It often comes with helper tags:

``html <meta property="og:image:secure_url" content="https://yourstore.com/cdn/shop/files/linen-throw-sand.jpg"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="1200"> ``

The width and height tags help some platforms lay out the card before they've finished downloading the image. For a deeper look at this one tag, read what an OG image is.

og:url

The canonical address of the page. It tells platforms which URL to treat as "the" page, so shares of slightly different links (with tracking parameters, for example) group together.

``html <meta property="og:url" content="https://yourstore.com/products/linen-throw-blanket"> ``

og:type

What kind of thing the page is. Shopify themes typically use product for product pages, article for blog posts and website for everything else.

``html <meta property="og:type" content="product"> ``

og:site_name

Your store's name. Some platforms show it in small text above or below the title.

``html <meta property="og:site_name" content="Sand & Stone Home"> ``

og:price:amount and og:price:currency

Shopify themes usually add these on product pages. A few platforms and tools can read them, but most chat apps don't show a price on the card.

``html <meta property="og:price:amount" content="89.00"> <meta property="og:price:currency" content="USD"> ``

Twitter card tags

X has its own set, and most Shopify themes output them next to the Open Graph tags:

``html <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="Linen Throw Blanket – Sand"> <meta name="twitter:description" content="Soft stonewashed linen, 130 x 180 cm."> <meta name="twitter:image" content="https://yourstore.com/cdn/shop/files/linen-throw-sand.jpg"> ``

summary_large_image asks for the big image card rather than a small thumbnail.

Quick reference table

TagWhat it controlsTypical Shopify source
og:titleCard headlineProduct, collection or page title
og:descriptionText under the titleSEO description or start of the description
og:imageCard pictureFeatured image, or a fallback image
og:urlCanonical linkThe page's canonical URL
og:typePage typeproduct / article / website
og:site_nameStore nameYour store name
og:price:amount / currencyPrice dataProduct price
twitter:card / imageX card style and pictureMirrors the og: values

Where Shopify themes output Open Graph tags

You don't have to add Open Graph tags yourself. Every modern Shopify theme writes them automatically, and here's where they live.

The theme files

Open Online Store > Themes > ... > Edit code. In most themes:

  • Dawn and other recent Shopify themes keep them in a snippet called meta-tags.liquid.
  • Many older themes use a snippet called something like social-meta-tags.liquid.
  • Either way, layout/theme.liquid includes that snippet inside the <head> section, so it runs on every page.

File names differ between theme developers, so if you can't find either one, search the code for og:image.

Where the og:image comes from

Shopify gives themes an object called page_image. On a product page it's usually the featured product image. On a collection it's the collection image, and on a blog post it's the article's featured image. When a page has no image of its own, themes fall back to a store-wide image.

In current Shopify admin, you set that store-wide image under Online Store > Preferences, in the social sharing image field. It's used for your homepage and any page without its own picture.

The settings.social_share_image theme setting

If you've looked at theme code, or seen it come up in Google Search Console or in a developer's notes, you may have run into settings.social_share_image. That's a theme setting, not a Shopify-wide one. Some themes add an image picker to the theme editor (often under a "Social media" or similar heading in Theme settings) and read it in code as settings.social_share_image.

What it usually does:

  • It acts as a fallback og:image for pages that have no image of their own, much like the Preferences image.
  • Depending on how the theme is written, it can take priority over the Preferences image or only kick in when nothing else exists.
  • In some themes it's left over from an older version and no longer does anything.

The easy way to find out what yours does is to search your theme code for social_share_image and read the few lines around it. If it's empty and your Preferences image is empty too, pages without photos may ship with no og:image at all, which is a common reason a homepage share shows a blank card.

Common problems with theme defaults

Theme tags work, but they're basic:

  • Product photos used as-is. A tall or square photo gets cropped into a wide card, sometimes cutting off the product.
  • White-background shots blend into white feeds and look plain next to everyone else's posts.
  • No branding. No logo, no price, no sale message.
  • Duplicate tags. If you install an app or paste in a snippet that adds its own og:image, the page can end up with two. Platforms may pick either one.

How to check your Open Graph tags

Checking takes a couple of minutes, and you should do it after any theme change or app install.

1. View the page source

Open a product page in a desktop browser, right-click and choose View page source, then search (Ctrl+F or Cmd+F) for og:. You should see one of each core tag. Check that:

  • There's exactly one og:image.
  • The image URL starts with https:// and opens when you paste it into a new tab.
  • The title and description match the product.

2. Use a preview checker

A preview tool fetches the page the way a social app would and draws the card for you. Yuhu offers a free Social Share Preview Checker that works on any store URL with no signup. It grades your Open Graph and Twitter tags, flags problems like a missing og:image, and shows preview cards for Facebook, X, WhatsApp, LinkedIn, Discord, Slack, iMessage, Telegram and Reddit. Meta also offers its own Sharing Debugger for Facebook links.

3. Send yourself a test share

Paste the link into a private chat or a draft post. It's the most realistic test, though it's the slowest way to compare changes.

A note on caching

Platforms save a copy of your card the first time a link is shared. If you fix your tags, links shared earlier can keep showing the old card until the platform fetches the page again. Facebook's debugger lets you ask for a fresh fetch. For other apps you often just have to wait, or test with a page that hasn't been shared before.

Tips for better Open Graph tags on Shopify

  1. Fill in SEO titles and descriptions. They feed og:title and og:description on most themes. Write them for people, not only for search engines.
  2. Set a fallback image. Add a branded image in Online Store > Preferences (and in the theme setting if your theme has one) so no page goes out blank.
  3. Choose featured images with sharing in mind. The first product image usually becomes the og:image. A clear, well-lit shot works better than a detail close-up. Our image size guide covers the shapes each platform crops to.
  4. Keep important content centred. Different apps crop differently, so leave breathing room around the product and any text.
  5. Use a large enough image. Around 1200 px on the long side is a safe target. Small images can get shown as a tiny thumbnail instead of a big card.
  6. Avoid duplicate tags. If you add an app that writes Open Graph tags, make sure the theme's copies are hidden or removed.
  7. Retest after changes. New theme, new app, new product template: run a check each time.

Common Open Graph mistakes

  • Relative image URLs (like /files/photo.jpg). Platforms need the full https:// address.
  • Two or more og:image tags from the theme plus an app or pasted snippet.
  • An empty fallback, so the homepage and text-only pages show no image.
  • Images blocked from public access, for example on a password-protected store. If the platform can't load the page, it can't build a card.
  • Expecting instant updates on links that were already shared, when the platform is still showing its cached card.

How Yuhu helps

Social Media Share Image by Yuhu creates a branded 1200×1200 share image for products, collections, blog articles and (optionally) pages, and serves it as your og:image along with the other Open Graph and Twitter tags through a theme app embed, with no coding. You can add your logo, title and price text, a sale badge, or combine up to four product photos. To stop two og:image tags competing, it hides the theme's copies, and you can undo that from the Theme status page. Start with turning on the app embed, then test your preview.

Don't have Yuhu yet? Install it from the Shopify App Store →

Frequently asked questions

Are Open Graph tags the same as meta tags?

They're a type of meta tag. Regular meta tags like the meta description are mostly read by search engines, while Open Graph tags (the ones starting with og:) are read by social and messaging apps to build link previews.

Does Shopify add Open Graph tags automatically?

Yes. Modern Shopify themes output og:title, og:description, og:image, og:url and related tags on every page, usually from a snippet such as meta-tags.liquid. The basic image is the page's featured image, with a store-wide fallback for pages that don't have one.

Do Open Graph tags help SEO?

They aren't a direct Google ranking factor. They decide how your links look when shared, and a clearer card tends to get more clicks and visits from social and chat apps.

What is settings.social_share_image in a Shopify theme?

It's a theme setting some themes include so you can choose a default social sharing image in the theme editor. It's normally used as a fallback og:image for pages without their own image, but how it's used depends on the theme, so search your theme code for it to confirm.

Why does my link still show the old preview after I fixed my tags?

Platforms cache the card from the first time a link was shared. Until they fetch the page again, the old card can keep showing. Tools like Facebook's Sharing Debugger can ask for a fresh fetch, and for other apps you may just need to wait.