{"action":"created","issue":{"url":"https://api.github.com/repos/piwik/piwik/issues/7366","labels_url":"https://api.github.com/repos/piwik/piwik/issues/7366/labels{/name}","comments_url":"https://api.github.com/repos/piwik/piwik/issues/7366/comments","events_url":"https://api.github.com/repos/piwik/piwik/issues/7366/events","html_url":"https://github.com/piwik/piwik/issues/7366","id":59900595,"number":7366,"title":"Tracking code could use HTTPS when the Piwik server is configured to force SSL connections","user":{"login":"vis-bp","id":5519588,"avatar_url":"https://avatars.githubusercontent.com/u/5519588?v=3","gravatar_id":"","url":"https://api.github.com/users/vis-bp","html_url":"https://github.com/vis-bp","followers_url":"https://api.github.com/users/vis-bp/followers","following_url":"https://api.github.com/users/vis-bp/following{/other_user}","gists_url":"https://api.github.com/users/vis-bp/gists{/gist_id}","starred_url":"https://api.github.com/users/vis-bp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vis-bp/subscriptions","organizations_url":"https://api.github.com/users/vis-bp/orgs","repos_url":"https://api.github.com/users/vis-bp/repos","events_url":"https://api.github.com/users/vis-bp/events{/privacy}","received_events_url":"https://api.github.com/users/vis-bp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/piwik/piwik/labels/c:%20Security","name":"c: Security","color":"fad8c7"},{"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/40","html_url":"https://github.com/piwik/piwik/milestones/Mid%20term","labels_url":"https://api.github.com/repos/piwik/piwik/milestones/40/labels","id":713718,"number":40,"title":"Mid term","description":"You may expect these tickets to be worked on within 1 or 2 years.\r\n\r\nLearn [how Piwik software is developed and released.](http://developer.piwik.org/guides/core-team-workflow)","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":541,"closed_issues":167,"state":"open","created_at":"2014-06-01T00:00:00Z","updated_at":"2015-05-05T23:25:06Z","due_on":"2017-12-20T11:00:00Z","closed_at":null},"comments":8,"created_at":"2015-03-05T03:38:03Z","updated_at":"2015-05-15T22:38:14Z","closed_at":null,"body":"Dear all, \r\n\r\nI just noted that the auto-generate javascript / image tracking code seems to be incomplete for the server URL. The following code is generated and misses the protocol information (e.g., \"https:\" or http:\"\r\nin front of the URL string (e..g, during the definition of \"u\").\r\n\r\nIs there a reason for this?\r\n\r\n````\r\n<!-- Piwik -->\r\n<script type=\"text/javascript\">\r\n  var _paq = _paq || [];\r\n  _paq.push(['trackPageView']);\r\n  _paq.push(['enableLinkTracking']);\r\n  (function() {\r\n    var u=\"//<url>\";\r\n    _paq.push(['setTrackerUrl', u+'piwik.php']);\r\n    _paq.push(['setSiteId', 1]);\r\n    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];\r\n    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);\r\n  })();\r\n</script>\r\n<noscript><p><img src=\"//<url>?idsite=1\" style=\"border:0;\" alt=\"\" /></p></noscript>\r\n<!-- End Piwik Code -->\r\n````\r\n"},"comment":{"url":"https://api.github.com/repos/piwik/piwik/issues/comments/102541343","html_url":"https://github.com/piwik/piwik/issues/7366#issuecomment-102541343","issue_url":"https://api.github.com/repos/piwik/piwik/issues/7366","id":102541343,"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-05-15T22:38:14Z","updated_at":"2015-05-15T22:38:14Z","body":"in the forums, a user expected `force_ssl` to also force SSL connection to Tracking API on his websites: http://forum.piwik.org/read.php?2,126694"}}