How to track Google Discover traffic in Google Analytics 4

Don't see Google Discover traffic in your GA4 reports? You're not alone. Luckily, there is a way to uncover it and show it properly where it belongs!

Over a year ago, a friend of mine who runs a well-trafficked news portal asked me: “Petko, is there a way to see how much traffic I get from Google Discover?”

Honestly, I had no idea. But as soon as I heard the question, I switched into my “challenge accepted” mode and started digging.

I first remembered how we used to track traffic from Android device search apps in Universal Analytics. From there, it all started and soon, my friend could finally see the “hidden” Discover traffic in his GA4.


What is Google Discover?

Google Discover is a personalized content feed that shows up for Android users (and beyond) without them even having to search. In short, it’s Google saying: “You don’t have to search, we know what you like.”

And it works! Some publishers get over 30% of their traffic from Discover.

Unfortunately, in GA4, such visits often end up… well, in “Unassigned” or, at best, under “Direct”. 😐


How GA4 Sees Discover Traffic

Most Discover traffic comes from the mobile app with a referrer like this:

com.google.android.googlequicksearchbox

GA4 doesn’t know how to classify this properly since it’s not a standard HTTP referrer. As a result, the traffic gets dumped into “Unassigned” or, sometimes, “Referral.”

We have the data, but not the insight. Time to fix that!


Steps to Properly Track Discover Traffic

Step 1: Create a Custom Dimension for page_referrer

Image 1: Setting up a Custom Dimension in Ga4

Creating the “page_referrer” dimension to track Google Discover traffic more accurately.

The “page_referrer” parameter exists in GA4 event data but isn’t visible in standard reports or Explorations (although I’m not quite sure about the Explorations, because “Page Referrer” is visible in API). To use it, you first need to create a Custom Dimension.

Here’s how:

  • Go to AdminCustom definitionsCreate custom dimension
  • Name: Page Referrer
  • Scope: Event
  • Event parameter: page_referrer
Definiranje nove dimenzije "Page Referrer"
Image 2: Defining the “Page Referrer” dimension in GA4

Setting up the “page_referrer” parameter for better Discover traffic visibility.

Now you can filter for values like com.google.android.googlequicksearchbox as in the following example:

Prikaz custom dimenzije "Page Referrer" u GA4
Image 3: Viewing “Page Referrer” in standard GA4 reports

To make it even cleaner, we’ll tweak it a bit further using Modify Event.


Step 2: Rename Discover Referrer Traffic via Modify Event

In order to show the values of “Page Referrer” dimension, we can shorten or change them via Google Analyticsa 4 interface.

Modify Event u GA4
Image 4. Modify Event setup in GA4

We need add a condition that detects the traffic from Google Discover and sets up an new values for Medium and Source.

Let’s go to:

  • AdminData DisplayEventsModify Event (or Data CollectionData StreamsModify Event)

Create a new rule, name it something like “Referral is Google Discover”:

  • Modification name:pReferral is Google Discover
  • Event name: page_view
  • Condition: page_referrer contains googlequicksearchbox

Add these parameter modifications:

  • mediumorganic
  • sourcediscover

Or if you prefer, you can map it to googlequicksearchbox, like I did:

  • page_referrerGoogle Discover
  • sourcegooglequicksearchbox
Promjena definicije Referrera
Image 5: Updating the “page_referrer” using Modify Event in GA4

Now your reports will soon start displaying “Google Discover” or “discover” as a recognizable source.

Discover kao Custom dimenzija Page Referrer
Image 6: “Google Discover” as a new value in the “Page Referrer” dimension

Step 3: Adjust Channel Grouping in GA4

To make Discover traffic appear properly within Default Channel Groupings, we need to teach GA4 where it belongs.

Note: if you read the previous blog “AI visits to your website? Of course Google Analytics 4 can track those!” and you have already created a new channel definition, you can just edit that existing channel and add another one to it.

Google Analytics 4 has its default channel grouping or “Default Channel Grouping”, which (for now) cannot be changed, but it is possible to create a new channel grouping from it, and set it as default. How will you do that?

You have two options:

  • Treat Discover traffic as part of “Organic Search”
  • Create a separate channel called “Discover”

(For publishers, I’d recommend keeping it separate!)

Here’s how to do it:

  • Go to AdminData DisplayChannel Groups
  • Find Default Channel Group → click the three dots → Copy to create new
Kopiranje zadane definicije kanala
Image 7: Copying the default Channel Grouping

Name your new Channel Grouping something like Default Channel Group and Discover. Put some description here as well.

Imenovanje novog grupiranja kanala
Image 8: Naming your custom Channel Grouping

Then:

  • Click “Add new channel”
  • Name: Discover
  • Rules:
    • Source exactly matches discover
    • Medium exactly matches organic
Kreiranje novog kanala u GA4
Image 9: Setting up the “Discover” channel in GA4

(In the example in the image 9, I used the values ​​Source exactly matches googlequicksearchbox. If you mapped it differently in Modify Event, adjust your rules accordingly.

Reorder your channels to place “Discover” above “Direct” or “Organic Search” to prioritize it properly.

Promjena redoslijeda kanala
Image 10: Changing the order of channels

Alternatively, if you prefer Discover to stay grouped under “Organic Search,” here’s what you can do.

Go to channel “Organic Search” and simply edit that channel’s rule:

  • Add: OR Source exactly matches (=) discover (or googlequicksearchbox in my example)

Setting the new channel definition as the default

And that’s it! You now have the original default channel definition and your new channel definition, which you named e.g. “Default Channel grouping and Discover”, like in the picture below:

Prikaz dvije definicije kanala u GA4
Image 11: Two Channel Groupings available in GA4

After you have created a new channel definition (Channel Grouping), you can set that new channel definition as the default in Google Analytics, or you don’t have to. If you set it as default, in all reports where we have “(Session or First User) Default Channel Grouping” as a dimension, we will now have channel grouping with our new name. In all these reports, we will still be able to select the “old” channel grouping.

You can even make your new grouping the default for reports that use (Session or First User) Default Channel Grouping.

Postavljanje nove zadane definicije kanala
Image 12: Setting the new grouping as default

Seeing Discover Traffic in Reports

After setting everything up according to the instructions, after a few days in the standard Google Analytics 4 reports, we can clearly see how much traffic comes from Discover in the new channel definition.

Izvještaj koji prikazuje promet s Discovera
Image 13: Discover traffic shown in GA4 reports

In Explorations, you can add the page_referrer dimension and directly analyze traffic from com.google.android.googlequicksearchbox under your brand-new “Discover” channel.


Final Thoughts

Google Discover can be a major source of traffic, especially for content-rich websites and publishers. But even smaller websites can benefit from tracking it properly.

If your GA4 says “Unassigned,” you can now proudly tell it: “Nope, I KNOW where they came from!”

And yes, all this can be tracked in GA4. You just need to roll up your sleeves and push the platform a little.

If you have any questions or if you want to implement this setup on your website, you know where to find me. Or even better: see you at one of my next workshops!