Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm trying to figure out how to create a view that will allow me to sort my custom dimension based on Page View count. If you take a look at the settings you have to set up in GA, you will notices you have to relate a custom deminsion or metric with a specific entity. http://take.ms/TyCmb
With that said, is there any functionality of this sort built into google analytics reports? I'm having a hard time with a view like this returning 0 results
Comment | File | Size | Author |
---|---|---|---|
#2 | Page view count (Google Analytics).png | 100.76 KB | Plazik |
Comments
Comment #2
Plazik CreditAttribution: Plazik as a volunteer commentedHi Allan Chappell.
You have to add "Pageviews" to the Fields too (see Drupal dblog for errors).
Comment #3
generalredneckOk I get it now... this literally uses google analytics API and not pulling from a cached version in a table in the database like I assumed. This does present a couple of kinks in my thoughts of how I would use the reports for displaying "Trending" nodes. My assumption was that ensure_my_table() should have been called and thus if I added something as a sort handler, it would make sure and pull in pageviews as well... Hope you follow my train of thinking.
Looks like what I have to do now is use the view (or craft a GA call) to get the Nids from my custom dimension and write some logic to display a node display.
Thanks for the help!