Create an Analytics Metric
Timestamp metrics always aggregate events from the current minute because metrics are created for events published in the last minute.
If you have specified a value for the eventTimestamp
field, the timestamp value in the new metric uses an aggregation of events from the pickupTimestamp field.
For example, you set an eventTimestamp
for an event on a previous day. You then create a metric for the event today. The metric does not use your explicit eventTimestamp
because it is no longer from the current minute. The metric aggregates events using pickupTimestamp
. This ensures that the metric timestamp is based on the current minute because pickupTimestamp
cannot be explicitly changed.
See Analytics Events API.