Skip to main content
Home Ecommerce Knowledge How to add Meta tag to Shopify for Facebook: A Detailed Guide in 2025

How to add Meta tag to Shopify for Facebook: A Detailed Guide in 2025

Sam|
July 15, 2025|
7 min read
Summarize this post with AI

If you are setting up Facebook integration on your Shopify store in 2025, one of the first technical steps you will need to complete is verifying your domain with Facebook using a meta tag. This small snippet of code plays an important role – it proves your ownership of the domain and unlocks full access to Facebook Business Tools like Pixel, Conversions API, and the Ads Manager. 

In this guide, we’ll walk you through each step to properly add the Facebook meta tag to your Shopify theme, whether you’re using Online Store 2.0 or a custom setup. Let’s make your Facebook-Shopify connection seamless and fully optimized for performance.

What are Meta Tags?

Meta Tags

Meta tags are snippets of code placed in the <head> section of a website’s HTML that provide metadata about the page to search engines and other platforms. They don’t appear on the visible page but play a crucial role in how your site is indexed, displayed, and interacted with by external tools. 

For example, Facebook uses meta tags to verify domain ownership, control how your content appears in shared posts (via Open Graph tags), and ensure accurate data tracking through integrations like Facebook Pixel. In the context of Shopify and Facebook, adding a meta tag is essential for verifying your store’s domain and unlocking advanced advertising and analytics features within Meta Business Suite.

Requirements Before You Begin

Before you can add a Meta tag to your Shopify store for Facebook, there are a few quick things you need to have set up:

  • A Facebook Business Manager account: You’ll need access to Meta Business Manager to generate your domain verification tag.
  • An active Shopify store: Your store must be live with a connected custom domain (not just myshopify.com). Domain verification won’t work properly otherwise.
  • Access to your Shopify Admin: You’ll need permission to edit the theme code or use Shopify’s theme editor (no dev skills required, don’t worry).
  • Facebook and Instagram app installed (optional but recommended): If you’re planning to sync your catalog or run ads, having Shopify’s Facebook & Instagram app by Meta installed makes the process smoother.
  • Published products (if setting up for ads or Facebook Shop): Meta will only allow full setup (pixel, product feed, etc.) if your store has visible products.

How to Add Meta Tags to Shopify for Facebook: A Step-by-Step Guide 

Step 1: Get your Meta Tag from Facebook

Add Meta Tags to Shopify for Facebook 1
  • In the left sidebar, click “Brand Safety” → then “Domains”
Add Meta Tags to Shopify for Facebook 2
  • Click “Add” and type in your custom Shopify domain (e.g. yourstore.com).
Add Meta Tags to Shopify for Facebook 3
  • Choose the Meta Tag Verification method.
  • Facebook will give you a line of code that looks like this: <meta name=”facebook-domain-verification” content=”xxxxxxxxxxxxxxxxxx” />
Add Meta Tags to Shopify for Facebook 4

Step 2: Add the Meta Tag to your Shopify Theme Code

  • Log in to your Shopify Admin.
Add Meta Tags to Shopify for Facebook 5
  • Go to Online Store > Themes, then click “… > Edit code” on your active theme.
Add Meta Tags to Shopify for Facebook 6
  • In the left sidebar, open the theme.liquid file under Layout.
  • Paste the Meta tag code just before the closing </head> tag (you can use Ctrl+F to find it quickly).
Add Meta Tags to Shopify for Facebook 7
  • Click Save in the top-right corner.
Add Meta Tags to Shopify for Facebook 8

Notes: Be careful not to delete anything already in the theme.liquid file — just drop the meta tag neatly above the </head>.

Verify the Domain in Facebook

Once you’ve added the Facebook domain verification code to Shopify, the final step is letting Meta know it’s there. Here’s how to verify your Shopify domain with Facebook (aka Shopify Facebook domain verification or Shopify Facebook domain verifizieren, if you’re Googling in German.

  • Step 1: Head back to Facebook Business Manager > Brand Safety > Domains.
  • Step 2: Click on the domain you added earlier.
  • Step 3: Now click the blue “Verify” button.
  • Step 4: Facebook will scan your store’s homepage for the meta tag you pasted earlier (that’s why it must go inside your Shopify theme’s <head> section).
  • Step 5: It may take a few minutes — if it doesn’t work instantly, refresh the page or wait 5–10 minutes before trying again.
  • Step 6: Once verified, you’ll see a green “Verified” badge next to your domain. That means everything’s working — and your Shopify Facebook domain verification is officially complete.
Add Meta Tags to Shopify for Facebook 9

Troubleshooting Meta Tag Issues

Running into problems while trying to add the Facebook domain verification code to Shopify? Don’t worry — here are some common hiccups and how to fix them quickly:

IssueSolution
Meta tag not foundDouble-check that the code is placed within the <head> section of your theme.liquid file. It must be added above the </head> tag, not in the body or footer. Don’t forget to click Save after editing.
Changes not visibleSometimes Shopify caches your site. Try clearing your browser cache, doing a hard refresh (Ctrl + Shift + R), or checking your site in incognito mode to confirm the meta tag is live.
Verification failedFacebook’s scanner might not detect the tag immediately. Wait 10–15 minutes, then click Verify again. If it still fails, recheck the code placement or try repasting the tag and saving again.
Still shows “unverified” after savingMake sure your domain is connected and live, and not password-protected (i.e. your store should be publicly accessible). Meta can’t verify if your storefront isn’t visible.
Wrong domain addedFacebook only verifies custom domains, not yourshop.myshopify.com. If you haven’t added a custom domain yet, do that first via Shopify admin → Settings → Domains.
Multiple meta tags presentIf you’ve tried multiple times or switched themes, remove duplicate meta tags — they can confuse Facebook’s scanner. Only one verification tag should be added at a time.

Best Practices & Tips for Adding Meta Tag to Shopify

To make sure your Facebook domain verification process goes smoothly (and stays verified), follow these quick but crucial best practices:

  • Only remove the tag after verification is confirmed: Once your Shopify domain is verified on Facebook, the tag becomes optional — but don’t delete it until you see that green “Verified” badge in Business Manager.
  • Double-check tag placement in third-party themes: If you’re using a custom or third-party Shopify theme, the <head> section might be in a different layout file (like theme.liquid, main.liquid, or default.liquid). Make sure you paste the tag in the correct location just before </head>.
  • Use Shopify’s preview or browser dev tools to verify: After saving the tag, preview your site or use right-click > View Page Source, then search for “facebook-domain-verification” to confirm it’s showing up correctly.
  • Keep your store live and public: Facebook can’t verify your domain if your Shopify store is password-protected or not connected to a custom domain. Make sure your store is visible to the public during the verification process.

How to Add Meta Tag to Shopify for Facebook: FAQs

How to add Facebook Meta tag to Shopify?

Copy your verification tag from Facebook Business Manager > Domains, then head to Shopify > Online Store > Themes > Edit Code. Paste it inside your theme.liquid file, just before the </head> tag, and save. That’s it!

How do I add a Meta tag to Facebook?

You don’t actually “add” the tag to Facebook — instead, Facebook gives you the tag to paste into your website (in this case, Shopify). This proves you own the domain, which allows Meta to trust and verify it.

How to connect Shopify to Facebook Meta?

Install the Facebook & Instagram app from Shopify’s app store. It will guide you through connecting your store to your Facebook Business Manager, syncing your catalog, and setting up the Pixel. Domain verification is part of this flow.

How do I add metadata to Shopify?

For SEO or verification purposes, you can add metadata (like Meta tags) to the <head> section of your theme.liquid file. For dynamic SEO tags, you can also use Shopify apps or templates with built-in fields in the product or page settings.

Final Thoughts

Adding a Meta tag to Shopify for Facebook might seem like a small technical step, but it unlocks a whole world of powerful Meta tools — from Pixel tracking and ads to catalog sync and verified brand control. Once your domain is verified, you’re ready to run smarter campaigns, build trust with Facebook, and streamline your eCommerce setup like a pro. Get it in, verify it, and let Meta do the heavy lifting on the backend. You’re officially one step closer to leveling up your Shopify store’s reach.

Sam Nguyen is the CEO and founder of Avada Commerce, an e-commerce solution provider headquartered in Vietnam. He is an expert on the Shopify e-commerce platform for online stores and retail point-of-sale systems. Sam loves talking about e-commerce and he aims to help over a million online businesses grow and thrive.