On this page
What this issue is
Two small pieces of code tie your site to Google's tools. The analytics tag (a GA4 gtag.js snippet or a Google Tag Manager container) sends visit data to your reports. The Search Console verification proves you own the site. It is usually a <meta name="google-site-verification"> tag in the page head, an HTML file in the root, a DNS TXT record, or your analytics or Tag Manager code.
In a migration or redesign these are often stored in the old theme's header file, a plugin you no longer use, or a custom code box that was not copied across. The new site goes live looking perfect, but the tags are gone.
Why it costs you leads or sales
Without the analytics tag, you stop seeing traffic, sources and conversions. Ad platforms and reports that depend on GA4 go quiet, so you cannot tell if the launch helped or hurt. You find out weeks later, with a gap in your history that cannot be backfilled.
Without Search Console verification, Google can eventually remove your access. You then lose the data you need after a migration: indexing errors, crawl problems, ranking drops and sitemap status. Problems that would have been caught in days stay hidden.
- Site relaunchedNew theme or platform goes live
- Tags not copiedGA4 and verification tag stay in the old theme
- Data stopsNo visits or conversions recorded
- Issues unseenIndexing and ranking problems go unnoticed
The visible site works, but measurement and search diagnostics stop.
Example: traffic is steady, but reported sessions drop to zero on launch day because the tag is missing.
How to check if your site has it
View the live page source
Open your homepage in a browser, right-click and choose View page source. Search (Ctrl+F or Cmd+F) for
google-site-verification,gtag/js?id=G-andgoogletagmanager.com/gtm.js.Compare with the old site
If you still have the old theme or a staging copy, search its source for the same strings and note the exact IDs (G-XXXXXXX, GTM-XXXXXXX and the verification token).
Check GA4 Realtime
In GA4 go to Reports > Realtime, then visit your site in another tab. If your visit does not appear, the tag is missing, wrong or blocked.
Check Search Console ownership
In Search Console open Settings > Users and permissions. Then open Settings > Ownership verification to see which method is in use and whether it still passes.
Confirm the property matches
If the domain, protocol (http or https) or www changed, the old property may not cover the new URLs. Add a new property or use a Domain property with DNS verification.
How to fix it
Put each tag back using the method that suits your platform, then re-verify. Where you can, use a method that does not depend on the theme, such as a DNS TXT record for Search Console and a Tag Manager container for analytics.
Use a plugin or header field, not the theme file
Add the GA4 snippet and verification meta tag with a header and footer scripts plugin, or the SEO plugin's webmaster tools field (for example in Yoast SEO or Rank Math settings). This keeps them when you change themes.
Clear caches
Purge your caching plugin and any CDN so the live source shows the tags.
Add the verification tag to theme.liquid
Go to Online Store > Themes > Edit code, open
layout/theme.liquidand paste the meta tag inside<head>. Do this again after switching themes.Reconnect analytics
Use Settings > Apps and sales channels for the Google & YouTube app, or add your GA4 ID through Customer events (pixels), so it is not tied to a theme.
Confirm the container is on the page
Check the GTM snippet is in the new site head and body. Then in GTM check that a Google tag with your GA4 measurement ID fires on All Pages.
Publish and preview
Use Preview mode to confirm the tag fires, then Submit to publish. Search Console can verify with the GTM container if you have publish rights.
Use Project settings
Go to Site settings > Custom code and add the GA4 snippet and verification meta tag in Head code. Publish the site.
Add to site or funnel tracking code
In Sites, open Settings and paste the code into the Head tracking code area for the site, or for each funnel. Save and publish. Check each funnel separately.
Use Marketing integrations
In Marketing & SEO, connect Google Analytics with your measurement ID, and use Google Search Console setup to paste the verification code or connect your account.
Use Settings fields
Add your GA4 measurement ID under Settings > Developer Tools or Analytics settings, and in the Search Console connection, use Google Search Console to verify. Code injection can hold custom tags.
Add the tags to the shared head template
Place both in the layout or head partial used by every page, not in single page files.
Or use DNS
Add the Search Console TXT record at your DNS host. It works regardless of page code.
<meta name="google-site-verification" content="YOUR_VERIFICATION_TOKEN" />
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX');
</script>Open Ownership verification
In Search Console choose Settings > Ownership verification for your property.
Pick a method that fits
Use the HTML tag if the tag is back in the head, or DNS record if you control DNS. Copy the token Google shows (it may differ from the old one).
Click Verify
If it fails, view the live source to check the tag is present exactly as shown, and that caches are cleared.
Add a second method
Keep a backup method, such as DNS plus the HTML tag, so one lost tag does not remove access.
After migration
- GA4 snippet missing from the head
- Verification meta tag gone
- Realtime report shows no visits
- Search Console warns ownership is lost
After the fix
- GA4 loads on every page
- Verification via DNS plus meta tag
- Realtime shows your test visit
- Search Console shows verified ownership
How to confirm it's fixed
- The live page source contains your GA4 or GTM ID on the homepage and on a deep page
- GA4 Realtime shows your own visit within a minute
- Search Console shows your property as verified under Ownership verification
- A second verification method is in place
- Key conversion events still appear in GA4 after a test submission
- Tags appear on every template, including blog, product and landing pages
How to prevent it happening again
Add the tags to your launch checklist and keep a note of every ID and token in one place. Prefer methods that sit outside the theme: a DNS TXT record for Search Console, and a Tag Manager container for analytics. Before any redesign, list every code snippet in the old head and footer, then confirm each one on the new site before switching DNS.
Launch day
New theme goes live without the old header code.
Day 1-3
Analytics shows a sudden drop that looks like a traffic crash.
Week 2
Someone notices Search Console no longer loads for the site.
Fix day
Tags restored and ownership re-verified.
How FunnelGuard handles this
FunnelGuard detects this only partly. It checks that the tracking tag is present on your pages and firing when its robot visitor runs your journeys. It does not check Search Console verification, so it cannot tell you if your ownership has lapsed or the verification token is missing.
To cover the rest by hand, open Search Console > Settings > Ownership verification after every launch and then once a quarter, and confirm the status still passes. Keep a second method (such as a DNS TXT record) in place. If the tag check does fail in FunnelGuard, one alert goes out after a re-check from a second region, with a screenshot and a likely cause.
You can try it on the Free plan (1 site, 2 journeys, daily checks, no card), or start a 3-day free trial on any paid plan. A free read-only website audit is also available.
Questions people ask
Why is my Google Analytics not tracking after a website migration?
Most often the GA4 snippet lived in the old theme or a plugin and was not copied to the new site. View the live page source and search for your G-XXXXXXXX ID or GTM-XXXXXXX container. If it is missing, add it again and check GA4 Realtime.
Why did Search Console say my site is no longer verified?
The verification meta tag, HTML file or DNS record was probably removed during the redesign or migration. Google re-checks ownership periodically, so access can lapse some time after the change. Re-add a method under Settings > Ownership verification and click Verify.
How do I re-verify Search Console after a redesign?
Open Settings > Ownership verification, pick a method (HTML tag, HTML file, DNS record, GA4 or Tag Manager) and follow the steps. Make sure the code is live before clicking Verify. Add a second method as a backup.
What is the safest way to verify Search Console so it survives a redesign?
Use a Domain property with a DNS TXT record. It does not depend on your theme, plugins or page code, so a redesign cannot remove it. Keeping an HTML tag as well gives you a backup.
Will I lose my Search Console data if verification lapses?
Your historical data is generally kept, but you lose access until you verify again. You also do not collect or see new issues in the meantime, so fix it quickly after a migration.
How do I check if my Google Analytics tag is on my site?
View the page source and search for gtag/js?id=G- or googletagmanager.com/gtm.js. You can also open GA4 Realtime and visit your site in another tab. If your visit does not show, the tag is missing or not firing.
Does FunnelGuard check Search Console verification?
No. FunnelGuard checks that the tracking tag is present and firing on your journeys, but it does not check Search Console verification. Check Ownership verification in Search Console by hand after launches.
Related issues
- SEO-305Theme or plugin update removes SEO plugin outputFix guide
- SEO-309Template change removes content, headings or schemaFix guide
- SEO-299Domain change without 301sFix guide
- SEO-302Production launched with staging noindex still onFix guide
- SEO-298Redirect map lost when changing CMS or platformFix guide
- SEO-297Old URLs not redirected after redesign (lost rankings)Fix guide