On this page
What this issue is
Google Analytics 4 (GA4) only records a visit if its tag runs in the visitor's browser. Some sites serve a different page template to phones: a separate mobile theme, a mobile-only header, a responsive section hidden on desktop, or a separate mobile subdomain. If the GA4 tag was pasted into the desktop header only, mobile visitors load a page with no tag at all.
Why it costs you leads or sales
For many sites most visits come from phones. If those visits are invisible, your reports undercount traffic, and ad platforms that import GA4 conversions never see mobile buyers. Smart bidding then learns from a skewed sample, and you may cut budget on campaigns that actually work on mobile.
Example: a site with 1,000 real visits, 65% on mobile. With the tag on desktop only, GA4 records just 350.
- Ad click on phoneVisitor lands on the mobile template
- GA4 tagNot in the mobile template
- Form or checkoutWorks, but is not measured
- Conversion in GA4Never recorded
The break is at the page template: the tag is not there, so everything after it is lost to reporting.
How to check if your site has it
Compare device split in GA4
In GA4 open Reports > Tech > Tech details and set the dimension to Device category. A very low or zero mobile share, when your ad platform or server logs show many phone clicks, is a warning sign.
Open Chrome DevTools in device mode
Load your page, press F12, click the device toolbar icon and pick a phone. Reload the page so the mobile template is served.
Look for the GA4 request
In the Network tab filter for
collectorgoogletagmanager. You should see a request to google-analytics.com/g/collect with your measurement ID (G-XXXXXXX). No request means no tag.Check view-source on a phone
Compare the page source on desktop and mobile for
gtag/js?id=G-orGTM-. Remember the tag may exist but be loaded by a template only used on desktop.Test with real-time reports
Open GA4 Reports > Realtime, visit the site from your phone on mobile data, and see whether you appear.
How to fix it
The goal is one GA4 tag that loads on every template, desktop and mobile. The simplest way is to load it once in a place all templates share, such as the main head section or a Google Tag Manager container.
Find where the tag lives
Check Appearance > Theme File Editor (header.php), any mobile theme or plugin (for example a mobile-switcher plugin), and your analytics plugin settings.
Move it to a shared location
Use one analytics plugin or a header-scripts plugin set to load on all devices, and remove the desktop-only copy so it does not double count.
Clear caches
If you use a cache plugin with a separate mobile cache, purge it so phones get the updated HTML.
Open the theme code
Go to Online Store > Themes > Edit code and open layout/theme.liquid. The tag should be inside the head, not in a section or snippet that is hidden on mobile.
Or use the Google & YouTube app
Connecting GA4 through the sales channel loads it on all storefront pages. Avoid also pasting the tag manually.
Check the trigger
Open your GA4 configuration tag and confirm the trigger is Initialization - All Pages (or All Pages) with no device or screen-width conditions.
Check the container is on every template
The GTM snippet must be in the mobile template as well. Use Preview mode in a phone-sized window to confirm the tag fires.
Publish
Submit and publish the container version.
Use project-level custom code
In Project settings > Custom code, paste the GA4 snippet in Head code rather than on a single page or in an element with a hide-on-mobile setting.
Publish
Publish the site, then test at mobile breakpoints.
Use the Marketing integrations
Go to Marketing & SEO > Marketing integrations (or Settings > Custom code) and connect Google Analytics or add the code to All pages.
Check the mobile editor
Any embed placed manually should not be only on the desktop layout.
Use Code Injection
In Settings > Developer Tools > Code Injection, paste the GA4 snippet in Header. This loads on all pages and devices.
Put the tag in the shared layout
Add it to the base layout or header include used by every template, including mobile-specific templates and any m. subdomain.
Remove device conditions
Search code for user-agent or screen-width checks that wrap the analytics script.
<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>Before
- GA4 pasted in the desktop header only
- Phones load a template with no tag
- Mobile conversions missing in GA4 and Google Ads
After
- One GA4 tag in the shared head or GTM
- Every device loads the tag
- Mobile sessions and conversions recorded
How to confirm it's fixed
- DevTools in phone mode shows a google-analytics.com/g/collect request on each key page
- GA4 Realtime shows your own phone visit
- Only one page_view per page load on both desktop and mobile
- Device category in GA4 shows mobile traffic within a day
- Mobile form or checkout test is recorded as a conversion event
How to prevent it happening again
Keep one source of truth for the tag, ideally a single GTM container or one shared head include. After any theme change, builder update or redesign, retest on a phone-sized view before you launch. Avoid separate mobile themes where you can; a responsive design needs only one template.
How FunnelGuard handles this
FunnelGuard detects this issue today. It runs your real customer journeys on a schedule, including a mobile variant, and checks the tracking hits sent to GA4 at each step. If the mobile run shows no GA4 hit while the desktop run does, that difference points to a mobile-only gap. A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause. The free plan covers 1 site and 2 journeys with daily checks and no card needed.
Day 0
A redesign adds a mobile layout and the GA4 tag stays in the old desktop header
Week 1
GA4 shows a drop in sessions that looks like a seasonal dip
Week 3
Ad platforms report mobile clicks but GA4 shows none
After fix
Tag added to the shared template and mobile traffic returns
Questions people ask
Why is my GA4 not tracking mobile traffic?
The most common cause is that the GA4 tag sits in a desktop-only template, theme or hidden block, so phones load a page without it. Test the page in a phone-sized view and look for a google-analytics.com/g/collect request. If it is missing, move the tag to a shared template or GTM.
How do I check if GA4 works on mobile?
Open your page in Chrome DevTools device mode, reload it and look in the Network tab for a collect request with your G- measurement ID. You can also visit the site on your phone using mobile data and watch GA4 Reports > Realtime.
Can a mobile theme or plugin remove my GA4 tag?
Yes. Mobile-switcher plugins, separate mobile themes and m. subdomains use their own templates, and a tag added to the desktop header will not appear there. Add the tag to every template or load it through one GTM container.
Why do my Google Ads conversions look low on mobile?
If you import GA4 conversions into Google Ads and the tag is missing on mobile, those conversions are never recorded. Check the GA4 tag on a phone view first, then check the Ads conversion tags.
Will GA4 recover the missing mobile data after I fix the tag?
No. GA4 only records visits while the tag runs, so past mobile visits are not recovered. Data starts coming in as soon as the fix is live, so fix it quickly.
Does Google Tag Manager avoid this problem?
It helps, because one container can load GA4 on all pages. But the GTM snippet itself must still be in every template, and the trigger should not be limited by device or screen width.
How does FunnelGuard detect a GA4 tag missing on mobile?
FunnelGuard runs your customer journeys on a schedule, including a mobile variant, and checks for the GA4 hit at each step. If the mobile run is missing the hit, it re-checks from a second region and sends one alert with a screenshot and a likely cause.
Related issues
- TRK-001GA4 tag missing from a funnel pageFix guide
- TRK-002GA4 tag missing site-wide after a theme or builder changeFix guide
- TRK-006GA4 installed twice (gtag.js and GTM) causing double page_viewsFix guide
- TRK-012GA4 missing on thank-you or order confirmation pageFix guide
- TRK-003Wrong GA4 measurement ID (staging or another client's property)Fix guide
- TRK-008gtag.js loaded but config command never calledFix guide