amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Analytics zero "Avg. Time on Page" param

Open illiafilin opened this issue 10 years ago • 4 comments

Is there some issue with amp-analytics? We have 20-85 "pageviews" on some the pages but "avg. time on page" is zero for all 20-85 "pageviews". As you can see on the provided screenshot from our "Google Analytics" account, the other pages have more than 1:00 minute "av. time on page" param. Pages with issue from the screenshot: http://womenosophy.com/reasons-have-older-sister/amp http://womenosophy.com/pros-cons-getting-hair-permed/amp http://womenosophy.com/traits-make-open-minded-people-special/amp http://womenosophy.com/ultimate-signs-man-crazy/amp Screenshot from "Google Analytics": analytics-zerotime-rows

illiafilin avatar Dec 01 '16 08:12 illiafilin

Thanks for filing @dmitrymotorin

How recent are these analytics results?

Just trying to figure out if a recent change I made might have caused this. If you are able to figure when did the 0-time on page started to happen it might help us pinpoint if there's a problem.

Doesn't seem the changes I suspected actually made it into production/canary yet so probably not those.

Assigning to @avimehta - feel free to re-assign to me if you want me to take a look

mkhatib avatar Dec 01 '16 20:12 mkhatib

@mkhatib results from last week.

illiafilin avatar Dec 02 '16 12:12 illiafilin

/to @avimehta

jridgewell avatar Dec 02 '16 19:12 jridgewell

This is a known drawback of Google Analytics. GA's calculations for time on page are a little weird because they use the time between visit to first page and second page to calculate time on page/time on site. This calculation messes up when there is only one page in the visit/session. We are looking at solving this issue but don't have anything to share for now.

avimehta avatar Dec 03 '16 00:12 avimehta