The plugin tracks the user role as a custom dimension for all events.
However, given the fact that the default page view event is fired by Google instead of us, that event will not have the user_role dimension.
So in order for this to work you need to configure a custom event on the plugin’s Events page. It can be a global event that fires on all pages, or you can configure it to fire on particular sections of the site (the free plugin is kind of limited when it comes to triggers, but will do).
Once this event gets fired, you should be able to see data about it and the user_role custom dimension in various ways: https://support.google.com/analytics/answer/14240153?hl=en
Thanks, but Im not quite sure what you mean.
Do I add it in PixelYourSite under the Google Tags section in Events? Like this? https://pasteboard.co/K64uQGk9fiE3.png
But how does it know which user has which user role?
You just need to configure an event, the custom user_role dimension is tracked automatically for all our events. So you don’t need a dedicated parameter for this.
Once the event is fired, there are multiple ways to visualise the data. I think it’s best to create an exploration based on the custom event. Explorations are flexible and allow you to configure all sorts of reports. You probably need to wait a day in order for Google to get enough data and let you configure the Exploration based on it.
ok so I dont touch the Google Tags section right, just the Event Trigger?
Should I set it to Post Type?
If page visits are already tracked I dont understand what Event I need to make.
https://pasteboard.co/m1ZfsWUao6Kr.png
Also Ive made a Free-Form Exploration in GA4 but I cant find the Dimension ‘user_role’ anywhere in the selectable Dimensions.
Is there any documentation for something like this?
If I purchase the pro version can someone help me set this up?
Thanks again
Also does the plugin work with Google Analytics Free Version? Or do I need to have Analytics 360?
I can’t tell you what trigger you need to use.
As I mentioned before, the page view event is fired by Google, not by us. That’s why it doesn’t have the user_role dimension we add to all our events.
Because of this you need to configure an event inside our plugin that will fire anytime a user visits the pages you are interested in. It can be an event that fires on all pages (URL includes “sitename”).
Once the event is fired and enough data gets set to Google (24 hours), you can configure an Exploration based on that event and the user_role dimension. It’s available for any Google Analytics account.
Since this is an interesting topic, I will make a video about how to do it exactly in the next days.
Thats much clearer now, thanks for that. Looking forward to the video, I litterally spent all day going though everything on your YouTube channel!
Cheers
I’m looking forward to the video because I really have no idea how to do this after another few hours trying today.
I set it up like this to fire on all pages from ‘Videos’ Post type:
https://pasteboard.co/NVN4qEqzEYCu.png
But the data never goes through to analytics, I cant find anything about user roles anywhere in custom dimensions.
Do I need to do something with Tag Manager?
On top of Page Visits by User Role, is it possible to filter pages by post-type as well? I see post type is a Global Parameter as well as categories and tags, but again no idea how to access that data.
Thanks again
Brilliant, thanks for that Cristian! Works like a charm now, I had it set up completely the wrong way. I can now make the most of the plugin and will upgrade to Pro as soon as Im ready to start sending Ad traffic to the site. Thanks for making the video!