{"action":"created","issue":{"url":"https://api.github.com/repos/piwik/piwik/issues/7027","labels_url":"https://api.github.com/repos/piwik/piwik/issues/7027/labels{/name}","comments_url":"https://api.github.com/repos/piwik/piwik/issues/7027/comments","events_url":"https://api.github.com/repos/piwik/piwik/issues/7027/events","html_url":"https://github.com/piwik/piwik/issues/7027","id":54407908,"number":7027,"title":"trackPageView with a parameter forces avg_time_on_page to 1s","user":{"login":"ondc","id":4745752,"avatar_url":"https://avatars.githubusercontent.com/u/4745752?v=3","gravatar_id":"","url":"https://api.github.com/users/ondc","html_url":"https://github.com/ondc","followers_url":"https://api.github.com/users/ondc/followers","following_url":"https://api.github.com/users/ondc/following{/other_user}","gists_url":"https://api.github.com/users/ondc/gists{/gist_id}","starred_url":"https://api.github.com/users/ondc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ondc/subscriptions","organizations_url":"https://api.github.com/users/ondc/orgs","repos_url":"https://api.github.com/users/ondc/repos","events_url":"https://api.github.com/users/ondc/events{/privacy}","received_events_url":"https://api.github.com/users/ondc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/piwik/piwik/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/piwik/piwik/labels/worksforme","name":"worksforme","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-15T03:15:03Z","updated_at":"2015-02-19T07:50:18Z","closed_at":"2015-02-19T03:35:46Z","body":"See http://stackoverflow.com/questions/27899717/piwik-trackpageview-2-different-results\r\n\r\nThere are 2 different result on the `trackPageView` function. The difference occurs when using a variable in the callback.\r\n\r\n```javascript\r\n_paq.push(['trackPageView','Variable']);\r\n```\r\n\r\nThe variable `avg_time_on_page` is always 1 sec.\r\n\r\n```javascript\r\n_paq.push(['trackPageView']);\r\n```\r\n\r\nWithout arguments the `avg_time_on_page` value is correct."},"comment":{"url":"https://api.github.com/repos/piwik/piwik/issues/comments/75010760","html_url":"https://github.com/piwik/piwik/issues/7027#issuecomment-75010760","issue_url":"https://api.github.com/repos/piwik/piwik/issues/7027","id":75010760,"user":{"login":"bglxx","id":8326945,"avatar_url":"https://avatars.githubusercontent.com/u/8326945?v=3","gravatar_id":"","url":"https://api.github.com/users/bglxx","html_url":"https://github.com/bglxx","followers_url":"https://api.github.com/users/bglxx/followers","following_url":"https://api.github.com/users/bglxx/following{/other_user}","gists_url":"https://api.github.com/users/bglxx/gists{/gist_id}","starred_url":"https://api.github.com/users/bglxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bglxx/subscriptions","organizations_url":"https://api.github.com/users/bglxx/orgs","repos_url":"https://api.github.com/users/bglxx/repos","events_url":"https://api.github.com/users/bglxx/events{/privacy}","received_events_url":"https://api.github.com/users/bglxx/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T07:50:18Z","updated_at":"2015-02-19T07:50:18Z","body":"after update to 2.11.0 we have the same problem:\n\non dashboard all avg_time_on_page is 2 sec back to start of project in 2013\n\nwhen you are clicking on \"Visitors\" you will see in the lower part \"Report\"\nthe small graph \"2 mis 15s average visit duration\" and when you clicking on\nthat graph, you will see the \"Evolution over the period\" in the upper part\n- but now with all visits at 2 sec since project start\n\n2015-02-19 4:35 GMT+01:00 Matthieu Aubry <notifications@github.com>:\n\n> @mnapoli <https://github.com/mnapoli> could you reproduce this issue?\n> because i couldn't...\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/piwik/piwik/issues/7027#issuecomment-74994302>.\n>\n"}}