Skip to main content
RajalakshmiMathiazhagan
Jun 10, 2025 9:20 AM UTC
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
Jun 10, 2025 8:28 PM UTC

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
Jun 10, 2025 8:28 PM UTC

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
Jun 12, 2025 6:46 AM UTC

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

Translate
Level 4
Jun 11, 2025 2:02 AM UTC

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
Jun 12, 2025 6:47 AM UTC

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

Translate