Meet Recommended Events
Recommended Events is Google’s pre-defined event name and event parameters based on the industry.
You need to send data according to the predefined event name and event parameters before you can see the data in GA4.
Recommended Events Categories
Recommended Events include 3 categories :
For all properties
Event | Trigger when |
---|---|
ad_impression | a user sees an ad impression, for app only |
earn_virtual_currency | a user earns virtual currency (coins, gems, tokens, etc.) |
join_group | a user joins a group to measure the popularity of each group |
login | a user logs in |
purchase | a user completes a purchase |
refund | a user receives a refund |
search | a user searches your content |
select_content | a user selects content |
share | a user shares content |
sign_up | a user signs up to measure the popularity of each sign-up method |
spend_virtual_currency | a user spends virtual currency (coins, gems, tokens, etc.) |
tutorial_begin | a user begins a tutorial |
tutorial_complete | a user completes a tutorial |
For online sales
Event | Trigger when |
---|---|
add_payment_info | a user submits their payment information |
add_shipping_info | a user submits their shipping information |
add_to_cart | a user adds items to cart |
add_to_wishlist | a user adds items to a wishlist |
begin_checkout | a user begins checkout |
generate_lead | a user submits a form or a request for information |
purchase | a user completes a purchase |
refund | a user receives a refund |
remove_from_cart | a user removes items from a cart |
select_item | a user selects an item from a list |
select_promotion | a user selects a promotion |
view_cart | a user views their cart |
view_item | a user views an item |
view_item_list | a user sees a list of items/offerings |
view_promotion | a user sees a promotion |
For games
Event | Trigger when |
---|---|
earn_virtual_currency | a user earns virtual currency (coins, gems, tokens, etc.) |
join_group | a user joins a group to measure the popularity of each group |
level_end | a user completes a level in the game |
level_start | a user starts a new level in the game |
level_up | a user levels-up in the game |
post_score | a user posts their score |
select_content | a user selects content |
spend_virtual_currency | a user spends virtual currency (coins, gems, tokens, etc.) |
tutorial_begin | a user begins a tutorial |
tutorial_complete | a user completes a tutorial |
unlock_achievement | a user unlocks an achievement |
Case: login Event
Suppose I want to track the login in Recommended Events now, what should I do?
You can look at the parameters of this event first. It has a parameter method, which indicates the method used to log in. It can be Facebook, Google, Email, Phone, etc., and replace it according to the actual login method of the user.
Add dataLayer.push code
When the user logs in, the data is sent through dataLayer.push, the sample code is as follows:
gtag("event", "login", { method: "Google" });
Trigger
In GTM, click 「Trigger」——「New」——「Choose a trigger type to begin setup…」——「Custom Event」 name it “Custom Event-Login”, and then set as follows:
The event name is login, which is actually the event in dataLayer.
Variable
In GTM, click「 Variables」——「New」——「Choose a variable type to begin setup…」——「Data Layer Variable」, name it “dlv-method”, and then set as follows:
Where dlv means Data Layer Variable.
Tags
In GTM, click 「Tags」——「New」——「Choose a tag type to begin setup…」——「Google Analytics: GA4 Event」, name it “Event Tracking-Login”, and then do as follows set up:
- Configure Tag:It is the basic GA4‘s tags.
- Event Name: It is the name of the event to be tracked. Here we are tracking the Recommended Eventslogin, so enter login
- Parameter Name: According to Google’s pre-definition, it is recommended that the event parameter of the event login is only method, so enter method, and the value is the data layer variable.
- Triggering: it is the event in dataLayer