Time Difference between two events in CJA | Community
Skip to main content
RajalakshmiMathiazhagan
New Participant
June 10, 2025
Solved

Time Difference between two events in CJA

  • June 10, 2025
  • 2 replies
  • 862 views

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?

Best answer by bjoern__koth

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.

2 replies

New Participant
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

 

Rajalakshmi__M
New Participant
June 12, 2025

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

bjoern__koth
bjoern__kothAccepted solution
New Participant
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!
Rajalakshmi__M
New Participant
June 12, 2025

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