Google Analytics 4 Event parameters? - google-analytics

When using the dashboard in google analytics real time - whether it's in firebase or just in GA4 - I can keep track of not just the events but also their properties. However, when I want to use the "analysis" tab in GA4 I can no longer search by property. Is there a way to use the dashboard to drill 1 level deeper into the event so I can search by properties instead of just events?

You need to defined custom properties (custom definitions side bar option) before they can be seen in the reports.

Related

What is difference between Page Views and Event type in Google Tag Manager and where "some page views" are stored in Google Analytics?

I am kinda new in this topic and wondering what is the difference between Page Views and Event data type in Google Tag Manager. I would like to create an e-commerce funnel. I have configured tags for every steps in GTM and they work properly in preview mode. But I can't find them in Google Analytics. I've been creating tags with pageview -> some page views tags. Where this type of tags are stored in Google Analytics? Should I change it to event data type? And in which case could we need some pageviews tags otherwise?
GTM and GA are two different systems, that unfortunately use the same words for rather different things.
GTM is a deployment system for Javascript tags. In GTM Parlance, an "event" is something that makes GTM update its internal variables and allows for triggering tags. GTM events manifest themselves as a key with the name "event" in the datalayer (GTM overwrites the "push" method of the datalayer array to detect the "event" key when it is contained in an object that is pushed to the datalayer). A pageview in GTM is just one type of event that happens when the GTM code is first executed. By itself it does not send data anywhere and nothing is stored. Data is sent only by the tags that are configured to be triggered by an event.
GA is a system that records tracking data. Tracking data is sent as "hits", where a hit is a http request with a payload that is formatted according to a certain protocol (the measurement protocol, which can be used in any language that supports http requests, and is also used by the analytics.js library). Hits come in different types (pageview, event, timing, and possibly others). The difference is not so much technical (its all http requests), is that the different hit types are by convention tied to different "dimensions", i.e. descriptive properties of the hit. A "page view" hit has a document location and document title. An "event" in GA has additionally the dimensions "event category", "event action" and "event label". That distinction made sense when GA was created, because back then a "page view" was more or less well defined by browser behaviour, but today with ajax and SPAs and all that it becomes more an more meaningless, which is why GA4, the new version of Google Analytics, now only has one hit type - the event, to which you can add dimensions by way of parameters.
So a page view in GTM maybe configured to send a page view in Google Analytics, but does not have to be; the two things have the same name, but exists independently. If a GTM event is not recorded, then it probably has not GA tag connected to it via a trigger. GTM events by themselves do not store data anywhere.
As for the funnel, in Universal Analytics you would create this by implementing enhanced e-commerce. Enhanced E-Commerce can be implemented both via pageviews or via events (that mostly depends on how your page is structured - if you have a checkout with multiple pages you might want to use page views, if everything happens on one page you would rather use events). The important thing is that the appropriate dimensions and metrics are attached to the hit. In GTM the easiest way to this is to have your developers set up the datalayer structure according to the linked documentation, and then you simply check the "enhanced e-commerce" feature in you GA tag and point it to the e-commerce variable in your datalayer (instructions are in the documentation, if you expand the "See the Tag Configuration for this Example" sections by clicking on them).

Linking Google Optimize Container to Google Analytics 4 Property

I'm trying to setup a Google Optimize Container for A/B testing + other. The issue I'm having is that I definitely need to link to Google Analytics in order to measure results. When I try and link to a Google Analytics property for this only the Universal Analytics properties I have (which I don't actually use) show up, but not the Google Analytics 4 property I'm actually using. Am I doing something wrong? Is the connection not actually implemented yet by Google?
TL;DR: Google Analytics 4 Properties don't show up as linkable in Google Optimize Container.
follow this step:
create a new property in. google analytics
Click on show advance
Activ Create a Universal Analytics property
Add your website address
Create both a Google Analytics 4 and a Universal Analytics property
UPDATE 2021/04/06:
Trying to link it in Google Optimize says Coming Soon. Looks like we just have to wait.
GA4 is not supported. As of right now you can't link a GA4 property to Google Optimize.
GA4 is not on this list https://support.google.com/optimize/answer/6315871?hl=en
This thread: https://support.google.com/optimize/thread/80704065?hl=en
I was able to get around this issue by adding an additional property to my GA4 account. You have the option during the creation process of the GA4 account to provide support for both GA4 and universal analytics. You can also add the support after the fact as well... just go into your admin section of Google Analytics and create a new property. After that, you will be able to connect Google Optimize and your GA4 account.
I believe #Kenneth Durrum was referring to creating a "Universal Analytics property" instead of a GA4 property. You can also create both as mentioned by #mohammad hossin rouhani, but Google Optimize will only work for the Universal property. Please refer tho the image below for selecting the Universal property on Admin console. (Added this as an answer since i was not able to attach the image on Kenneth's comments).
If you create a new Universal Analytics property, you can link it to your existing GA4 property under Admin > GA4 Setup Assistant

Is it possible to create a funnel in Google Analytics, based on JavaScript events taking place on one web page?

We have a complex order form with multiple steps all taking place on one page. From a business analysis point of view we've been given a requirement to be able to visualise the progress of users through this form in Google Analytics as a funnel.
e.g.
Option on step 1 clicked
Option on step 2 clicked
Input on step 3 completed
Checkbox completed
Form submitted
I know we can add various JS events across the form to track the actions that have been taken, but I can't seem to find a way to create a funnel in GA from this. We're using GA with Google Tag Manager.
The goal is to be able to analyse where on this form users are abandoning it, and how long they are spending on the various steps.
Is this possible? My current research suggests that GA couldn't create funnels from events a few years ago, and that it doesn't seem possible still. I don't want to use the method of virtual page views that I have seen floating around, as this comes with too many other negative effects.
If you want a manageable funnel report in Google Analytics, you shouldn't be using events but virtual pageviews. Anyway, if you don't want to use the latter, Google Analytics offers the Events Flow Report (https://support.google.com/analytics/answer/2521316?hl=en&ref_topic=2521315), in which you can see how users activate the different events you have configured, even if it is not strictly what you are looking for.
The alternative is to track these events in Google Analytics and create a funnel with Google Data Studio.

Getting analytics on custom events for Firebase Dynamic Links

Been reading through the Firebase Dynamic Links analytics documentation, and it's clear that the analytics presented in the console will only show three events: clicks, first opens, re-opens. However, I'm not able to tell if retrieving analytics from the API is limited to the same thing. The example shown in the docs only shows those three events too, but doesn't explicitly say that it's limited to them.
Is there any way to get analytics on custom events (for example, a purchase event) for Firebase Dynamic Links?
The three analytics events correspond with the actions you can perform on the dynamic link itself. If the link then leads to a purchase, you'd log that as a separate event from your app itself. The dynamic link won't contain that information, but the new event will of course be associated with the same app instance ID and user ID (if set).

Google Analytics API For getting total clicks and impression on element

I am really new to Google Analytics and I had a requirement of tracking clicks and impressions. I followed following link
http://www.statstory.com/tracking-clicks-and-impressions-in-google-analytics/
and sucessfully implemented the same.
Now my requirement is to get the no.of clicks and no. of impressions
to my html page. I am googled for past quite hours but couldnot find
any luck with the same.
Any help would be highly appreciated.
You should really consider implementing Google Analytics Enhanced E-commerce functionality.
Google Analytics Enhanced E-commerce
In regards to answering your question of the API, you should query it asking for events. Namely category, action and label events and apply a filter to only return the data you wish to receive, such as 'Impressions' as a filter for 'Event Action'. That will return all impressions and if you instead change the filter to use 'Click', you'd get all clicks instead.
If you followed the above guide and made it into Universal, then you'd see the calls you set and it is set up in the following way:
_gaq.push(['_trackEvent', 'Banner', 'Click', 'BANNERNAME',1.00,true]);
This bit of code pushes (legacy version) Analytics data in the form of:
_gaq.push(['_trackEvent', 'Category', 'Action', 'Label',1.00,true]);
So, changing the different sections means you change how you define the data and how it will be visible in reports. Category defines the Event Category, Action defines the Event Action and Label defines the Event Label.
Take a look at the core development guide. Also, here you can see all the API calls available: Dimension & Metrics explorer for Google Analytics
I gather that you want to track impressions for banner advertising that is displayed by yourself (i.e. not through an adserver) in your website.
I agree with Mr Sponge that you should upgrade to Universal Analytics. if you want to implement enhanced e-commerce tracking (EEC) you probably want to read about Measuring internal Promotions, which is a feature specifically build for that kind of reporting.
If you just need the raw number of banner impressions and/or need a solution that's easier to implement (but less capable) you can increment a custom metric every time you banner shows up (this is basically a counter, you might want to use it together with a custom dimension that holds the banner name). Click tracking would still be done by events (with similar custom metrics and dimensions). From that data you can assemble a custom report and use a calculated metric for click through rates etc.
Not as good as EEC by a fair margin but much easier to do.

Resources