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.
Related
I've inherited some websites. In Google Analytics, some have filters attached to them as a view - which is filtering out all traffic. How do I delete these?! In Admin > View > Filters, there is no delete button. When I try to change the filter, there's no save button, but if I navigate away from the page, an alert pops up saying "Your changes have not been saved". How on earth do I alter the view? Thanks
Google analytics has two permissions levels which are;
1. Edit Permissions at account level
2. Edit permission at view level
From your statement, it is clear you have been given the 'edit permissions at account' level since you dont have the options to delete at views level. This is due to the fact that you inherited the account and the main admin hasn't given you that authorizations yet.
Kindly find more information from this link below;
https://support.google.com/analytics/answer/1034823#Permissions
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."
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!!
It seems that after Analytics got their latest face-lift the AdSense / Analytics connection got a bit left behind.
According to the documentation I need to add the AdSense Analytics code to my page. I already have the regular Analytics code and it's working fine. According to Google help the code should be in the Edit AdSense linking settings link at the top of your account's Overview page. But it isn't. There isn't even an Analytics Settings link in the upper corner, just Settings and that takes you to Edit User Settings.
This is how my Admin panel looks:
Has anyone been able to find it? Where is it? (It's not under Tracking Code)
The adsense code for non-primary domains you can find in analytics. Click in adsense on link domains. Click Admin in the right corner. Click on the account. Click on data sources. Click on the adsense tab. There is the codesnippet for the secondary domain.
I'm having the same issue...
here's what I found out so far:
in Analytics, go to Account Home (this is the list with all your domains and profiles in GA)
from this view, click on "Admin" in the top right corner. (This is a different admin from what you get from inside an account!)
select your primary domain/account
select "data sources"
right below the first menu with Properties, Users, Filters, Data Sources, Account Settings, there is a second menu line with 2 items: Adwords and Adsense. Select AdSense
you should see a list of domains you can get code snippets for
I'm trying to get Google Analytics to track the specific link in the page that was used by the users to get to a specific location.
Say I have links poing to the contact page from the main menu, the page's contents and the footer.
Looking at what other websites are doing, I've added references inside GET parameters for each of the links like so: http://www.example.com/contact?ref=menu , http://www.example.com/contact?ref=content and http://www.example.com/contact?ref=footer . I've also added the ref parameter to the ignore list inside Google Analytics so the three URLs are not tracked as separate pages.
My question now is: How sould I go about tracking which one was used to get to the contact page?
Although the post is a bit old, for others like me finding this via search, here is the solution. Enhanced Link Attribution in Google Analytics.
http://support.google.com/analytics/bin/answer.py?hl=en&answer=2558867
Sounds like you are already tracking them with the URL param.
If Google Analytics is successfully tracking them as separate pageviews with the ref= URL param, then you could create a custom report in GA that shows the number of pageviews. The custom report can be added to your dashboard for quick reference.
The custom report can be set up like this:
Metric groups: pageviews
Dimension drilldowns: page
Filters: include -> Page -> regex -> /contact\?ref=(content|menu|footer)
Or, for each click, add the following to each link:
Contact
Contact
Repeat for each link. This is no more work than adding a ref= to each link.