Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

What I'm trying to do is find out how many unique pages of a certain page type were viewed per visit, broken down by traffic source/campaign name

Here's the result I'm after:

Campaign Name   |  *Unique* Pageviews of "Page Type A" per Visit
Campaign1       |                     4.7
Campaign2       |                     3.9
Campaign3       |                     2.6

So far I've tried doing this with:

  • Events (in GA), and also by
  • Creating a "Page Type" hit level Custom Dimension (in UA)

I've tried custom reports and directly querying the API, but no success yet

For the latter (the custom dimension), the problem with the Visits metric I believe is that it only shows visits where the Page Type was the first page viewed (if I understand how GA works in this matter correctly)

With the former (Events), while it sounded promising, "Unique Events" isn't the metric I'm after, since that will just tell me that "one event occurred during this visit"

I think I'm really after "unique event actions" (if I need to go the Events route), since I do have a unique page ID for each unique page that goes into the Event Action...

Perhaps I could pull it all out of GA and put it into a database table where I could perform SQL queries on the data, but I'm really hoping I don't have to do that

Hoping this is just escaping me and/or I'm overthinking the matter

EDIT: Here is a query that I just tried that may work, but I could use a confirmation/explanation:

metrics ga:visits,ga:uniquePageviews
dimensions  ga:campaign
sort    -ga:uniquePageviews
segment dynamic::ga:dimension1==A
share|improve this question
PS - Is there a better SE site to talk about Google Analytics? It is a web app, but I know there is also the webmasters subdomain or stackoverflow.com –  Drewdavid Oct 22 '13 at 18:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.