{"action":"created","issue":{"url":"https://api.github.com/repos/piwik/piwik/issues/8342","labels_url":"https://api.github.com/repos/piwik/piwik/issues/8342/labels{/name}","comments_url":"https://api.github.com/repos/piwik/piwik/issues/8342/comments","events_url":"https://api.github.com/repos/piwik/piwik/issues/8342/events","html_url":"https://github.com/piwik/piwik/issues/8342","id":94740208,"number":8342,"title":"Let me display a \"Cookie opt-out\" panel in their websites tracked by Piwik ","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/c:%20Privacy","name":"c: Privacy","color":"bfe5bf"},{"url":"https://api.github.com/repos/piwik/piwik/labels/Enhancement","name":"Enhancement","color":"bfd4f2"},{"url":"https://api.github.com/repos/piwik/piwik/labels/Major","name":"Major","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/piwik/piwik/milestones/89","html_url":"https://github.com/piwik/piwik/milestones/2.15.1","labels_url":"https://api.github.com/repos/piwik/piwik/milestones/89/labels","id":1257878,"number":89,"title":"2.15.1","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":36,"closed_issues":1,"state":"open","created_at":"2015-08-17T09:20:14Z","updated_at":"2015-10-07T22:55:27Z","due_on":"2015-10-31T11:00:00Z","closed_at":null},"comments":5,"created_at":"2015-07-13T14:56:02Z","updated_at":"2015-10-08T09:52:19Z","closed_at":null,"body":"In our effort to  innovate and bring better [Privacy](http://piwik.org/privacy/) to Piwik users worldwide, we would like to provide an easy to use mechanism for Piwik users to show a \"Cookie opt-out\" panel on their websites. \r\n\r\nBy default, when visitors view a website tracked by Piwik, [tracking cookies](https://piwik.org/faq/general/faq_146/) are set on the visitor browser. It is possible for a Piwik admin to specifically [disable all tracking cookies](https://piwik.org/faq/general/faq_157/), but this would apply to all visitors. The goal of this feature is to let each visitor decide whether they want to opt-out from tracking cookies.\r\n\r\n#### Suggested product changes\r\n\r\n * in Administration > JavaScript tracking code, a Piwik admin could check a box \"Display a panel to let visitors opt-out from Tracking Cookies\"\r\n * when the box is checked, the JavaScript tracking code would add a new call eg. `_paq.push('enableCookieOptOut', 'This site uses cookies. Some of the cookies we use are essential for parts of the site to operate, and some cookies are used to measure how you use this website.', 'I accept cookies from this site', 'Continue');`\r\n  * parameters are: the main panel text, the checkbox label, and button label \r\n  * the text would be translatable by Piwik translators (nice!)\r\n  * if user wants to customise the text they can (when copy pasting)\r\n * when this function `enableCookieOptOut` is called, piwik.js would then display a Cookie opt-out panel in the website. \r\n  * By default, `I accept cookies from this site` is checked (by default, Piwik uses cookie) [x]\r\n  * A visitor can uncheck the box and click `Continue` and then Piwik.js will `disableCookies`\r\n  * the panel could have slightly transparent background (it looks nice)\r\n\r\n#### Example\r\n\r\n![integration platform as a service](https://cloud.githubusercontent.com/assets/466765/8652584/af8b5170-297f-11e5-9dd9-3145601e7578.png)\r\n\r\n(seen on http://elastic.io)\r\n\r\n\r\nWhat are your thoughts?"},"comment":{"url":"https://api.github.com/repos/piwik/piwik/issues/comments/146477770","html_url":"https://github.com/piwik/piwik/issues/8342#issuecomment-146477770","issue_url":"https://api.github.com/repos/piwik/piwik/issues/8342","id":146477770,"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-10-08T09:52:19Z","updated_at":"2015-10-08T09:52:19Z","body":"Examples of cookie consent panels on existing websites below\r\n\r\n# Panel within the page \r\n\r\n![cookie4](https://cloud.githubusercontent.com/assets/466765/10363064/a9e83bc4-6e0e-11e5-81e5-ee45e1abdf1c.png)\r\n\r\n# Bottom\r\n\r\n![cooki3](https://cloud.githubusercontent.com/assets/466765/10363062/a9044a2c-6e0e-11e5-84eb-46b4b7d3ce68.png)\r\n\r\n![cookie2](https://cloud.githubusercontent.com/assets/466765/10363065/a9ec23b0-6e0e-11e5-97ca-f583e387d856.png)\r\n\r\n![cookie1](https://cloud.githubusercontent.com/assets/466765/10363063/a9df0086-6e0e-11e5-9ee5-f08eb0caa6dc.png)\r\n\r\n![cookie5](https://cloud.githubusercontent.com/assets/466765/10363066/a9ec722a-6e0e-11e5-9e29-d00559f19b0e.png)\r\n\r\n"}}