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

http://take.ms/Dysg5

CommentFileSizeAuthor
#2 Page view count (Google Analytics).png100.76 KBPlazik
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

generalredneck created an issue. See original summary.

Plazik’s picture

Issue summary: View changes
Status: Active » Fixed
FileSize
100.76 KB

Hi Allan Chappell.

You have to add "Pageviews" to the Fields too (see Drupal dblog for errors).

generalredneck’s picture

Ok 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!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.