Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Analytics Coffee Break: On Monday, January 30 at 10am PT, the NOAM User Group led by Jennifer Dungan and Jeff Bloomer will be joining us to answer your Analytics related questions. To register and for more information, follow the link to the right.

How to recreate trackTimedActionStart functionality?

Avatar

Level 1

Hi All,

From the below documentation:

https://developer.adobe.com/client-sdks/documentation/upgrade-platform-sdks/analytics-comparison/

I can see that trackTimedActionStart, trackTimedActionUpdate, trackTimedActionEnd & trackTimedActionExists functionality can be recreated using the Analytics and User Profile extensions.

raman_kumar3_0-1670258332261.png

But I can't figure out how this can be done using Analytics & Profile extension, Any help would be greatly appriciated!

Thank You!

6 Replies

Avatar

Community Advisor

I don't use those plugins myself, but I was just looking.. and while it's not immediately obvious, the "iOS" and "Android" links here:

Jennifer_Dungan_0-1670274802672.png

Are actually clickable and go to a Git Repository showing how to set up the code in your SDK:

https://github.com/Adobe-Marketing-Cloud/mobile-services/blob/master/docs/ios/analytics-main/timed-a...

Looks like you probably need the extensions, but your developers have to do some of the work too (it's not fully done via the extension itself).

Avatar

Level 1

Thanks Jennifer, I tried to clicking on these links but it seems that there are no examples given and code we were using earlier doesn't work now:

var *cData = @{
}
ADB.trackTimedActionEnd('timer:logged in-submission', cData);

Are you aware of any examples or alternatives to achieve this?

Avatar

Community Advisor

Not sure if you removed code from your sample, but right now it looks like your Context Data "cData" has no value?

 

Is this code you have been using for a while that broke with an update, or you are trying to add this to your mobile app for the first time (to match your web implementation)?

Avatar

Level 6

Usually, I just simply ask the developer to manage the timer and calculate the lapse time then send the calculated lapse time in AA tracking.

Interesting to see the suggestion using the Profile extension and Adobe didn't provide any example on how 😅

Just my best guess is using the "updateUserAttribute" function to set the timer name as first parameter and the start time as second parameter for the timed action start. Then when timed action end, use the "retrieveUserAttribute" function with the timer name and calculate the lapse time.

Avatar

Level 1

Thanks Leocwlau!
Just wanted to know if there is any documentation around 'retrieveUserAttribute'?

Also is it possible to share a working example?