{"action":"created","issue":{"url":"https://api.github.com/repos/piwik/piwik/issues/7702","labels_url":"https://api.github.com/repos/piwik/piwik/issues/7702/labels{/name}","comments_url":"https://api.github.com/repos/piwik/piwik/issues/7702/comments","events_url":"https://api.github.com/repos/piwik/piwik/issues/7702/events","html_url":"https://github.com/piwik/piwik/issues/7702","id":69298735,"number":7702,"title":"Server-Side handling of visit-interval, first-visit and previous-visit","user":{"login":"d4rken","id":1439229,"avatar_url":"https://avatars.githubusercontent.com/u/1439229?v=3","gravatar_id":"","url":"https://api.github.com/users/d4rken","html_url":"https://github.com/d4rken","followers_url":"https://api.github.com/users/d4rken/followers","following_url":"https://api.github.com/users/d4rken/following{/other_user}","gists_url":"https://api.github.com/users/d4rken/gists{/gist_id}","starred_url":"https://api.github.com/users/d4rken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d4rken/subscriptions","organizations_url":"https://api.github.com/users/d4rken/orgs","repos_url":"https://api.github.com/users/d4rken/repos","events_url":"https://api.github.com/users/d4rken/events{/privacy}","received_events_url":"https://api.github.com/users/d4rken/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-18T11:11:09Z","updated_at":"2015-04-20T00:16:49Z","closed_at":"2015-04-20T00:16:49Z","body":"> http://developer.piwik.org/api-reference/tracking-api\r\n\r\nWhy does the Tracker not autonomously fill in \"_idvc\" (visit count), \"_viewts\" (previous visit) and \"_idts\" (first visit)?\r\n\r\nThe Tracker should have everything necessary to set these values as long as he can uniquely identify the user.\r\n\r\nWas this a performance/scalability decision? Or was the idea to allow tracking of these values if the Tracker could not uniquely identify the user?\r\n\r\nAlso see https://github.com/piwik/piwik-sdk-android/issues/18"},"comment":{"url":"https://api.github.com/repos/piwik/piwik/issues/comments/94327582","html_url":"https://github.com/piwik/piwik/issues/7702#issuecomment-94327582","issue_url":"https://api.github.com/repos/piwik/piwik/issues/7702","id":94327582,"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},"created_at":"2015-04-20T00:16:49Z","updated_at":"2015-04-20T00:16:49Z","body":"Hi @d4rken \r\n\r\nIn the Javascript client, _idvc, _viewts and _idts are stored in the first party cookie in the visitor browser.\r\n\r\nPiwik has the data internally to process the values for those attributes, but technically Piwik cannot process those values in a performance efficient manner (You guessed right that it was performance/scalability reason). To process the values Piwik would need to look back in time for the visits by this visitor and look when was the first visit, how many visits there were, etc. this would be too slow and not scale. for performance reasons we expect the parameters to be set by Tracking API clients (when they can do so)\r\n\r\nHope it helps"}}