TimedTrackActions

chads2863919

08-03-2019

Hello - To report on time spent between two events on iOS, I implemented trackTimedActions. I used the metrics "Action Time In App" and "Action Time Total" but having trouble understanding the difference between the two metrics. Any help would be appreciated!

Accepted Solutions (1)

Accepted Solutions (1)

Asheesh_P

MVP

12-03-2019

Timed actions measure the in-app time and total time between the start and the end of an action.  The SDK calculates the amount of time in each session and the total time across sessions that it will take for the action to be completed.

Metric Definition by Adobe

"Action Time In App" - Total # of seconds between start and end (clock time)

"Action Time Total" - Total # of seconds in the app between start and end (cross sessions)

Ex.1:

user launch app and add a product to cart.

on the first cart add, you call following

Analytics.trackTimedActionStart("TimeUntilPurchase", cdata);a);)

user purchase in the same session.

on the purchase, you call following

Analytics.trackTimedActionEnd("TimeUntilPurchase", cdata);

Let's say time tracked in between trackTimedActionStart and trackTimedActionEnd is 180 seconds.

Metric Report:

"Action Time In App" - 180

"Action Time Total" - 180

Ex.2:

user launch app and add a product to cart.

on the first cart add, you call following

Analytics.trackTimedActionStart("TimeUntilPurchase", cdata);a);)

user doesn't make a purchase.

user session expired after 300 seconds  (in app time)

user launch app again after 2800 seconds. (not in app time)

user make purchase after 200 seconds (in app time)

on the purchase, you call following

Analytics.trackTimedActionEnd("TimeUntilPurchase", cdata);

in this case "Action Time In App" is in app time tracked in between trackTimedActionStart and trackTimedActionEnd is 300+200 = 500 seconds (in app action time), while action time total is 300 (in app time)+2800 (not in app time)+200 (in app time) = 3300 seconds (total action time).

Metric Reports:

"Action Time In App" - 500

"Action Time Total" - 3300

Answers (0)