Search code examples
google-analyticssinglepage

google analytics for single page api


how to get the page views for a single page eg:www.domain.com/product/?code=21 is there any api reference for this?

My idea is very similar to goo.gl/examplestring.info (to get the url stats)


Solution

  • You could use the Google Analytics Query Explorer to play around with what you can/cannot get from the api.

    Then just run a query that looks something like this:

    enter image description here

    You can use RegEx too, to get at your page using the =~ operator. More info on operators here.