Using Google Analytics 4 (GA4) for Tracking SaaS: 2026 Guide
By Silver Ringvee · · · 10 min read
Updated November 2026. This post was first written in 2019 for Universal Analytics, which no longer exists. We have rewritten it from scratch for Google Analytics 4 (GA4): the event-based model, user IDs and user properties, single-page app tracking, key events, the Measurement Protocol for recurring payments, Explorations and BigQuery. The screenshots from the old version showed Universal Analytics, so we removed them. Every limit mentioned was checked against Google’s current documentation (see the sources).
Can you track a SaaS product with GA4?
Yes, and it is a much better fit than the old Universal Analytics was. GA4 is built around events: every interaction is an event with parameters. For a SaaS product, what users do (create a project, invite a teammate, upgrade a plan) matters more than which page they viewed.
There are tools built specifically for product analytics, such as Mixpanel and Amplitude, and they are good choices. But before you buy another tool, consider the free one your team probably knows already. If your marketing site already uses GA4, adding it to the app gives you one dataset that spans the whole journey: first visit, signup, activation and later usage.
Working out the strategy
GA4 was built for general-purpose websites and ecommerce, and most tutorials focus on those. Every SaaS app is different, so you will need a tracking plan. Sit down with your team and plan before you touch any code.
I usually start by getting familiar with the app: all its features and the actions users can take. Then I create a spreadsheet of everything I want to track, grouped in a way that makes sense for the app. Here is an example of the groups we used for one client:
- Page/screen views (virtual page views in a single-page app)
- Messages: what the user sees in the app (success, error)
- User actions: clicks, downloads, creating and editing things
- Lifecycle: signup, activation, upgrade, cancellation
Next, list each event under those groups, and the extra information (parameters) you want to send with each.
Name events and parameters well
GA4 has some limits that shape your plan. According to Google’s event collection limits, event and parameter names can be up to 40 characters, parameter values up to 100 characters, and each event can carry up to 25 parameters. Use short, consistent names in snake_case (for example project_created) and agree on a naming convention before you start. See ideas for custom dimensions and metrics for inspiration.
Use Google’s recommended events where they fit: sign_up, login, generate_lead, purchase and refund are all useful for SaaS. Google lists no subscription events, so name those yourself, for example subscription_started and subscription_cancelled.
Plan custom dimensions carefully
Event parameters only show up in GA4’s reports once you register them as custom dimensions (or metrics) on the Custom definitions page in Admin. A standard property allows 50 event-scoped and 25 user-scoped custom dimensions, and 50 custom metrics, according to Google’s custom dimensions guide. Registered values appear in reports after 24 to 48 hours, and after you delete a dimension you must wait 48 hours before adding a new one. Google also advises against registering high-cardinality values such as unique IDs, session IDs and timestamps.
Good candidates for a SaaS app:
- Account plan or tier (user-scoped)
- Account type or company size
- Feature (which part of the app the action came from)
- Project or object type
- Error type (a short list of values, not free text)
A helpful tip: a parameter that you do not register as a custom dimension is not available in the GA4 interface, but it is still included in the BigQuery export. That makes BigQuery the right place for high-cardinality details such as the full original page path or an account ID.
Use the user ID and user properties
Send your own user identifier as user_id, so GA4 can connect one person’s activity across sessions and devices. Google’s User-ID guide says it must be 256 characters or less, must not contain anything a third party could use to identify the person, and should be set to null when the user logs out. Use an internal ID, not an email address.
User properties describe the user and persist across events, for example plan or role. Google allows up to 25 additional user properties per project, and uses the latest value for each user. Pair them with user-scoped custom dimensions to see them in reports.
Keep personal data out
Google’s policy says that no data may be sent that Google could recognise as personally identifiable information, including in URLs, page titles and custom dimensions. In a SaaS app, check that email addresses, names or tokens do not end up in page paths, query parameters or error messages.
Configuring the setup
This part needs developer help, but nothing in it is complex.
Google Tag Manager and the data layer
I recommend Google Tag Manager for any GA4 setup. If your app already has a data layer for another tool, reuse it. If not, ask your developers to set one up. It saves a lot of time and nerves later.
When pushing to the data layer, use the same logic as your tracking plan. Include an event value with every push that should send an event. For example:
window.dataLayer.push({'event': 'project_created', 'feature': 'dashboards', 'project_type': 'blank'});
In GTM, create Data Layer Variables for each parameter, a Custom Event trigger on the event name, and a GA4 Event tag that sends the event name and parameters. Check everything in GA4’s DebugView before you publish.
Page and screen views in a single-page app
Most SaaS apps are single-page applications, so the usual page load trigger does not fire on every screen. Google’s single-page app guide describes two approaches:
- Without GTM: in the web data stream’s Enhanced measurement settings, under page views, keep both “Page loads” and “Page changes based on browser history events” on. GA4 then sends a
page_viewwhen your app changes the browser history with the History API. - With GTM: turn the history-based option off in GA4 (to avoid counting twice), and use a History Change trigger in GTM to send
page_viewevents, as described in Google’s GTM guide for single-page apps. It uses a Google tag with the update setting and tag sequencing, so the new URL and title are used.
Google warns that without virtual page views, a whole visit looks like one page, which distorts metrics such as engagement. Test with DebugView.
If your URLs contain dynamic IDs, I recommend sending a clean page path in your page views (for example /accounts/dashboards/view/, not /accounts/9735757/dashboards/10/view/), so reports stay readable. Send the original path as an event parameter and keep it for BigQuery. Many apps also have modals, side panels and tabs that act as screens. There is no right or wrong approach, but make sure everything that matters is tracked as a page view, an event or both.
Key events: what counts as success
In GA4, conversions are now called key events. Any event can become one. For a SaaS product, good candidates are signup, activation (the first meaningful action), starting a trial and upgrading to a paid plan. A standard property allows 30 key events, so be selective.
Tracking payments
Most SaaS apps have two kinds of payments: those that happen when the user does something (entering a card, changing plan) and recurring subscription payments that happen with no user action.
Immediate payments are straightforward. Send the purchase event, with its recommended parameters and a unique transaction ID, when the payment succeeds.
Recurring payments are trickier, because the user is not on your site. The usual approach is to use the GA4 Measurement Protocol from your backend:
- Store the GA4 client ID (and, where possible, the session ID) for each user in your database.
- Send renewal or purchase events from your backend with the correct client ID and user ID.
- Add a parameter that tells immediate and recurring payments apart.
Note what Google says about it: the Measurement Protocol is meant to augment normal collection through gtag, GTM or Firebase, not to replace it, and events can only be attached to a specific session if sent with its session_id within 24 hours of the session starting. For long-term revenue analysis, many teams send subscription data to the warehouse directly from billing instead, and join it to GA4 data in BigQuery.
Limitations
GA4 is a great start for small and mid-size SaaS products, but it has limits worth knowing, and they apply to the free version:
- Sampling and thresholds. Explorations are sampled once a query covers more than 10 million events, and data thresholds hide some rows in reports with demographics. Short periods and overall trends are fine, but analysing one user’s behaviour over a long time can run into limits.
- Retention. User-level data can be kept for 2 or 14 months, so long-term cohort analysis in the interface is limited.
- Limits on parameters and dimensions. 25 parameters per event, 50 event-scoped and 25 user-scoped custom dimensions, 30 key events.
- Raw data. You do get a free raw data export to BigQuery, which is a big improvement over the old days. But on standard properties, it is limited to 1 million events a day for the daily export, and a busy SaaS product can pass that quickly. Parallel Tracking removes the cap. See GA4 alternatives if you are weighing your options.
- Not a full product analytics tool. For very event-heavy products, dedicated tools offer features such as deeper retention and behavioural analysis.
Don’t let these put you off unless you know they will be a major problem for you.
Reporting examples
In this post, we include a few examples of reports you can build with the new data, because we often see companies with fancy implementations and no clue how to turn data into insights. GA4’s Explorations offer several techniques that suit SaaS well.
The signup funnel
Use a funnel exploration to follow people from landing page to signup, first project and upgrade. Break it down by source or plan to see where people drop off.
What users do next
A path exploration shows the actions users take after signing up or before they cancel, which is helpful for finding the paths that lead to activation.
Retention by cohort
A cohort exploration shows how many users come back, grouped by the week they signed up. Remember the retention limit in the interface.
Most valuable and most active users
Use the user explorer and user lifetime techniques to look at individual users and the value they bring over time. With user_id in place, you can follow people across devices.
Errors and friction
I recommend tracking two types of errors: the messages and alerts users see in the app, and JavaScript errors. Google’s event reference has no built-in error event, so define your own, for example app_error, with a parameter for the type (keep it a short list of values). A simple report of the top error types shows which messages cause the most friction. Lowering the number of errors is one of the easiest ways to improve the user experience.
In BigQuery
With the raw export, you can build any report: the activity of a single user, the actions of all users, or join GA4 with your CRM and billing data to see which sources bring the most valuable customers. See why you need a marketing data warehouse and how to measure LTV, retention and churn.
Conclusion
GA4 is perfectly capable of being the main analytics platform for many SaaS products, especially if your marketing site already uses it and your team knows it. Plan your events and parameters first, register only the dimensions you need, send a user ID, handle single-page navigation properly and keep personal data out. When you outgrow the limits, a warehouse and Parallel Tracking take you further without starting over.
If you work at a SaaS company, or with SaaS clients, and want help tracking your product, Reflective Data’s GA4 services have you covered. Book a free consultation.
Sources
- Google, Event collection limits and About custom dimensions and metrics (Analytics Help).
- Google, Recommended events and About key events.
- Google, User-ID and User properties.
- Google, Measure single-page applications and with Google Tag Manager.
- Google, Measurement Protocol (GA4).
- Google, Explorations, BigQuery Export and Best practices to avoid sending PII.
Limits are for standard (free) GA4 properties and change from time to time. Check Google’s current documentation before you build on them.
written by
Silver Ringvee
Silver Ringvee is an expert in both traditional digital analytics and user behavior analysis. Besides analytics, Silver also has a strong experience in A/B testing and web development. Over the years, he has worked on over a hundred websites helping them become more profitable using various data-driven solutions.
We love AI, but this article was written by one of our experts.
discussion
0 comments