page_referrer: The URL of the previous page that referred the user to the current page where the page_view event was triggered. e.g. If you came to this page from the New York Times homepage, the page_referrer would be https://www.nytimes.com/
What is a page_view on mobile devices?
The page_view event is only for web streams aka desktop sites.
The mobile (app) equivalent to a page_view in GA4 is a screen_view, which is an automatically collected event.
Is it pageview or page view?
For the sake of the event, it’s obviously page_view, with the underscore implying a space.
There are, however, cases in Google Analytics documentation of it being spelled both pageview(s) and page view(s).
The truth is that it’s not very important whether you use the space. People will understand what you’re talking about either way.
How do you create goals in Google Analytics 4? Technically, you don’t.
What we know as Goals in Universal Analytics are Conversions – or Conversion Events – in Google Analytics 4. But don’t worry – they’re basically the same, and in my opinion, easier to set up in GA4 than in UA.
Conversions are created in Google Analytics 4 simply by marking an existing event as a conversion.
Go to the Configure tab on the left side of the screen in the GA4 dashboard
Click the Events option
In the right column of your list of events, you can change any of them to a conversion with a simple click, moving the toggle from the left to the right, changing the color from gray to blue in the “Mark as conversion” column
You can also “pre-create” events from the Configure tab.
Instead of clicking Events on the left, click the second option, Conversions
Once on the Conversions screen, click the blue “New conversion event” button
Name your Conversion (it can have up to 40 characters) and click the blue Save button
Following these steps does not create a Conversion in and of itself. But when you create an Event in the future by the exact same name as step 3 directly above, that Event will be marked as a Conversion from the moment it collects data, and you won’t have to go into the Events screen and mark it as such as outlined in the beginning of this section.
Get twice-weekly digital content strategy updates sent directly to your inbox.
Something you can do in GA4 that isn’t available in UA is create events directly from the Google Analytics dashboard. You do this by going to Configure > Events and clicking the blue Create Event button.
From there, you would use data from existing events to create a new one. Here is an example of how you could create a “purchase” event based on the user landing on yoursite.com/thankyou after a confirmed transaction:
Notice that the Event is trigged when the Event “page_view” fires and the “page_location” parameter for that event is equal to /thankyou.
In order to make sure this Conversion – or any Conversion – only fires when an actual conversion occurs, make sure that all the criteria for the event can only be true when that Conversion fires. Otherwise, you’ll be counting unrelated actions as Conversions as well.
That’s why using page_location equal /thankyou is so helpful here. There can only be one page on your site with that location, and if users are only directed there after making a purchase and it’s not otherwise in your site navigation, you can be sure that a “purchase” has occurred with near-100 percent certainty*.
*Of course there is always the very unlikely possibility that someone reaches that page on your site by typing it directly into their browser navigation bar
Google Analytics 4 Recommended Conversion Events
Google doesn’t so much “recommend” conversion events as it does include five of them – one for both web and app and four for app only – by default:
purchase (web and app)
first_open (app only)
in_app_purchase (app only)
app_store_subscription_convert (app only)
app_store_subscription_renew (app only)
That being the case, you still have to “tell” Google Analytics what constitutes each of these events. In other words, you have to create Events with the same names you see in the aforementioned list. Google does not begin collecting data for Events with these names as soon as you install Google Analytics 4.
For example, in a web data stream, if you look at the default list of events upon setup, you’ll see that “purchase” does not appear. Again, you have to define for Google what a purchase is by creating a “purchase” event. Same for the other four default events listed above.
The way you can tell these are pre-created as Conversions by GA4 is by going into your Conversions tab, where you’ll see “purchase” already listed as a Conversion Event, should you create a “purchase” event in the future. You’ll also notice that it is “locked” as a Conversion. That is, you cannot toggle the “Mark as conversion” lever from right to left, thereby making “purchase” a non-conversion Event:
How Many Conversions Can I Have in a GA4 property?
When you count the five default Conversions that Google includes in your dashboard, you can actually have a total of 35 conversion events for your app(s) and 31 for web data streams.
If you run up against that limit, consider paring down your conversions to only the most important ones. This will also make your reporting much easier since you won’t be tracking as many KPIs. It may also help you to focus on what’s most important to your business.
How Do I Turn Off Conversions in GA4?
You turn off conversions the same way you turn them on, but you reverse the final step.
Go to the Configure tab on the left side of the screen in the GA4 dashboard
Click the Events option
In the right column of your list of events, click any that are marked as a conversion so that the toggled goes from right to left and changes from blue to gray
Are Google Analytics 4 Conversions Retroactive?
No. Google begins collecting data on Conversions from the moment they’re created, but it does not affect historic data.
Key Difference Between UA Goals and GA4 Conversions
In Universal Analytics, each conversion (known as a goal), is only counted once per session, even if the user completes the conversion (goal) multiple times in the same session.
In Google Analytics 4, however, conversions are counted as many times as they occur within the same session.
If you have conversion events on your site that can logically be completed multiple times within the same session, you should expect your GA4 conversions count to be significantly higher than your UA goals count for that particular user action.
Exception: Note that although “purchase” is a conversion event in GA4, Google says that purchase counts should closely match between the two properties since UA also uses “purchase” events within the ecommerce model.
page_title: The web page’s title e.g. Your Site Name – Content
screen_resolution: The screen resolution of the user’s monitor. e.g. 1280×768
GA4 Event Parameter Limits
While parameters are very useful, there are some limits you should know about.
How many parameters can I have per event?
In addition to the five default parameters, you can create up to 25 custom parameters per event.
If you hit the 25 parameter limit (unlikely) for a particular event and need to create more, you can delete some to make space.
What is the character limit of a parameter value?
Each parameter value has a 100-character limit, with the exception of page_location, page_referrer, and page_title parameters, which have a 300-character limit.
Google Analytics 4 Event Parameter Examples
To make things simple, let’s think of an example. Imagine you run the Ford* website.
*Company chosen at random
In the top navigation menu of their site, they list various types of vehicles. You could, then, create a “vehicle” event for every time someone visits the product page of a particular vehicle.
By looking at one particular product page – the Ford Escape S – I can think of different Google Analytics 4 event parameters I would want to track.
Here are some of the parameters I would create, along with what the parameter’s value would be:
model: Escape S
If you really want to drill down, you could apply the same strategy to their “Build” page where users can choose a color and different add-ons.
The point of collecting this data would be to better understand which vehicles and features are most popular. And since you have to enter a zip code/your location to access the build page, this data could be broken down geographically if you add a parameter for that, too.
To only have a “vehicle” event that fires every time someone visits the product page of a particular car, truck, etc. wouldn’t shed a lot of light on user behavior. But by creating custom parameters for each particular vehicle, Ford would learn a lot about what potential buyers seek.
How To Find Google Analytics 4 Event Parameters
In your Google Analytics 4 dashboard, click on the reports menu on the left (highlighted with a blue circle below) then click on “Events” under “Engagement.” (There are other ways to see your parameters, but this is probably the most straightforward.)
Then scroll down and click on any of the events. For websites, page_view will probably have the most data, while in apps, screen_view will probably have the most data.
In the GA4 demo dashboard, I clicked the screen_view event. When you get to this page for any event, you should see a widget on the right side that says “EVENTS IN THE LAST 30 MINUTES.” Click the dropdown there, and you will be able to see all parameters associated with the particular event.
Parameters in Reports
If you want to analyze parameter data in more detail, there are two ways to do so.
In Reports Tab
You can do this in any report that has event data, but I’m going to go through one specific example so you can follow along:
1. Go to Events > Life cycle > Engagement > Engagement overview
2. Scroll down to the “Event Count by Event Name” widget
3. Click on any of the events (I clicked “page_view”)
4. Scroll down to the “Events in last 30 minutes” widget and select one of the parameters from the dropdown
You can now see how many times that parameter was triggered within the event you selected (reminder: I selected page_view) in the last 30 minutes.
But that’s not very useful, is it? To only have data within a single event for the last 30 minutes.
Let’s make sure we can see data for a particular parameter in the Explore section.
In Explore Tab
To analyze parameters in the Explore section of Google Analytics 4, you will first need to add a custom definition. Here’s how to do that:
1. Go to Configure > Custom Definitions
2. Click the blue “Create custom definitions” button
3. Name your dimension. (Unlike event and parameter names, I don’t recommend against using spaces and capital letters here.)
4. Give it a brief description that will make sense when you or a colleague reads the the tool tip in Explore later on.
5. Leave the Scope type as Event and choose your parameter from the dropdown. Then click “Save.”
It may take 24-48 hours, but you should soon see your new custom dimension in Explore under “Custom.”
You can now apply that parameter to eligible reports in Explore.
GA4 Parameters Summary
Google Analytics 4 events are the “big-bucket” actions that users take on your website, while parameters are the final details that provide more context to those actions.
The good news is, you can add practically any parameter you can think of to your events. You can do this either directly in the GA4 dashboard, or in Google Tag Manager.
Events are the foundation of Google Analytics 4 data. They are triggered by user interactions on your website and/or app. There are four types of events in Google Analytics 4: automatically collected events, enhanced measurement events, recommended events and custom events.
Each Google Analytics 4 event includes five parameters by default:
“Parameters are additional pieces of metadata that add context to event data.” In addition to the five default parameters listed above, each event can contain up to 25 additional custom parameters. This is different from Universal Analytics (GA3), where events only contained four parameters, none of which was customizable.
According to Google: “The value assigned to event parameters must be 100 characters or fewer; however, the page_location, page_referrer and page_title parameters must be 300 characters or fewer.”
In some cases, the five default parameters will be sufficient for your event. If not, 25 custom parameters is a very high number and it’s unlikely you’ll reach this limit with any given event before you include all your desired parameters.
Some automatically collected events and enhanced measurement events will include additional default parameters that do not count against your count of 25 custom parameters. Recommended events included recommended parameters, but since Google doesn’t create these events for you by default, you’ll have to add them yourself when creating recommended events.
What are the differences between events in UA and GA4?
In Universal Analytics, events are their own “hit type” and have up to four built-in parameters: Category, Action, Label, Value.
In GA4, however, every “hit” is an event and the platform doesn’t distinguish between hit types.
As mentioned in the previous section, Google Analytics 4 events come with five default parameters, plus up to 25 more custom ones per event. Outside of Category, Action, Label and Value, UA does not allow for custom parameter creation.
Google Analytics 4 Event Types
There is an order in which you should utilize Google Analytics 4 events, beginning with automatically created ones all the way up to custom. Here is a pyramid to help you visualize.
What this means is that, whenever you want to track something as an event, you should start at the bottom of the pyramid and see if it’s available. (This will make more sense after you read the descriptions below of each event type.) If not, move up to the next level of the pyramid.
In other words, you should only use recommended events if you can’t find the event you want to use in automatically collected nor enhanced measurement events. And if you can’t find what you’re looking for in any of those three bottom levels of the pyramid, then and only then should you create a custom event.
Automatically Collected Events
Automatically collected events and they’re determined by Google, and their function is self-evident by their names. Below is a list of the ACEs for web. (Click the link above to see ACEs for apps.)
Enhanced Measurement Events
Enhanced measurement events are all included in automatically-collected events, so why are they listed in a separate category? Because while all the rest of the automatically collected events will feed into Google Analytics 4 no matter what, you can “opt out” of collecting enhanced measurement events.
These are the enhanced measurement events in Google Analytics 4:
I recommend leaving EMEs turned on, but if for some reason you want to opt out of any in particular – or all of them – you can do so upon setup or at anytime once your dashboard is live.
To turn off enhanced measurement events in Google Analytics 4, go to Admin > Data Streams > select the data stream for which you want to turn off enhanced measurement events. You will then see a popup that looks more or less like this:
You can turn off all enhanced measurement events by clicking the on/off toggle I circled in the above screenshot.
Alternatively, you can click the settings cog symbol, which will open a window like the one here, where you can individually choose which EMEs to leave on and which to turn off.
Recommended events are not out-of-the-box ready such as with automatically collected events and enhanced measurement events. They are, however, “reserved” by Google for your use. What does that mean?
Let’s say you want to track every time someone signs up for a newsletter on your website. There is no automatically included nor enhanced measurement event that would logically be used for this. The next step, then, would be to review the list of Google-recommended events and see if one of them might fit the bill.
There is, in fact, a recommended event called “sign_up”. Now, just like any event that’s not included in the first two event categories, you can use “sign_up” to track anything you want on your website. But it would make the most sense, of course, to utilize it when someone signs up for something.
There are two possible complications, depending on what people can sign up for on your website. Fortunately, they both have simple solutions:
1) If you have more than one newsletter on your site. If you use the sign_up event to track multiple newsletter signups, this would be a great opportunity to add an event parameter that distinguishes between different newsletters. The parameter names could be as simple as “politics,” “sports” and “entertainment.”
That way, all your newsletter-signup data is housed within the same event, but you can also drill down to see, for example, who signed up for your politics, sports or entertainment newsletters, respectively.
2) If you have different types of unrelated signups on your website. Perhaps users can sign up for both newsletters as well as for a user account. In this case, you have two options:
A. Use the same solution in scenario 1: distinguish via event parameters. Use the sign_up event for all types of signups, but distinguish between signup types with parameters. e.g. For newsletters signups, use something like “politics_newsletter” and “sports_newsletter” as your parameters, and for account signups use “create_account”.
Pro: You will benefit from Google reporting features and integrations (see below) since both events utilize a recommended event.
Con: At the event level, all your data for two somewhat unrelated user actions will be mixed.
B. Your other option is to use the “sign_up” event for one of the events and use a custom event for the other. These could be “sign_up” and “new_account”, for example.
You should send recommended events with their prescribed parameters to get the most details in your reports and to benefit from future features and integrations as they become available.
Custom events are the only type of events in Google Analytics 4 that you would create from scratch without any pre-built settings. They also include the five aforementioned default parameters. Any other parameters you create would be considered custom.
When would you create a custom event in Google Analytics 4? You would only create custom events in Google Analytics 4 if the action you want to track is not included in any of the three previous levels of events (automatically included, enhanced and recommended).
For example, let’s say you want to track every time someone triggers both the “scroll” and “user_engagement” events on your product page. You could create an event called “engaged_product_visit” that is triggered whenever someone triggers both the “scroll” and “user_engagement” events while their page_location (essentially the URL) matches your product page.
We’ll explore this example more in-depth below when we talk about actually creating events, but the key factor here is that no event like this already exists in automatically collected nor enhanced measurement nor recommended events, which means that as a “last resort,” you must now create a custom event.
Naming Google Analytics 4 Custom Events
To keep things organized and aesthetically pleasing, I recommend following Google’s existing scheme for event creation. That is, all lowercase and with underscores instead of spaces. In fact, Google expressly tells you not to use spaces in its documentation.
Can I use spaces instead of underscores in Google Analytics 4 event names? Yes, but your dashboard will look much cleaner if you follow the existing schema.
Can I use uppercase letters in Google Analytics 4 event names?Yes, but for the same reasons, I would only do so if it’s part of a proper noun or perhaps an acronym.
Can I use numbers in Google Analytics 4 event names? Yes, though I would only do so if necessary.
Are Google Analytics 4 event names case-sensitive? Yes. e.g. “sourdough_bread” and “Sourdough_Bread” would be tracked as two separate events.
In Google Analytics 4, click “Configure” at the bottom of the left pop-out menu.
On the subsequent page, click the blue “Create Event” button. That will bring you to the following screen, where you should click the blue “Create” button.
That will bring you to the following page, which is where all the magic happens.
Using our aforementioned example – an engaged user triggering the scroll event on a product page – we would list each of those conditions in the Configuration:
As you can see, we have named our event engaged_product_scrolls, and in order for it to register, both the scroll and user_engagement events must fire with a URL that contains /product. In this imagined scenario, every product would have a URL that was something like xyzbusiness.com/product23483/basketball-shoes.
If we only wanted this event to fire for this one particular product, then the page_location would have to equal /product23483/basketball-shoes. Notice that page location is identified by everything after the top level domain (TLD), which is “com” in this case.
If you didn’t want to copy the exact same parameters from the source event, you would uncheck the box you see and add modification(s).
When you’re finished, click the blue create button at the top-right portion of the screen.
Create with Google Tag Manager
If you, like me, prefer to use Google Tag Manager to install Google Analytics events, you can do so by creating a new tag.
From the Overview page, click “Add a new tag.” (This can also be done by going to the Tags menu, below Overview, and clicking the “New” button once on that page.)
Click Tag Configuration and select the Google Analytics: GA4 Configuration tag.
Since Google Tag Manager gives us more event-creation capabilities, we’re going to use a different example here. In this case, I’m going to add a recommended event – sign_up – every time someone subscribes to receive email notifications about new posts on this website.
I’m going to do this by tracking clicks on the “FOLLOW” button in the footer of my website.
By running a test with Google Tag Manager preview mode, I can confirm what already seems obvious by looking at the button: The click text is “FOLLOW”. So I’m going to create a trigger in Google Analytics to fire every time someone clicks a “FOLLOW” button on my site. Since there is only one follow button on the whole site, I don’t have to worry much about this picking up unrelated clicks.
Here’s how I set up the Trigger in Google Tag Manager:
And here’s how I set up the Tag in Google Tag Manager, naming the event exactly as Google recommends:
Once the tag and trigger are properly set up, I can publish the latest version of my Google Tag Manager container, and the event will be live on the site.
You should see data begin to show up in your dashboard in around 24 hours or less.
If you want to test it beforehand, you can use the Debugger View, under Configure, in the GA4 dashboard. You can also test it simultaneously using the Google Tag Manager preview mode if you in fact set up the event using GTM.
Do you have any questions about creating events in GA4? Did you run into any problems I didn’t cover? Let me know in the comments.