In Google Analytics, I am able to create a report based off a custom dimension, let's call it Battery Level. In the Google Analytics Spreadsheet Add-on I can create a report with the standard dimensions. However I can't specify my custom dimension in my report. Using the report wizard, or writing the parameters by yourself doesn't allow for selecting any custom dimensions.
This seems at odds with the implementation of the rest of the add-on, which can connect back to your GA account for other customised aspects, such as selecting your custom View (Profile) ID / ids.
How can I do this?
I found my answer here
"...first load the GA Add-On from the Chrome extension gallery, then choose “Create new report” and select your GA view. To access custom dimensions (or metrics), you will need to select “Custom Dimension XX”, and change the XX later. When you click “Create Report” you’ll see the “Report configuration” tab."
and...
"Edit your report configuration by changing the XX in “ga:dimensionXX” to the actual dimension index number, as in “ga:dimension5”. To find your custom dimension index numbers, go to the GA admin panel and look under Property Settings > Custom Definitions > Custom Dimensions."
Related
I have added Google Tag Manager to our site, and using the data layer inserted several custom dimensions, including 'user_id'
Data Layer with user_id shown
The Google Analytics variable in Tag Manager is configured to pass these data layer variables into the coresponding dimensions:
Tag Manager Variable & Dimensions in Analytics
I know this is working as I am able to add this as a secondary dimension in Analytics when viewing reports:
Analytics with Dimension Shown
However, the user view that is created when I have set up the User-Id isnt showing anything:
Creating the User View
We installed Tag Manager using the recommended steps:
Installation of Tag Manager
Do we also need to add the 'Global Site Tag Tracking Code'?
How to Implement the User-ID in your tracking code
If not, what am I doing wrong?
You're actually REALLY close. You actually don't need to create the custom dimension.
The correct way is to set the userId field in your GA tag (I did it through a GA variable so it is applied everywhere).
Yes, that is exactly correct (what #XTOTHEL answered above), but for those who are reading this, I found these two blog posts helpful (esp if you are using GTM):
GA UA: https://www.analyticsmania.com/post/google-analytics-user-id-with-google-tag-manager/
GA4: https://www.analyticsmania.com/post/google-analytics-4-user-id/
And of course, the GA docs: https://support.google.com/tagmanager/answer/4565987?hl=en
I am not sure of the best way to handle this, however I am sure it is possible to implement with Google Analytics.
I currently have 1 Google Analytics account with all the data.
I would like to create 3 additional "views" within Google Analytics to filter each part of my app accordingly.
The sections are:
the landing pages landing (sales pitch)
the application pages app (the product we offer)
the customer portal pages portal (the product we offer to our user which thier users view).
So dimensions/views (unsure of the terminology here) are;
landing app and portal.
Currently I am using code like the following;
function gtag() {
dataLayer.push(arguments)
}
window.dataLayer = window.dataLayer || [], gtag("js", new Date), gtag("config", "UA-XXXXXXXXX-1", {
custom_map: {
dimension1: "website_segment"
},
website_segment: "landing"
});
I was then expecting to see these values in;
View > Filters > Custom
However they don't exist.
Please note:
I do not wish to utilize separate GA accounts to achieve this.
I cannot utilize the URL scheme with regex to achieve this.
Custom Dimensions should be available in your list of fields when you're setting up a filter for your GA view.
It looks like you're sending info to GA with the code you provided, but have you defined the Custom Dimension in your GA settings? You'll need to do that as a first step.
Access Property > Custom Definitions > Custom Dimensions, add a custom dimension, and set the scope (you'll want a Hit scope for your use case). Then ensure your code is configured to send to the dimension you just created.
See https://support.google.com/analytics/answer/2709828#Lifecycle for an overview of Custom Dimensions - though it looks like the code snippets there are out-of-date, depending on which version of GA you're using.
As far as I understand your need, it absolutely seems feasible. You collect your data in one Analytics property, and you would like to create separate views for various site content, where content is identified by a custom dimension, instead of the page path.
First, make sure, you have enabled custom dimension 1 in your property settings. As you are collecting this data on hit level, you need to set the custom dimension to hit level as well.
Second, you need to deploy your code to send this data to Google Analytics. I assume, you can substitute the proper value (landing/app/portal) for the website_segment key. Please let me know, if this is also part of your question, how to assign the proper value to the defined custom dimension.
To check if data is sent, you can use Google Analytics Debugger Chrome extension, or you can inspect the call to www.google-analytics.com in developer console / Network tab, whether cd1 parameter is set.
To verify if data is available in Google Analytics, the easiest way is to open the Behavior / Content / All pages report, and to add your custom dimension as a secondary dimension for a period, which should already contain data.
Third, you need to create your new views and your filters within Google Analytics. Please note, that you won't see any available values here, but you can still select your custom dimension, and define a filter.
I created 3 custom dimensions through Google Tag Manager (added them as Data Layer Variables). Then, I added custom fields to my pages for these 3 custom dimensions.
After waiting about 24 hours, I checked the three custom dimensions on Google Analytics and two of them have showed up for all of the pages. The last one is showing up for maybe 4-5 pages, but not all of them. It's now been more than two days and the other pages still haven't populated with the last custom dimension.
Is there a quicker way to see if this third custom dimension is showing up for all of the pages with the designated custom field?
Since this is being done on a test site, most pages have not been visited a ton. Not sure if this can also matter for how long it takes Google Analytics to populate the data.
Get the chrome extension 'GA debugger' and go yourself to the site. On the console you ll see each hit sent to GA and all the fields that are being populated.
PS: Custom dimensions ll show up as 'cdX' where X is the number of the dimension.
I think you are passing the custom dimensions along with pageveiw. you can check the GA tags that are firing in network tab of your browser only to validate
In your browser access inspect element by right cliking on website and select network tab you can check the screenshot mentioned in the below URL to make all setting required to see GA tags in network tab
http://imarunkumar.blogspot.in/2016/08/blog-post.html
And then reload the page and you can see the Google analytics tags firing, check your tags if custom dimensions are being sent in the tags.
I hope you have provided the right custom dimension index number in GTM while creating the tags. Assume you are sending data to custom dimension 1,2,3 the in tag you can see the values sent.
cd1:xxxxxx
cd2:xxxxxx
cd3:xxxxxx
This confirms that Custom dimension tags are being captured on the page and sent through GA tags to Google analytics.
What if you can see these custom dimension beign sent through the tags but you cannot see the same in reports.
Here the custom dimension configuration you did on the analytics property needs to be reviewed.
As you are collecting all the custom dimension at every page the scope for these custom dimensions should be set at "HIT" level.
Let me know if you are facing any issue in checking them according to the instructions provided above.
I've been working with Google analytics since now, and as a part of the new update, I need to implement everything using Google Tag Manager. How do I use my custom dimensions and metrics of Ga in GTM? How's Data layer connected with GA's dimensions and Metrics? I'm very new to this tools, so please pardon me for any mistakes in the question and feel free to edit it. I'm confused with the other sources in Google and other documentations regarding these topics.
Create a Universal Analytics tag, click the "enable overriding settings in this tag" checkbox, go to more settings, custom dimensions, click the "add custom dimension" button, enter in the left field the numeric index as obtained via the GA property settings and in the right field your value/variable. Similar for metrics.
I am using google tag manager to fire tags for my website, I created custom javascript variable which returns count of my jstree selection (i.e how many users selected how many items) and i placed a trigger on this count, just wanna know if there is any way that i can see this count on my google analytics page so as to analyse how many users are selecting how many items?
Found answer myself, Hope it will help others too.
To show count of any custom variable that you created on your google tag manager on your Google Analytics page is possible by creating custom dimensions on Google Analytics. Steps for doing this are below :-
Go to your google Analytics account, open admin section.
-Then go under property-->custom definations and select custom dimensions
click on new custom dimension add name and select scope "session" and click on create (Note :- please note your dimension index).
Go to google tag manager, Create a new tag, click on more settings under "configure tag" and add custom dimension, place index number and dimension value(custom variable that you created) here.
set your firing rule and save it.
Now, you can see it under report by setting secondary dimensions as custom dimensions. Also if you want to further analysis on this data you can also use Biq Query plugin for GA.
You are ready to go!!