I am having trouble with the cohort analysis in a Google Analytics App + Web Property, where we have custom user properties set up for our web and mobile apps.
I would like to see a breakdown of users in the cohort, by one of the custom user properties that my app and website reports to analytics.
My issue is, that if I choose this custom property for the cohort breakdown, and set the inclusion to "first touch", new users from mobile app will not be shown in the breakdown by the property but will be shown in the "not set" row.
Could you guys help, what are we doing wrong?
Related
I have two projects in google analytics.
First project was created in September 2020. This one shows views per page url. Super useful.
Second project was created in December 2020. This one only shows views per page title. I have same page title on all pages hence this doesn't help.
Is there any setting that I missed or has google changed its analytics.
Thanks
When creating a new property, Google now creates a Google Analytics 4 property. This allows you to combine user data from mobile apps with data from your website. By creating a Universal Analytics property everything should be as how it was before.
Delete your current property.
Create a new property and click Show advanced options at step 1 (Property setup).
Enable create a Universal Analytics property.
Enter your website URL and click Create a Universal Analytics property only.
The Google Analytics environments should now match, thus showing views per page URL.
I am new to Google Analytics, and I am using Analytics real time API to get real time data. Now I am trying to get "Top Active Page" section which appears on the "Overview" link in "Real time" menu in "analytic.google.com" site. In that "Top Active Page" section, it shows how many active users are on each page. Which metric and dimension do I use to get active user for each page? The percentage which appears. I can manage as it shows from total active users, and how many percentage of users are on which page.
metrics = "rt:activeUsers"
dimensions = "rt:pagePath"
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).
I have a Drupal website with a few different roles. I can't figure out how to view the breakdown of those roles within Google Analytics.
Here is a screenshot of my GA Module in Drupal;
I want to get page views statistics broken down by a role or if they're just not logged in (that's an "anonymous user", right?!).
But I can't see where this breakdown is available to view in the Google Analytics webpage anywhere.
I am confident that I've got it hooked up correctly as I can see my tracking through different pages on my Drupal site. I just don't know how to break down by Role.
***** EDIT / UPDATE *****
I've done some further reading and it seems you need to do the following;
First go in to Google Analytics and navigate to Admin -> Custom Definitions -> Custom Dimensions. And then click NEW CUSTOM DIMENSION. Call it something like "User Roles".
Then over in Drupal, navigate to Custom Dimensions within the Google Analytics Module and do something like;
That text is small but it says [current-user:roles] - you can see a list of avaible inputs by clicking "Browse available tokens" further down the page. There are dozens of options!
Now I am playing the waiting game and hoping for this to take effect.
EDIT TWO;
Here is proof that the dimension is being set when inspecting the colsole log via Google Analytics Debugger (A Chrome Extenstion which seems really useful).
That's me, but logged out. And I get "Super Administrator" when logged in.
I seem to have solved this. So as well as the screen shots and information above this is basically the steps to get Google Analytics working with User Roles on Drupal.
Once you've installed the Google Analytics Module on Drupal, make sure you go to "Roles" and select all user types
Go to Google Analytics and navigate to Admin -> Custom Definitions -> Custom Dimensions. Click "NEW CUSTOM DIMENSION" and add a custom dimension called "User Roles".
Back in Drupal, navigate to Custom Dimensions within the Google Analytics Module and add "[current-user:roles]" to the Value field for the "1" index number key (see OP for more info)
In Google Analytics, navigate to Behaviour -> Site Content -> All Pages and where is says "Secondary Dimension" (with a dropdown), select the dropdown, select Custom Dimensions from the dropdown, and select User Roles (if it's not there, this hasn't worked for you for some reason). But that should load the screen something like;
Hope this helps.
According to the Google Analytics "Creating a Report" guide, a required field for a request is the viewId:
A valid view ID for the viewId field.
Cool. So what is a viewId and where do I find it? I click on the viewId link and it says:
Unique View Id for retrieving Analytics data.
Umm. Ok. But what is it, and how do I find it for the report I want? It doesn't appear to be the same as "property ID". Come on Google, we need a little more to work with here.
Following below steps to get View ID.
Sign in to Google Analytics.
Click Admin, and navigate to View.
In the VIEW column, click View Settings.
View ID places in Basic Settings
A property is where the data is collected (so hits to a property count toward your hit quota for that account). A view is where you look at the data, it displayed hits from the property. Hits displayed in view do not count towards your quota.
Use cases are that you can include/exclude/change the data in views by filters, and set different permissions for views (e.g. different departments should have access only to tracking for certain sub-directories, stuff like that). You can create up to 25 views with different settings per property.
You find the view id when you go to the admin section and look at the outer right column (which is labelled "views"). Select the view you want to query from the dropdown and go to "view settings", there you find the id. Or visit the query explorer while you are logged in to Google and select the view from the dropdown, this will also show the view id (and you can start testing queries right away).
This document describes the Google Analytics account structure, and should answer your question as to what a view is:
https://support.google.com/analytics/answer/1009618
If you're even unsure of what ID to use with a particular GA API, you can use the account explorer to find out:
https://ga-dev-tools.appspot.com/account-explorer/
Only Universal Analytics property have VIEWID, GA4 has not.