1. Home
  2. Blog
  3. Progressive Web App (PWA)

How to Track PWA Traffic in Google Analytics 4 on WordPress

You installed a PWA plugin, visitors started adding your site to their home screens, and now you want to know whether anyone actually opens it. Google Analytics 4 does not have a ready-made “installed app” report for websites, so the numbers are there but hidden among your other traffic. This guide shows how to track PWA traffic in Google Analytics on a WordPress site: what the utm_source=pwa tag on your start URL gives you, how to build a GA4 report and exploration around it, how to add a display mode dimension that catches the sessions the tag misses, and where GA4 stops being useful.

The steps use Progressify, our free PWA plugin for WordPress, but the GA4 parts work with any setup that tags its start URL or detects display mode. Menu names follow Google’s help pages as of November 2026. If a label differs slightly, look for the nearest match.

Track PWA traffic Google Analytics checklist: tag the start URL, give pwa its own channel, add a display mode dimension, and compare the result with your plugin’s app user count.

Why PWA sessions are hard to see

An installed PWA is still your website. It loads the same URLs, runs the same GA4 tag and sends the same page_view events as a normal browser tab. That is good for setup and bad for reporting, because GA4 has no built-in way to tell “opened from the home screen icon” apart from “typed the address into Chrome”.

Three things make it worse:

  • Launches look like direct traffic. When someone taps your icon, there is no referrer. Without a tag on the URL, GA4 files that session as direct, which is also where bookmarks, typed URLs and many email apps end up.
  • The app window hides the URL bar. With display: standalone (what Progressify’s free version uses), the app runs without browser controls, so visitors move through your pages by tapping links. Every page after the first looks like ordinary internal navigation.
  • Installs happen outside your page. The browser handles the install itself. Your GA4 tag does not get a standard “installed” event across browsers, so GA4 cannot count installs on its own.

The fix is to mark app sessions in two ways: a tag on the URL the app opens with, and a check for display mode on every page.

What utm_source=pwa does

Every PWA has a web app manifest, and the manifest’s start_url is the address the browser opens when someone taps the installed icon. Progressify builds that address from your home URL (or the start page you set under Web App Manifest) and adds a tracking parameter. This is the line in the free 1.6.1 code:

$manifestStartUrl = add_query_arg( 'utm_source', 'pwa', Utils::getHomeUrl( ... ) );

You can see the result in your own manifest at yoursite.com/?progressify_manifest=1. On our site it reads "start_url": "https://daftplug.com/?utm_source=pwa". The manifest also carries an id, which matters here: web.dev’s guidance on detecting PWA launches recommends a query parameter on the start URL, and also recommends setting an id so that changing the start URL later does not make browsers treat it as a different app.

Here is how GA4 reads that parameter, based on Google’s UTM documentation:

  • Session source becomes pwa. UTM values are case sensitive, so it is always lowercase pwa.
  • Session medium becomes (not set). Google says to always send source, medium and campaign together and that missing ones show as (not set). Progressify sends only the source, so medium and campaign are empty.
  • The default channel is likely Unassigned. GA4’s default channel rules need a recognised medium or source for most channels, and Direct needs the source (direct). Sessions that match no rule fall into Unassigned. That is why you may have seen a growing “Unassigned” row since enabling your PWA.
  • Page location keeps the tag; Page path does not. The Page location dimension shows the full URL with ?utm_source=pwa. The “Page path + query string” and “Landing page + query string” dimensions leave UTM parameters out.

So the tag identifies the session that started with a tap on the icon, and everything the visitor does in that session belongs to that source. That is a good start, but it only covers sessions that begin with a fresh launch.

Building a GA4 exploration for app launches

Start with the quick check, then make it permanent.

Quick check in the standard reports. Open Reports, then Acquisition, then Traffic acquisition. Change the primary dimension dropdown to Session source / medium and type pwa in the search box. You should see a row for pwa / (not set). If you see nothing, open the installed app on your own phone, browse two pages and check the Realtime report a minute later.

Give app launches their own channel. A custom channel group stops these sessions from hiding in Unassigned. You need the Editor role on the property.

  1. Go to Admin, then Data display, then Channel groups.
  2. Click Create new channel group and name it, for example “Channels with app”.
  3. Click Add new channel, name it “Installed app” and add the condition Source exactly matches pwa.
  4. Save the channel, then use Reorder to move “Installed app” above the other channels. Rules are checked in order, so it must come first.
  5. Click Save group.

Google applies custom channel groups to past data as well, so you do not have to wait for new sessions. Standard properties can have two custom groups. Back in Traffic acquisition, switch the primary dimension to your new group and “Installed app” appears as its own row with sessions, engagement rate and key events.

Build a free form exploration. Explorations let you compare app sessions with everything else side by side.

  1. Open Explore and choose Free form.
  2. Under Segments, click the plus, choose Session segment, name it “App launches” and add the condition Session source exactly matches pwa. Apply it.
  3. Create a second session segment, “Everything else”, with the same condition set to exclude.
  4. Under Dimensions, import Session source, Landing page + query string, Device category and Operating system. Under Metrics, import Sessions, Engaged sessions, Engagement rate, Average engagement time per session and Key events.
  5. Drag both segments into Segment comparisons, Device category into Rows and the metrics into Values.

A free form exploration can compare up to four segments and show up to five row dimensions and ten metrics. You now see side by side how sessions from the installed app perform compared with the rest of your traffic, split by phone, tablet and desktop.

One limit to keep in mind: explorations only see data inside your data retention period (two or fourteen months for standard properties). Check it under Admin, Data retention, and raise it to fourteen months if you want year over year comparisons in Explore. Standard reports are not affected by this setting.

Detecting standalone display mode

The UTM tag only marks sessions that start with a launch. Some app sessions start without one. A visitor who leaves the app in the background and returns after more than 30 minutes of inactivity gets a new GA4 session, but no new start URL, so that session carries no utm_source. GA4 then treats it like a direct visit and applies its non-direct last click rule, which credits the visitor’s last known source. Sometimes that is pwa, sometimes it is Google organic from weeks ago.

A display mode check fixes that. CSS media queries can tell whether the page is running in an app window, and the same query works in JavaScript. This is the approach web.dev documents for detecting PWA launches. Add it before your GA4 config call, so every event carries the value:

var pwaDisplayMode = 'browser';
['fullscreen', 'standalone', 'minimal-ui'].forEach(function (mode) {
  if (window.matchMedia('(display-mode: ' + mode + ')').matches) {
    pwaDisplayMode = mode;
  }
});
if (window.navigator.standalone === true) {
  pwaDisplayMode = 'standalone';
}
gtag('config', 'G-XXXXXXXXXX', { display_mode: pwaDisplayMode });

Replace G-XXXXXXXXXX with your measurement ID, and replace your existing config line rather than adding a second one. navigator.standalone covers older iPhone and iPad versions that report home screen apps that way. Google’s developer guide recommends sending custom parameters on the config command (not with set) so they attach to every event from that page, including page_view.

If your GA4 tag comes from Google Tag Manager, put the same detection in a Custom JavaScript variable that returns the mode, then add a display_mode parameter to a Google tag: Configuration settings variable and attach it to your Google tag. If a plugin prints your GA4 tag, check whether it lets you add config parameters. If not, the simplest route is to move the tag into your theme or a code snippet plugin.

Next, register the parameter so GA4 shows it in reports:

  1. Go to Admin, then Data display, then Custom definitions.
  2. On the Custom dimensions tab, click Create custom dimension.
  3. Name it “Display mode”, set Scope to Event, and enter display_mode as the event parameter. Save.

New custom dimensions can take 24 to 48 hours to show data, and they only collect from the day you start sending. The values are few (browser, standalone, fullscreen, minimal-ui), so there is no risk of the high cardinality problems Google warns about.

To test it, enable debug mode with Tag Assistant, open your site from the installed icon and check DebugView. Click a page_view event and confirm display_mode reads standalone. A normal tab should read browser.

In the exploration, import the custom dimension from the Custom tab of the dimension picker and add a third segment: event segment, Display mode exactly matches standalone. With Progressify’s free version every installed app runs in standalone, so that single value covers your app traffic.

Progressify also runs its own detection on the page. When it sees an installed app, it adds an isPwa class to the body element and stores isPwa in session storage. That is handy for styling, but it runs after the page loads, so for GA4 the inline check above is safer.

Plugin analytics vs GA4

You get two sets of numbers, and they answer different questions.

Progressify’s own analytics count app users, not visits. When the plugin’s script detects that a page is running as an installed app, it records an anonymous app user in your WordPress database (one row per app on a device, with the first and last open date). The free version shows this on the Progressify overview screen:

  • Active PWA Users, the number of app users who opened the app in the last 90 days.
  • A 30 day installs chart with the new users per day, plus New (30 days), Best Day and Last Install.

Pro adds detailed analytics on browser usage, device distribution and engagement patterns, and our post on which devices and browsers actually install your WordPress PWA walks through those reports. These numbers do not depend on GA4, cookie banners or ad blockers, because the data stays on your server.

GA4 counts sessions and behaviour. It tells you which pages app users read, how long they stay, whether they buy or sign up, and how that compares with browser visitors. It cannot tell you how many people have the app installed.

Use them together. If Progressify shows few active app users but GA4 shows many pwa sessions over the same 90 days, your app users come back often. If Progressify shows a steady install chart and GA4 shows almost no pwa sessions, people install and never open the app, which points at your install prompt or the start page rather than tracking.

What this does not track

Honest limits, so nobody over-reads the report:

  • Installs. GA4 never sees the install itself. Chromium browsers fire an appinstalled event you could send to GA4 yourself, but Safari and Firefox do not, so treat any number built on it as partial. Progressify counts a new app user at the first open in app mode, not at the moment of install.
  • Every app open. Returning to an app from the task switcher does not reload the start URL, so short resumes are invisible as launches. They only show up if the page sends new events.
  • People across devices. On iPhone and iPad, a home screen app gets storage separate from Safari, so GA4 sees the app as a new user even if the same person visited in Safari yesterday. Do not read “new users” from the app as new customers.
  • Clean attribution after the first launch. Because of the non-direct last click rule, a later direct visit in a normal browser tab can be credited to pwa when the browser shares cookies with the app. The display mode dimension is the reliable filter for “was this page viewed inside the app”.
  • Offline reading. Progressify’s free version caches pages Network-First, so pages are fetched fresh when online and served from cache when the connection drops. A GA4 hit that cannot reach Google is not recorded, so offline reading is undercounted.
  • Visitors who decline analytics. If your consent banner blocks GA4 for a visitor, their app sessions are missing too. Progressify’s own count does not depend on GA4.

FAQ

Can I track PWA traffic in Google Analytics without code?
Yes, partly. If your PWA plugin tags the start URL, the custom channel group and exploration above need no code. You only need code for the display mode dimension, which catches sessions the tag misses.

Why does my Unassigned channel grow after installing a PWA?
Sessions with source pwa and no medium match none of GA4’s default channel rules, so they land in Unassigned. A custom channel group with Source exactly matches pwa moves them into their own row.

Can I change utm_source=pwa to my own campaign tags?
The free plugin always adds utm_source=pwa. Developers can change the manifest through the progressify_manifest filter, but adding a medium (for example app) to existing installs changes the start URL, and installed apps pick up manifest changes on the browser’s schedule. Most sites are better off with the channel group.

Do push notification clicks count as app launches?
Not automatically. A notification click opens the URL the notification points to, without the start URL tag. Add your own UTM tags to notification links if you want them separated in GA4. Progressify’s free version includes push notifications.

Is Progressify’s PWA analytics free?
The Active PWA Users count and the 30 day installs chart are in the free plugin. The detailed browser and device breakdowns are part of Pro, which comes with every DaftPlug plugin in one membership. See pricing for plans.

Want the start URL tagging, app user counts and offline support set up in a few clicks? Get Progressify and check your first pwa sessions in GA4 tomorrow.