All Pages in Google Analytics GA4 - google-analytics

Is there a GA4 analog to Google Analytics the UA
"Behavior -> Site Content -> All Pages"
feature? Thank you.

A similar report in GA4 would be the Events report filtered to the page_view event. This can be accessed by navigating to Reports > Engagement > Events then clicking on the page_view event. The User Engagement summary card will display the page title, % of total page views and avg time metrics. The user interface for the built-in reports are setup as referred to as summary cards.
Alternatively, you can create an exploration report in the Explore tab that includes the following dimensions and metrics.
Dimensions
Page title
Page path
Page location
Metrics
Views
Users
Sessions

Fist off, you need to create a Data Stream in Google Analytics. you need the measurement Id of your created stream. plus, the gtag.js code which should be copied and pasted immediately after the tag in your website. you can follow this link for instructions.
In addition, create an Account and Container in GTM. Follow this link
Install Google Tag Manager to install GTM on your webpage.
Next, a GA4 configuration tag should be created which have to be triggered for all pages:
In Tag Manager Open “Tags” tab => “New” => click on “Tag Configuration” => select “Google Analytics: GA4 Configuration”.
Adding tag assistant plugin, you can test your changes usingpreview button on top right of your GTM container. If you are satisfied with the result submit and publish the changes.

Related

Gaq push events not showing in GA4

We are using a custom tracking code to track events in UA, which was fine until now, but as there is a deadline to move all the events in GA4, I have already integrated the GA4 to the website, but I couldn't see those events there. Following is an example of an event I use.
_gaq.push(['_trackEvent', 'EventCategory', 'EventAction', 'EventLabel']);
Homepage=Category , PretSmallBanJan2023Stars = Event name , Banner= Event label
e.g. - _gaq.push(['_trackEvent', 'HomePage', 'PretSmallBanJan2023Stars-CH', 'Banner']);
There are over 15k events like this that are on the current setup which I have to move before July, so if there is any way to keep the same setup and see data in GA4 it will be greatly appreciated.
Kind Regards
You have to consider that in GA4 there are no more Category, Action and Label.
Follow This Link to move to GA4. Remember that there have been some major differences, as an example look at this Comparing metrics: Google Analytics 4 vs Universal Analytics.
In order to define a Custom Event in GA4 follow GA4 Custom Events
In order to define custom events you can use two methods:
1 - GTAG
2- DataLayer
I believe it would be easier if you use the first one or gtag.js API to send info or events to Google Analytic API. However, it is subjected to change(so you might be obligated to change something or update something on and off when Google decides).
1 - GTAG
As it is described in this link Set Up an Event for Website Apps for GTAG,
Before you begin:
Create a Google Analytics 4 account and property Create a web data
stream for your website Place the Google tag on your website It also
assumes that you have the following:
Access to your website source code The Editor role to the Google
Analytics account
To send events to Google Analytics this API has one function called gtag(), and whenever you want to send an event to Google Analytics, you use the following syntax:
gtag('event', '<event_name>', {
<event_parameters>
});
Finally, if you need the same metrics Category, Action and Label I suggest you to create Custom Dimensions for these three. So if you have an old-defined table in your Database, it is not going to change the fields or create loads to the developers. The documentation for creating Custom Dimensions and Metrics is here. Remember that it takes 48 hours for GA4 API to recognise your custom dimensions. There are some limitations as well that you can read at the link above.
2- DataLayer
In this method, you need to work with GTM or Google Tag Manager, as well.
To read more, you can follow this link GTM.

How to get a Google Tag Manager data layer value to show up in a test Google Ads account?

I have a test Google Ads account and a Google Tag Manager account. I have set up my conversion tracker in the test Google Ads account and I have deployed it to my site using Google Tag Manager.
What I am trying to do now is simulate an ad click so that the data layer value on my purchase success page shows up in a report in my test Google ads account.
Here are my conversion tracker settings in the test Google Ads account:
Conversion name: myname
Category: Purchase/Sale
Value: Use different values. If there's no value, use $1.
Source: Website
Count: Every conversion
Conversion window: 1 week
View-through window: 1 day
Include in "Conversions": Yes
Attribution model: Last click
In Google Tag Manager I have setup a Google Ads Conversion Tracking tag and input the Conversion ID and Conversion Label from the test Google Ads conversion tracker - the trigger for this is set to fire on all pages. In Google Tag Manager I have also set up a Conversion Linker tag which is set to fire on all pages. And in Google Tag Manager under Variables > User-Defined Variables I have created a variable name called order_value.
I put the Google Tag Manager JavaScript on all my pages and on the purchase success page I put this above the Google Tag Manager JavaScript:
<script>
dataLayer = [{
'order_value': 131.77
}];
</script>
If I turn on Preview/debugging in Google Tag Manager I see all the expected tags and data layer values in the debug pane on my site.
Now what I am trying to do is simulate an ad click so that when I complete a purchase the data layer order_value will show up somewhere in my test Google Ads account.
I have tried going to:
mysite.com?gclid=test
in order to simulate an ad click. But when I purchase after that nothing shows in my test Google ads account(no conversion nor the data layer order_value). To clarify I specify the gclid on my home page and then I have to navigate to several other pages(cart, checkout, etc.) before I arrive at the purchase success page(which has the data layer order_value variable).
How can I get the order_value to show up in my test Google ads account when I purchase? Do you see any obvious issues with my setup? How would you approach figuring this out? Should I try something simpler first? The test Google Ads account and the Google Tag Manager account have a different primary email address - would that matter?
You will action this from within Tag Manager.
Step 1: Create a User-Defined Variable
Step 2: Pass that variable to Google Ads via the conversion tag setup.
Regards to your test conversions not appearing in Google Ads - please make sure that your conversion pixel is correctly firing on your conversion/thank-you page.
If it is, then I think the issue may lay with the fact that you aren't testing a real Google Ads served click, and thus Google Ads conversions is truly zero.

View dataLayer's data in Google Analytics by event

I do not understand how to catch data from an event in google analytics.
I watch my event
My dataLayer is like the documentation (https://developers.google.com/tag-manager/enhanced-ecommerce#cart)
My question is : How can i see that (product's data and actionField) in Google Analytics ?
Thanks,
The "step" is visible in the Checkout Behavior report in the E-Commerce-Section of the Conversions-Menu (it's displayed as a funnel step in the visualization and you can give it a proper name in the view settings).
Checkout options can be displayed as secondary dimensions, used in segments, custom reports and via the API (they are not part of the standard reports).

GA enhanced e-commerce not tracking events through tagmanager

We have a GA enhanced e-commerce set up on our e-commerce, and it's working fine. Now, we want to use tagmanager because we are using many other tags like mousestats, criteo, etc.
I had set up an UA tag in tagmanager with "Page View" trigger and with: "Enable Enhanced Ecommerce Features", "Use data layer" and "Enable Display Advertising Features" enabled.
It was tracking user access but was not tracking "add to cart", "purchase", "product details", etc. I think it's not tracking because all those events are ajax requests, so it happens after a "page view".
Everything seems to be working fine with "preview mode", i can see all events (e.g: add to cart) there, and all scripts are following the https://developers.google.com/tag-manager/enhanced-ecommerce. But no e-commerce results appears at analytics.
Should i create an UA event trigger for each of those events? or are we doing something wrong? I thought that if we used datalayer it would automatically track all events.
Thanks in advance.
Yes, to capture any information after the pageview has loaded (either actions like add to cart, or Ajax) you will be required to send an event with the Enhanced Ecommerce data.
In the link you provided, there are sections after each of the required tags named "See the Tag Configuration for this Example". https://developers.google.com/tag-manager/enhanced-ecommerce
If you click on this, it will provide the basic information for the required tags, e.g. add to cart events.
As for ajax (which I assume is for loading your product details) you might need to send additional events when the Enhanced Ecommerce data is available.

Event tracking from Google Analytics not working

I'm trying to use google analytics to track custom events, but when I try to hit the page:
http://www.google-analytics.com/collect?v=1&tid=UA-myUA&cid=1111&t=event&ec=Movement&ea=livingRoom&el=desk
It opens the page like collecting, but in my analytics account, it doesnt show any event....
You'll want to track Google Analytics events using Google Analytics event tracking - https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
You can implement event tracking using Google Tag Manager where you can create you custom events. The procedure is easy to implement than traditional Java Script code as it does not require developer to implement GTM.
Simply follow the below steps for GTM implementation:
1. Log into Google Tag Manager
2. Select “Tags” from the left-hand side
3. Create a new tag
4. Select Universal Analytics from Tag Type
5. Set your Google Analytics Tracking ID
6. Choose “Event” for the track type
7. Set your Event Category, Action, Label and Value as desired*
8. Set your triggers as required
You can refer Google Guidelines for detailed information.

Resources