If you’ve ever tried to claim your Shopify domain in Google Merchant Center, you’ve probably run into a frustrating wall. Google gives you a few verification methods, and one of them — uploading a plain text file to your domain root — sounds simple in theory. In practice, Shopify makes it slightly tricky because it doesn’t give you direct access to your root directory.
This guide walks you through the exact process to get it done, without touching any code or hiring a developer.
Why This Method?
Google Merchant Center offers several ways to verify domain ownership:
- Meta tag in the homepage HTML
- Google Analytics or Google Tag Manager
- Text file upload (what we’re covering here)
- DNS record
The text file method is often the most reliable for Shopify stores where you don’t want to touch theme code or when your GA4/GTM setup isn’t fully in place yet.
The Problem With Shopify
Shopify doesn’t let you upload files directly to your domain root (e.g. yourstore.com/merchantcenter.txt). There’s no FTP, no file manager at the root level.
What Shopify does give you is:
- A theme asset system (for theme-related files)
- A Content → Files section (for general file uploads with a CDN URL)
- A URL redirect system (to point one URL to another)
The solution is to combine the last two: upload the file via Content → Files to get a CDN URL, then create a redirect from /merchantcenter.txt to that CDN URL.
Step 1 — Create the Text File
Open Notepad (Windows) or TextEdit (Mac) and create a plain text file with the content Google provides. It typically looks something like this:
[verification-string]
youremail@domain.com added to Merchant Center account ID [your-account-id]
Date: DD/MM/YYYY
Important for Mac users: TextEdit defaults to Rich Text Format (.rtf). Before saving, go to Format → Make Plain Text, then save as a .txt file. If you skip this step, the upload will fail or the file will contain hidden formatting characters.
Save the file as merchantcenter.txt.
Step 2 — Upload via Shopify Content → Files
- In your Shopify admin, go to Content → Files
- Click Upload files in the top right
- Select your
merchantcenter.txtfile - Once uploaded, it will appear in the list
- Click the link icon on the right side of the file row to copy its CDN URL
The URL will look something like:
https://cdn.shopify.com/s/files/1/XXXX/XXXX/XXXX/files/merchantcenter.txt?v=XXXXXXXXXX
Copy this URL — you’ll need it in the next step.
Step 3 — Create a URL Redirect
This is the key step that makes the file accessible at your actual domain.
- Go to Content → Menus in Shopify admin (URL Redirects are located here in newer Shopify versions)
- Scroll down and click URL Redirects
- Click Create URL redirect
- Fill in:
- Redirect from:
/merchantcenter.txt - Redirect to: (paste the full CDN URL from Step 2)
- Redirect from:
- Click Save redirect
Step 4 — Test the Live URL
Open a new browser tab and go to:
https://yourstore.com/merchantcenter.txt
You should see the plain text content of your verification file displayed in the browser. If you see a 404, double-check the CDN URL in your redirect — the store ID in the URL needs to match exactly.
Step 5 — Verify in Google Merchant Center
Once the file is live and accessible, go back to Google Merchant Center and trigger the verification check. Google will crawl the URL and confirm ownership, typically within a few minutes to a few hours.
If you were prompted to reply by email, include the live URL:
https://yourstore.com/merchantcenter.txt
Common Issues
404 on the CDN URL
This usually means the store ID or file path in the CDN URL is wrong. Go back to Content → Files, copy the link icon URL again, and update your redirect.
File saved as .rtf instead of .txt (Mac)
TextEdit on Mac defaults to rich text. Always use Format → Make Plain Text before saving, or use a plain text editor like VS Code or BBEdit.
Redirect not working immediately
Shopify redirects can take a few minutes to propagate. Try clearing your browser cache or testing in an incognito window before assuming the redirect is broken.
Verification string has a typo
Copy the verification string directly from Google Merchant Center — don’t retype it manually. A single character difference will cause the verification to fail.
Why Not Use the Theme Editor?
You can technically create the file in the Shopify theme editor under Assets, but the CDN URL format for theme assets is harder to find and varies depending on the theme version and ID. The Content → Files method gives you a clean, stable CDN URL immediately and is the more reliable approach.
Summary
| Step | Action |
|---|---|
| 1 | Create merchantcenter.txt as a plain text file |
| 2 | Upload via Shopify Content → Files |
| 3 | Copy the CDN URL from the file list |
| 4 | Create a URL redirect from /merchantcenter.txt to the CDN URL |
| 5 | Test at yourstore.com/merchantcenter.txt |
| 6 | Verify in Google Merchant Center |
It’s a workaround for a limitation Shopify hasn’t fully solved, but once you know the steps it takes under 10 minutes from start to finish.
Related Posts
How to Connect Shopify to Google Merchant Center
Third-Party Feed Tools vs. Native Shopify Feed: When You Actually Need One
What Is Google Merchant Center and Why Every Ecommerce Store Needs It
Need Help With Your Google Ads?
I help e-commerce brands scale profitably with data-driven PPC strategies.
Get In Touch