Predictive Analytics in Google Analytics 4: How to Use Machine Learning to Forecast User Behavior and Outcomes

Predictive Analytics in Google Analytics 4: How to Use Machine Learning to Forecast User Behavior and Outcomes
Estimated Reading Time: 7 minutes

Google Analytics 4 (GA4) is embracing the power of machine learning by incorporating predictive analytics within the platform so that you can use your data—not only to uncover trends—but to predict future user behavior. In this article, we will walk through the different machine learning capabilities that are available to you. Let’s begin!

What is Predictive Analytics?

Let’s start with the basics and talk about what predictive analytics‌ is. Predictive analytics uses various machine learning and modeling techniques to make predictions on, or calculate the probability of certain events occurring. These modeling techniques use your own historical data to determine what is most likely to occur in the future. In the case of marketing and e-commerce analytics, this can be used to determine future user behavior, the probability of users purchasing, the probability of users churning, and much more. Now, let’s walk through all the predictive analytics options you have in GA4.

Analytics Insights

Analytics Insights is a feature that uses machine learning to derive quick and useful insights on your data. 

  • Automated insights: These are built-in insights that require no configuration on your end. They are used to detect any changes in traffic that seem unusual, based on historical patterns. For example, if your GA4 property receives significantly less traffic on a given day compared to previous days, the automated insights feature will alert you of this change. You can then explore this data to determine whether this dip in traffic is expected or intentional (like certain features on your site being down for maintenance).
  • Custom insights: Custom insights allow you to create conditions to detect any changes that you would like to track. When these conditions are met, you can view these alerts on the Insights dashboard and/or via email notifications.

Where can I find Analytics Insights?

  • Homepage > Insights and Recommendations
  • Reports > Reports Snapshot
  • Advertising > Advertising Snapshot

Predictive Metrics

Three predictive metrics are built in to GA4 to predict future user behavior. The events used to build these predictive metrics are the Purchase, Ecommerce Purchase, and In-App Purchase events. In other words, if your property is collecting one or all three of the events above, the built-in predictive metrics will use that purchase event data to build the predictive metrics that rely on purchase numbers.

Currently, the available predictive metrics are the following:

  • Churn Probability: The likelihood that users who were active in the past 7 days will not be active within the next 7 days.
  • Purchase Probability: The likelihood that a user who was active in the last 28 days will trigger a conversion event at some point in the next 7 days.
  • Predicted Revenue: The expected revenue from purchase conversions within the next 28 days from users who were active in the past 28 days.

Requirements for Predictive Metrics

To properly train ‌machine learning algorithms, your GA4 property needs to meet a specific set of criteria to have predictive metrics enabled in your property. The criteria is dependent on the predictive metric you are wanting to use.

  • A minimum threshold ‌number of users must be met during a period:
    • For Churn Probability: In the last 28 days, there must be a seven-day period with at least 1,000 returning users (non-churning users) and at least 1,000 users who did not return to your site (churning users).
    • For Purchase Probability: In the last 28 days, there must be a seven-day period with at least 1,000 purchasing users and at least 1,000 users who did not purchase.
    • For Predicted Revenue: In the last 28 days, there must be at least 1,000 purchasing users and at least 1,000 users who did not purchase. The purchase event must also include the value and currency parameters.
  • The minimum threshold must be consistently met for the predictive metrics to continue to be eligible. If your property falls under the minimum threshold at any given time, then Google Analytics will stop updating the predictive metric until the threshold is reached again.

Where Can Predictive Metrics Be Used?

  • Audience Builder: You can use the built-in predictive metrics to create predictive audiences.
  • User Lifetime Report: Within the Exploration section, there is a User Lifetime template in which you can use the Purchase Probability and Churn Probability metrics.

Predictive Audiences

GA4 audiences are a particularly valuable feature that allows you to share your audiences with other platforms to optimize your marketing efforts. Now, you can build predictive audiences to aid you in these efforts. 

There are five built-in predictive audiences:

  • Likely 7-day churning purchaser: Purchasing users who are not likely to visit your site in the next 7 days.
  • Likely 7-day churning users: Users who are not likely to visit your site in the next 7 days.
  • Likely 7-day purchasers: Users who are likely to make a purchase within the next 7 days.
  • Likely first-time 7-day purchasers: Users who are likely to make their first purchase within the next 7 days.
  • Predicted 28-day top spenders: Users who are predicted to generate the most revenue in the next 28 days.

These predictive audiences can be used as-is or you can add conditions to each predictive audience to further refine the group of users. Whether you choose to use these audiences as they come or customize them, they offer plenty of opportunities to more accurately target specific users in a sophisticated manner.

Example scenario: Cool Hats Apparel wants to advertise their wonderful products to users who have a high chance of not returning to their site and making a sale so that they don’t feel left out whenever all their friends show up to the summer barbecue gathering wearing Cool Hats Apparel. To achieve this, Cool Hats Apparel uses the Likely seven-day Churning Users audience to determine which users are likely to not return to their site in the next seven days and target these users appropriately by highlighting any sales going on that week or incentivizing them to make a purchase by offering a first-time purchaser discount. 

Behavioral Modeling

Google introduced Consent Mode to interact with your consent management platform to determine users’ consent preferences. In other words, if users opt out of data collection, your Google tags will adjust accordingly to limit the data that is sent to your property. This causes some gaps in your reporting since some unconsenting users are not accounted for in your numbers. To help you fill in these gaps, behavioral modeling models the behavior of users that denied consent by observing the behavior of similar users that did consent to analytics cookies.

Requirements for Behavioral Modeling

  • Consent Mode must be enabled on all of your site and/or app pages.
  • Google tags must load before the consent banners appear on your site.
  • For at least seven days, the property must collect at least 1,000 daily events with analytics_storage= ‘denied’. 
  • Within 28 days, the property must have at least 1,000 daily events with analytics_storage= ’granted’ for at least seven days.
  • The Reporting Identity for your property must be set to ‘Blended’ if you would like to see modeled data in your reports.

Where Can Behavioral Modeling Be Found?

To find out whether modeled data is integrated in your reports, you click on the data-quality icon in a report to determine if this data is being included.

Do you have questions about Predictive Analytics?

Our team of data analyst experts is here to help whenever you need us.

Author

  • Silvia Castro

    As a Digital Analytics Consultant at InfoTrust, Silvia Castro assists clients with all-things analytics. A day in the life of Silvia consists mostly of configuring Google Analytics accounts and ensuring that such implementations are set up successfully. She enjoys conducting interactive trainings on the platform, where clients get to engage and have their questions answered on the spot. In her free time, you can find her at a pilates class or enjoying some outdoor activities with her dog, Sammy.

Facebook
Twitter
LinkedIn
Email
Originally Published: February 12, 2024

Subscribe To Our Newsletter

February 12, 2024

Other Articles You Will Enjoy

How Data Maturity Can Cultivate a Data-Driven Culture

How Data Maturity Can Cultivate a Data-Driven Culture

Data-driven decisions are a buzz topic in Martech. It is essential for C-suite executives to understand and more importantly, use their data to move…

4-minute read
How to Integrate Google Analytics 4 with BigQuery for Enhanced Data Analysis and Reporting

How to Integrate Google Analytics 4 with BigQuery for Enhanced Data Analysis and Reporting

Has your business found that its reporting needs require advanced analysis of your analytics data beyond what is practical in the Google Analytics 4…

4-minute read
How Does BigQuery Data Import for Google Analytics 4 Differ from Universal Analytics?

How Does BigQuery Data Import for Google Analytics 4 Differ from Universal Analytics?

All Google Analytics 4 (GA4) property owners can now enable ‌data export to BigQuery and start to utilize the raw event data collected on…

2-minute read
Tracking User Behavior with Events in Google Analytics 4: Examples and Use Cases

Tracking User Behavior with Events in Google Analytics 4: Examples and Use Cases

So you’ve created your Google Analytics 4 (GA4) properties, created your data stream(s), and followed all the necessary steps to configure your property. Now…

5-minute read
App Install Attribution in Google Analytics 4: What You Need to Know

App Install Attribution in Google Analytics 4: What You Need to Know

App install attribution in Google Analytics for Firebase (GA4) is a feature that helps you understand how users discover and install your app. It…

6-minute read
Google Analytics 4 Implementation Checklist: Ensure You’re Tracking Everything You Need

Google Analytics 4 Implementation Checklist: Ensure You’re Tracking Everything You Need

In the dynamic landscape of digital marketing, data is supreme. Understanding user behavior, preferences, and interactions on your website is crucial for making informed…

4-minute read
Leveraging Custom Dimensions and Metrics in Google Analytics 4 for Content Performance Measurement: Best Practices and Real-World Examples

Leveraging Custom Dimensions and Metrics in Google Analytics 4 for Content Performance Measurement: Best Practices and Real-World Examples

In today’s digital landscape where content reigns supreme, understanding how your audience interacts with your content is paramount for success. For news and media…

5-minute read
Advanced Analysis Techniques in Google Analytics 4: How to Use AI-Powered Insights and Predictive Analytics for Effective Marketing

Advanced Analysis Techniques in Google Analytics 4: How to Use AI-Powered Insights and Predictive Analytics for Effective Marketing

AI-powered insights and predictive analytics are revolutionary tools reshaping the modern marketing landscape. These advanced analytics techniques, particularly prominent in Google Analytics 4 (GA4),…

8-minute read
Deploying Digital Analytics Changes at Scale for CPG and Multi-Brand Organizations

Deploying Digital Analytics Changes at Scale for CPG and Multi-Brand Organizations

The digital analytics industry is going through seismic shifts, and it is important for CPG organizations to stay abreast of the changes and stay…

5-minute read

Get Your Assessment

Thank you! We will be in touch with your results soon.
{{ field.placeholder }}
{{ option.name }}

Talk To Us

Talk To Us

Receive Book Updates

Fill out this form to receive email announcements about Crawl, Walk, Run: Advancing Analytics Maturity with Google Marketing Platform. This includes pre-sale dates, official publishing dates, and more.

Search InfoTrust

Leave Us A Review

Leave a review and let us know how we’re doing. Only actual clients, please.