Analytics
1.6K members online now
1.6K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

event value session seconds

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

for event value, i want to see the number of seconds into the session that the event was generated. how do i do this in the code?

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Indranil R
October 2016

event value session seconds

[ Edited ]
Follower ✭ ✭ ✭
# 2
Follower ✭ ✭ ✭

If you're using event tracking as a method you would need to somehow start a timer when the session starts and insert that dynamic value into the event tracking. You could use the on click method or the javascript function. 

Event Tracking: https://developers.google.com/analytics/devguides/collection/analyticsjs/events

 

A post on StackOverflow about counting Session time: http://stackoverflow.com/questions/15183661/how-to-use-time-to-count-how-many-seconds-you-logged-in

 

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Indranil R
October 2016

event value session seconds

[ Edited ]
Follower ✭ ✭ ✭
# 2
Follower ✭ ✭ ✭

If you're using event tracking as a method you would need to somehow start a timer when the session starts and insert that dynamic value into the event tracking. You could use the on click method or the javascript function. 

Event Tracking: https://developers.google.com/analytics/devguides/collection/analyticsjs/events

 

A post on StackOverflow about counting Session time: http://stackoverflow.com/questions/15183661/how-to-use-time-to-count-how-many-seconds-you-logged-in