Search code examples
google-analyticsgoogle-analytics-api

Analytics Api how to get the time the event occurred?


is there a way to get the time the event occurred (using analytics api)?

I cannot see it in any of the metrics, or find a way to do it.


Solution

  • You can query ga:datehour and ga:minute to save on dimensions since a single API request is limited to 7 dimensions. So, you will only be missing the second of the occurence