Skip to main content
RajalakshmiMathiazhagan
June 10, 2025
Solved

Time Difference between two events in CJA

Hi,

I would like to determine the duration between a user viewing the product section and subsequently clicking on the product card, assuming that both the product section viewed event and the product card click event are being captured. The objective is to calculate the time difference between these two events. Could someone kindly advise on how this can be accomplished within CJA?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
bjoern-koth
bjoern-kothAccepted solution
Adobe Employee
June 10, 2025

Hi @rajalakshmimathiazhagan ,

since it's two different events you are talking about, I don't think you can do this with a derived field.
This sounds more like a tag management task to start a timer when the product section is viewed and stop the timer and send the difference together with the product card click event.

Cheers from Switzerland!

4 replies

bjoern-koth
Adobe Employee
bjoern-kothAdobe EmployeeAccepted solution
Adobe Employee
June 10, 2025

Hi @rajalakshmimathiazhagan ,

since it's two different events you are talking about, I don't think you can do this with a derived field.
This sounds more like a tag management task to start a timer when the product section is viewed and stop the timer and send the difference together with the product card click event.

Translate
Cheers from Switzerland!
Rajalakshmi__M
June 12, 2025

Thanks for the suggestion, @bjoern__koth! Will try it out.

Translate
Level 4
June 11, 2025

Hi @rajalakshmimathiazhagan,

 

Have you checked this out? I admit I am not an expert about it, but it might be helpful. 

https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/plugins/gettimebetweenevents

 

Best regards

Filipe

 

Translate
Rajalakshmi__M
June 12, 2025

This approach works for Adobe Analytics but not for CJA. Thanks for pitching in though!

Translate