-2

I have google real time data of rolling 30 mins at interval of 5 min. how can i get data of 5 min each, share logic for the same thanks

i have data like 01 05 am.............

10 00 am  20 user(data of 30 mins i.e 9 30 am to 10 00 am)
10 05 am  25 user(data of 30 mins i.e 9 35 am to 10 05 am)
10 10 am  19 user(data of 30 mins i.e 9 45 am to 10 15 am)
10 15 am  26 user(data of 30 mins i.e 9 50 am to 10 20 am)
10 20 am  17 user(data of 30 mins i.e 9 55 am to 10 25 am)

and so on on interval of 5 mins.

now i have figure out user which were there from 10 05 am to 10 10 am i.e of 5 mins but i have data of 30 mins which is refreshed on 5 mins interval.

1 Answers1

0

Answer: The realtime.get method does not accept a start and end date it returns what there is.

The Google Analytics real time api gives you information about the current activity on your website. This data is like all other google analytics data. It is anonymous there is no way of knowing who these users were.

My experience its the data for around the last 15 minutes. I suggest you try adding the rt:minutesAgo dimension in order to see how long ago these users where online.

You need to remember this is a Beta API it is not a full fully functional api.

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449