get data for separate pages #4

Closed
shershen08 opened this Issue Jan 21, 2012 · 2 comments

Projects

None yet

2 participants

Is there any methods to get data on page path specified?
according to GA API there could be such methods implemented: http://code.google.com/intl/fr/apis/analytics/docs/gdata/dimsmets/pagetracking.html#ga:pagePath

Owner

Yes, you can get a specific page like this, where $page is your pagePath:
$data = $this->ga_api ->metric('pageviews, uniquePageviews') ->filter('pagePath', '==', $path) ->get_object();

yeah, it works great, thanks

@shershen08 shershen08 closed this Jan 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment