{"action":"created","issue":{"url":"https://api.github.com/repos/piwik/piwik/issues/2041","labels_url":"https://api.github.com/repos/piwik/piwik/issues/2041/labels{/name}","comments_url":"https://api.github.com/repos/piwik/piwik/issues/2041/comments","events_url":"https://api.github.com/repos/piwik/piwik/issues/2041/events","html_url":"https://github.com/piwik/piwik/issues/2041","id":37352383,"number":2041,"title":"Support Ping requests to report a better 'time on page'","user":{"login":"mattab","id":466765,"avatar_url":"https://avatars.githubusercontent.com/u/466765?v=3","gravatar_id":"","url":"https://api.github.com/users/mattab","html_url":"https://github.com/mattab","followers_url":"https://api.github.com/users/mattab/followers","following_url":"https://api.github.com/users/mattab/following{/other_user}","gists_url":"https://api.github.com/users/mattab/gists{/gist_id}","starred_url":"https://api.github.com/users/mattab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattab/subscriptions","organizations_url":"https://api.github.com/users/mattab/orgs","repos_url":"https://api.github.com/users/mattab/repos","events_url":"https://api.github.com/users/mattab/events{/privacy}","received_events_url":"https://api.github.com/users/mattab/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/piwik/piwik/labels/Enhancement","name":"Enhancement","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/piwik/piwik/milestones/79","html_url":"https://github.com/piwik/piwik/milestones/Piwik%202.14.0","labels_url":"https://api.github.com/repos/piwik/piwik/milestones/79/labels","id":1005076,"number":79,"title":"Piwik 2.14.0","description":"","creator":{"login":"mattab","id":466765,"avatar_url":"https://avatars.githubusercontent.com/u/466765?v=3","gravatar_id":"","url":"https://api.github.com/users/mattab","html_url":"https://github.com/mattab","followers_url":"https://api.github.com/users/mattab/followers","following_url":"https://api.github.com/users/mattab/following{/other_user}","gists_url":"https://api.github.com/users/mattab/gists{/gist_id}","starred_url":"https://api.github.com/users/mattab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattab/subscriptions","organizations_url":"https://api.github.com/users/mattab/orgs","repos_url":"https://api.github.com/users/mattab/repos","events_url":"https://api.github.com/users/mattab/events{/privacy}","received_events_url":"https://api.github.com/users/mattab/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":1,"state":"open","created_at":"2015-03-04T03:03:44Z","updated_at":"2015-04-09T08:03:05Z","due_on":"2015-05-19T12:00:00Z","closed_at":null},"comments":37,"created_at":"2011-01-21T02:50:45Z","updated_at":"2015-04-09T21:11:49Z","closed_at":null,"body":"Currently, the last page view is set with a 'time on page' of zero seconds. \n\nInstead, we could regularly ping the Piwik server with a request that notifies Piwik that the user is still on the website.\n\nThis request should not record new page view, only increase the visit_total_time counter.\n\nAlso, we should only throw this request when the user is actually looking at the page, not doing something else in some other tabs. \n\nThe risk with this feature is that instead of improving the report accuracy, we end up inflating numbers: a lot of users leave pages open in other tabs for hours and don't do anything about it. We should heavily test to ensure we never throw a request on a page where the user didn't interact with recently. Some interactions we can maybe detect: mouse click, mouse move, etc.\n\nOf course, we should not make everything slow by adding handlers on mouse move, etc.\n\nAlso, once this feature is implemented, a new checkbox should be added to the Advanced section in the 'Tracking Code' admin page. Checking it will generate JS code that enables this feature.\n"},"comment":{"url":"https://api.github.com/repos/piwik/piwik/issues/comments/91357176","html_url":"https://github.com/piwik/piwik/issues/2041#issuecomment-91357176","issue_url":"https://api.github.com/repos/piwik/piwik/issues/2041","id":91357176,"user":{"login":"masteranalyze","id":11877546,"avatar_url":"https://avatars.githubusercontent.com/u/11877546?v=3","gravatar_id":"","url":"https://api.github.com/users/masteranalyze","html_url":"https://github.com/masteranalyze","followers_url":"https://api.github.com/users/masteranalyze/followers","following_url":"https://api.github.com/users/masteranalyze/following{/other_user}","gists_url":"https://api.github.com/users/masteranalyze/gists{/gist_id}","starred_url":"https://api.github.com/users/masteranalyze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masteranalyze/subscriptions","organizations_url":"https://api.github.com/users/masteranalyze/orgs","repos_url":"https://api.github.com/users/masteranalyze/repos","events_url":"https://api.github.com/users/masteranalyze/events{/privacy}","received_events_url":"https://api.github.com/users/masteranalyze/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T21:11:49Z","updated_at":"2015-04-09T21:11:49Z","body":"I think the best solution ,is to use : Advanced Content Tracking like with Universal Analytics.\r\nFor reference i think this is the best method,that can simple solve the problem,and be quickly added on next piwik release:\r\nhttp://cutroni.com/blog/2014/02/12/advanced-content-tracking-with-universal-analytics/\r\nOriginal article: http://cutroni.com/blog/2012/02/21/advanced-content-tracking-with-google-analytics-part-1/\r\n\r\nhere’s what we’re going to track:\r\n\r\n    How many people scroll\r\n    When a person starts to scroll\r\n    When a person reaches the end of an article (not the end of the page, but the end of the article or post area)\r\n    When a person reaches the botton of the page (the bottom of the HTML)\r\n    Which website visitors are scanning my articles and which are reading my articles\r\nThink about the value here! We will be able to get an accurate measure of which articles are actually read. We can even see which articles are so engaging that visitors continue through the comments to the botto of the page. Very useful stuff.\r\n\r\nTracking Technique\r\n\r\nAll of the above can be tracked with Event Tracking. The concept is that we will fire events when certain actions happen. Specifically we’re going to fire events based on visitors scrolling down the page.\r\n\r\nFinally :+1: \r\n Increase in the Average Session Duration. Events also increase the Time on Page measurement on exit pages. This may cause an increase in the Average Session Duration metric.\r\n\r\nIncreasing Bounce Rate is not Necessarily a Bad Thing!\r\n\r\nIf a visitor comes to you site, reads a post in-depth, and then leaves, should they really be classified as a bounce? Probably not. With this implementation, your bounce-rate will provide a more accurate measure of engagement and it will solve the real time spend on the website!\r\n\r\nI hardly wait for this implemenation to be alive!"}}