How to Fix Missing OG Image Tags on Shopify & WooCommerce

errorThe Problem

Your pages are missing the og:image meta tag, which tells social media platforms which image to show when someone shares your link. Without it, platforms either show no image or pick a random one from your page — often the wrong one.

trending_upWhy It Matters for SEO

Social media posts with images get 2-3x more engagement than text-only posts. When a customer shares your product on Facebook, Instagram, or LinkedIn, the og:image controls what they and their friends see. A missing or wrong image means lost clicks and a less professional appearance.

buildHow to Fix It

  1. 1

    Go to Shopify Admin → Online Store → Themes → Edit Code.

  2. 2

    Open layout/theme.liquid.

  3. 3

    Find the <head> section.

  4. 4

    Add the og:image meta tag using Shopify's Liquid objects.

  5. 5

    For product pages, use the product's featured image. For other pages, use a default brand image.

  6. 6

    Save and test by pasting your URL into Facebook's Sharing Debugger (developers.facebook.com/tools/debug/).

folderlayout/theme.liquid
{%- if template contains 'product' -%}
  <meta property="og:image" content="{{ product.featured_image | image_url: width: 1200 }}" />
  <meta property="og:image:width" content="1200" />
  <meta property="og:image:height" content="630" />
{%- elsif template contains 'collection' -%}
  <meta property="og:image" content="{{ collection.image | image_url: width: 1200 | default: settings.share_image | image_url: width: 1200 }}" />
{%- else -%}
  <meta property="og:image" content="{{ settings.share_image | image_url: width: 1200 }}" />
{%- endif -%}
menu_bookRead Google's official documentationopen_in_new

Related Fix Guides

Want to check if YOUR store has this issue?

Scan your site for free — get copy-paste fixes in 60 seconds.

searchScan Now — It's Free