Mobile app version of vmapp.org
Login or Join
Yeniel560

: Limit pageviews from Google Analytics API to the last 30 minutes I am trying to find a way to query Google Analytics through the API to get pageviews for the last 30 minutes. Like they

@Yeniel560

Posted in: #AnalyticsApi #Api #GoogleAnalytics

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 - ga-dev-tools.appspot.com/explorer/
But I haven't found a way to filter for the last 30 minutes.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Yeniel560

1 Comments

Sorted by latest first Latest Oldest Best

 

@Eichhorn148

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme