Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new

Learn more

View all

Sign in to view all badges

How to avoid "invalid" metric

Level 1
Level 1


In Time spent per visit (seconds) metric, sometimes I get invalid  value on result:

I created a Calculated Metric to avoid this and get zero value in these cases, but I can't find the solution using Adobe functions.

Anyone know any formula type is_invalid?


1 Reply
Level 2
Level 2

Hi Alex,


Invalid value is recorded when user lands on page but don't do any activity like click or something. Adobe records time by calculating time between two events like when user enters page and click on something. 




Time spent per visit = Last hit time - First hit time


if no hits/events generated after user visits the page then adobe would show "invalid" value for such cases.


Best way would be to filter out such value when you generate report instead of implementing any custom script.