when I select the city in GA its showing "not set" can you please explain why?
(not set) is a placeholder name that Analytics uses when it hasn't received any information for the dimension you have selected. The reasons for (not set) appearing as a dimension value vary according to the report.
Related
I am using the GA4 (Google.Apis.AnalyticsReporting.v4) reporting API to create a dashboard for my company.
I noticed that if you select the following dimension:-
TIME/ga:dateHourMinute,
ADWORDS/ga:adwordsCampaignID
ADWORDS/ga:adwordsAdGroupID
with METRICS:-
ga:impressions,
ga:CPC
ga:adCost no data is returned
BUT if you change the selection to dimensions:-
TIME/ga:date,
ADWORDS/ga:adwordsCampaignID,
ADWORDS/ga:adwordsAdGroupID
with METRICS:-
ga:impressions,
ga:CPC
ga:adCost
data is returned. Does anyone know how to get the first query to return data?
The dimension ga:dateHourMinute is not compatible with the metrics ga:impressions, ga:CPC, and ga:adCost. Google Analytics does not store these metrics broken down by date, hour, and minute. If you send the first query, you will get that the dimensions and metrics are incompatible:
You can visit the dimension & metric explorer to plan a query for compatible dimensions and metrics. If you check the fields ga:adwordsCampaignID, ga:adwordsAdGroupID, ga:impressions, ga:CPC, and ga:adCost, then the dimension ga:dateHourMinute is grayed out to signify incompatibility:
I'm working with Google Analytics and i've come across a (not set) issue with Content Grouping. I changed my URL's in the month of August, and then most of the URL's went into the (not set) Content Grouping, instead of its specific group. Is there anything I can do to have the URL's put back into their correct grouping?
Also, i'm reporting out this data via Data Studio and I was wondering if there was a query/filter that I could use to have it be grouped into the correct content grouping?
The content groupings you have probably was dependent on the URL. You will need to modify your existing content groupings in GA and change the rules so that it matches the new URLs.
As for reporting in DataStudio, you can use CASE functions in a new calculated field. The cases will be the rules for your content groupings. Example:
CASE
WHEN REGEXP_MATCH(page, "(mypagepath1|mypagepath2|mypagepath3)") THEN "Group 1"
WHEN REGEXP_MATCH(page, "(mypagepath4|mypagepath5)" ) THEN "Group 2"
ELSE "No Group"
END
After that you will use the new calculated field in place of the content grouping dimension.
Welcome to StackOverflow. As #Sonali has already implied, you need to take into account the fact that GA is incapable of setting an 'if not set, use default' value on a dimension. If you can see any way of better interpreting the August data you do have, try using the GA plugin in Google Sheets: if you do that, and then use a Sheets formula to manipulate the data, you can then have GDS access the sheet.
I have created the dimension, it's currently my only one so it has index 1. It has session level scope and is active.
I have also created a custom report to see any results I might get from it. All the report does is show the Session metric against my custom dimension. Nothing extra such as filters.
In my code (which until now was unmodified) I have added the following line between the 'create' and 'send' calls:
ga('set', 'dimension1', 'test');
Nothing is appearing in the report, or anywhere else when I use this dimension as a secondary dimension.
I have tried on a second GA property of mine and it also doesn't work there.
What am I doing wrong?
Generally, it takes 1-3 hrs for the dimension data to show in GA UI. But there are ways to check if the hit you sent contains the dimension or not.
On your browser, check the ga requests ( Like in chrome -> Inspect -> Network -> filter by collect). If you have included the dimension correctly, the pageview hit sent must contain cd1 parameter (1 is the index of the dimension). If the hit contains the dimension and value, then wait for few hours and your report will show the data.
You can also use Google Analytics Debigger to check the requests sent to ga by your website page
I want to try content grouping in Google Analytics. I have entered a couple of URLs in "Group Using Rule Definition" in Google Analytics and I have saved it without any error.
But when I try it in "Behavior" flow, its giving me "(not set)". Can anyone help me out how to deal with it? Any help would be greatly appreciated.
Thanks!!
This explanation from Google covers it briefly
But the key point is
(not set) is the collection of pages that are not assigned to any group.
If you assign more content groups you should see a reduction in "(not set)" in reports.
If you are entering full URLs in the Group Using Rule Definition area, then you are creating groups of 1 page each.
A better rule is to use something like "starts with" with a partial url "/foo" to group all pages that start with "/foo", or similar logic.
Each content item is placed in the first group that it matches for. If the last group is called "Other Pages" and set to match anything, it will group all pages not collected higher on the list.
https://support.google.com/analytics/answer/2853563?hl=en
Trying to figure out "how many users logged-in last month?" on my website using Google Analytics' web-interface (or API).
For each request, I'm sending user id's in a custom variable as the value:
_gaq.push(['_setCustomVar', 2, 'user_id', '#{ current_user ? current_user.id : 0 }']);
How can I get the number of unique user id's for all pageviews within a certain time-range?
Create a custom segment[*] that includes only visitors with your custom var set. Apply the segment and the audience overview tab will display your desired numbers.
[*] Advanced segments->create custom segment -> first dropdown to "include", second to "Custom Variable 2", third "Exactly matching" and the textfield gets the value for logged-in visitors
Sadly not possible in Google Analytics.
But you can do this in Google Data Studio. There you can create Dashboards for Google Analytics and create a new calculated field, like: COUNT(User ID)