Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GA4 event fires on desktop but not mobile: how to fix it

TRK-069High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A GA4 event is a named action (such as generate_lead or click_whatsapp) sent to Google Analytics when a visitor does something. Here, the event is sent when a desktop visitor does the action, but nothing is sent when a mobile visitor does the same thing.

The action itself still works for the visitor. The form submits, the button opens the chat. Only the measurement is missing, so the problem is invisible unless you compare devices.

Why it costs you leads or sales

On many sites most visits come from phones. If the conversion event is missing there, GA4 under-reports conversions and Google Ads, Meta and other platforms that import them get too little signal. Smart bidding then learns from desktop only and may shift budget away from campaigns that actually work on mobile.

You may also wrongly decide that mobile traffic does not convert and cut it, when the real problem is tracking.

Reported vs real conversions by deviceExample numbers
Reported vs real conversions by device (example)Desktop real: 50 conversions; Desktop in GA4: 50 conversions; Mobile real: 50 conversions; Mobile in GA4: 0 conversions019385050500Desktop realDesktop in GA4Mobile realMobile in GA4conversions

Example: a site gets 50 real conversions on desktop and 50 on mobile, but GA4 records only the desktop ones.

Where the mobile journey loses its event
  1. Ad clickVisitor lands on mobile
  2. Form or buttonVisitor taps submit
  3. GA4 eventTrigger does not match on mobile
  4. Ad platform importNo conversion to learn from

The visitor converts, but the tracking step fails on mobile, so reports and ad platforms never see it.

How to check if your site has it

Compare desktop and mobile
  1. Compare the event by device category

    In GA4, open Reports > Engagement > Events, click the event, and add the comparison or secondary dimension Device category. Compare against sessions by device. A near-zero count on mobile with healthy mobile sessions is the sign.

  2. Test with Tag Assistant or GTM Preview

    Open Google Tag Assistant (tagassistant.google.com) and connect to your site. Use Chrome DevTools device mode, or connect a real phone, then perform the action and watch whether the tag fires.

  3. Use GA4 DebugView

    In Admin > DebugView, run the action on mobile with debug mode on and see whether the event arrives.

  4. Inspect the mobile page

    Check whether the button, form or element your trigger targets is the same on mobile. Many themes swap in a different menu, sticky bar or form for small screens.

Common causes of desktop-only events
CauseWhat you see
Trigger targets a desktop-only element (CSS selector or ID)Tag fires on desktop, no trigger match on mobile
Hover or mouse event used instead of click or touchWorks with a mouse, not when tapping
Mobile uses a different form, sticky bar or menuDifferent element IDs or classes
Script or tag blocked or not loaded on small screensNo GA4 requests at all on mobile
Mobile in-app browser or stricter tracking protectionFails only from some apps or browsers
Page navigates away before the event is sentHappens more on slower mobile connections

How to fix it

The fix depends on why the trigger misses. Start by finding the difference between the two versions, then pick a trigger that works on both.

Fix by platform
  1. Replace fragile selectors

    In the trigger, avoid selectors that only match the desktop element. Use a Click trigger on a shared class, or better, a Form Submission trigger or a Custom Event pushed by the site.

  2. Use click, not hover

    If the trigger relies on a mouse-only event, switch to All Elements or Just Links click triggers, which also fire on taps.

  3. Check trigger conditions

    Remove conditions on Page URL, Click ID or screen-size variables that differ on mobile. Preview in mobile emulation to confirm.

Send the event on submit for both devicesjavascript
document.querySelectorAll('form.lead-form').forEach(function (form) {
  form.addEventListener('submit', function () {
    gtag('event', 'generate_lead', {
      form_id: form.id || 'lead-form',
      transport_type: 'beacon'
    });
  });
});
A tag that never fires on mobile

The visitor acts, but the trigger does not match, so no hit reaches GA4.

How to confirm it's fixed

Confirmation checks
  • Tag Assistant shows the tag firing when you do the action in mobile emulation
  • DebugView shows the event from a real phone
  • Test on both iOS Safari and Android Chrome
  • Test in an in-app browser (such as from a social app) if you run social ads
  • After 24-48 hours, the event count by Device category on mobile is no longer near zero

How to prevent it happening again

Prevention
  • Test every new tracking setup on mobile as well as desktop before publishing
  • Re-test after theme, plugin, popup or form changes
  • Use data layer events rather than design-dependent selectors
  • Add a recurring report comparing the event by device category
  • Run an automated mobile check on the real journey

How FunnelGuard handles this

FunnelGuard detects this today with a mobile variant of the check. A robot visitor runs your real journey, such as a lead form, with a mobile setup as well as desktop, and checks the tracking hits sent to GA4 and other platforms at each step. If the event is seen on one and missing on the other, the failure is re-checked from a second region, then you get one alert with a screenshot and a likely cause.

It covers the journeys you set up, on a schedule, so it will not tell you about every device or in-app browser your visitors use. Test traffic is marked (utm_source=funnelguard, fg_test=1), so you can filter it out. The Free plan includes 1 site and 2 journeys with daily checks and no card.

Event tracking by device

Before

  • Event fires on desktop only
  • Mobile conversions missing in GA4
  • Ad platforms learn from partial data

After

  • Event fires on desktop and mobile
  • Conversions match real activity
  • Alerts if mobile tracking breaks again

Questions people ask

Why is my GA4 event not firing on mobile?

Usually the trigger depends on something that differs on mobile, such as a desktop-only button or form, a hover event, or a script that is not loaded on small screens. Test the action in mobile emulation with Tag Assistant to see which condition fails.

Why does my GTM click trigger work on desktop but not on my phone?

The element may have a different ID or class on mobile, or the trigger conditions may not match. Check the Variables in Preview mode on mobile and use a shared selector, a form submission trigger or a data layer event.

How do I test a GA4 event on mobile?

Use Chrome DevTools device mode with Tag Assistant or GTM Preview, or connect a real phone and use GA4 DebugView. Perform the action and confirm the event appears.

How can I see GA4 events by device?

In GA4, open Reports > Engagement > Events, select the event, and add Device category as a comparison or secondary dimension. Compare mobile with desktop against session counts.

Can a consent banner cause events to fail only on mobile?

Yes, if the banner behaves differently on small screens, for example it is hidden or cannot be accepted, so consent is never granted and tags stay blocked. Test accepting consent on a phone.

Does an in-app browser affect GA4 tracking?

It can. Browsers inside social or email apps sometimes restrict scripts, storage or redirects, so some events are lost. Test your landing pages by opening them from those apps.

Can FunnelGuard tell me if my event fails on mobile?

Yes. FunnelGuard runs a mobile variant of your journey and checks the tracking hits sent to GA4 and other platforms. It alerts you if the event is missing, 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.