1

I am trying to find a way to query Google Analytics through the API to get pageviews for the last 30 minutes. Like they have available through the Google Analytics console, but I want to put it in an automated report. Has anyone found a filter that does this?

I have been playing with the Google Analytics Query Explorer - http://ga-dev-tools.appspot.com/explorer/

But I haven't found a way to filter for the last 30 minutes.

0

For data from the last 30 minutes, you have to use the real time reporting API. Google Analytics defines real time as 30 minutes, so that would exactly match your requirements. The real time API supports querying rt:pageviews which is the specific metric you are looking for.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.