Logic behind time_engaged_with_minutes

Hey all,

What’s the reasoning behind calculating time_engaged_with_minutes here:

? Just wondering the whys of calculating it in that way.

Thanks.

1 Like

Hi @boggs,

This specific implementation assumes a page ping is sent every 30 seconds. It converts the timestamp to a Unix timestamp, then essentially rounds it to the nearest 30, and counts the number of distinct occurrences. So it counts the number of 30-second intervals with at least one event.

Hope this makes sense.

2 Likes