Time between Values being set in a variable | Community
Skip to main content
MKEmark
October 27, 2017
Solved

Time between Values being set in a variable

  • October 27, 2017
  • 1 reply
  • 854 views

How can I track how much time (in seconds) elapses between two events? I would like to look at the time between two different values being set in a variable (separate server call).  We are looking to do something similar to the TimeToComplete Plug-in described here:

https://blogs.adobe.com/digitalmarketing/analytics/plug-ins-inside-omniture-sitecatalyst/

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gigazelle

Your best bet here is going to be using a cookie. Set a cookie with the timestamp when the first event is set, then when the second event fires, call the cookie and set a variable value based on the elapsed time.

  • If you plan to use this as a dimension, you can either use the value in seconds, or use additional logic to put them in buckets.
  • If you plan to use this as a metric, you can increment an event by the number of seconds that have elapsed. Recent appMeasurement libraries allow the format s.events="event1=10".

1 reply

Gigazelle
Adobe Employee
GigazelleAdobe EmployeeAccepted solution
Adobe Employee
November 2, 2017

Your best bet here is going to be using a cookie. Set a cookie with the timestamp when the first event is set, then when the second event fires, call the cookie and set a variable value based on the elapsed time.

  • If you plan to use this as a dimension, you can either use the value in seconds, or use additional logic to put them in buckets.
  • If you plan to use this as a metric, you can increment an event by the number of seconds that have elapsed. Recent appMeasurement libraries allow the format s.events="event1=10".