class DataRealtime extends Resource (View source)

The "realtime" collection of methods.

Typical usage is:

 $analyticsService = new Google\Service\Analytics(...);
 $realtime = $analyticsService->data_realtime;

Methods

get(string $ids, string $metrics, array $optParams = [])

Returns real time data for a view (profile). (realtime.get)

Details

RealtimeData get(string $ids, string $metrics, array $optParams = [])

Returns real time data for a view (profile). (realtime.get)

Parameters

string $ids

Unique table ID for retrieving real time data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.

string $metrics

A comma-separated list of real time metrics. E.g., 'rt:activeUsers'. At least one metric must be specified.

array $optParams

Optional parameters.

Return Value

RealtimeData

Exceptions

Exception