Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GA4 tag missing on mobile: how to find and fix it

TRK-011High impactDetectedBy FunnelGuardPublished Updated
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.

Sessions recorded in GA4 vs real sessionsExample numbers
Sessions recorded in GA4 vs real sessions (example)Real visits: 1,000 sessions; Recorded in GA4: 350 sessions03837671,000350Real visitsRecorded in GA4sessions

Example: a site with 1,000 real visits, 65% on mobile. With the tag on desktop only, GA4 records just 350.

What a mobile visitor sees
  1. Ad click on phoneVisitor lands on the mobile template
  2. GA4 tagNot in the mobile template
  3. Form or checkoutWorks, but is not measured
  4. 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

Check the mobile version of your pages
  1. 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.

  2. 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.

  3. Look for the GA4 request

    In the Network tab filter for collect or googletagmanager. You should see a request to google-analytics.com/g/collect with your measurement ID (G-XXXXXXX). No request means no tag.

  4. Check view-source on a phone

    Compare the page source on desktop and mobile for gtag/js?id=G- or GTM-. Remember the tag may exist but be loaded by a template only used on desktop.

  5. 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.

Add GA4 to every template
  1. 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.

  2. 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.

  3. Clear caches

    If you use a cache plugin with a separate mobile cache, purge it so phones get the updated HTML.

Standard GA4 snippet (replace G-XXXXXXXXXX)html
<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>
Template setup

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

Confirmation checklist
  • 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.

How the problem usually unfolds
  1. Day 0

    A redesign adds a mobile layout and the GA4 tag stays in the old desktop header

  2. Week 1

    GA4 shows a drop in sessions that looks like a seasonal dip

  3. Week 3

    Ad platforms report mobile clicks but GA4 shows none

  4. 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: mobile variant.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.