{"action":"created","issue":{"url":"https://api.github.com/repos/akvo/akvo-rsr/issues/2486","repository_url":"https://api.github.com/repos/akvo/akvo-rsr","labels_url":"https://api.github.com/repos/akvo/akvo-rsr/issues/2486/labels{/name}","comments_url":"https://api.github.com/repos/akvo/akvo-rsr/issues/2486/comments","events_url":"https://api.github.com/repos/akvo/akvo-rsr/issues/2486/events","html_url":"https://github.com/akvo/akvo-rsr/issues/2486","id":196032803,"number":2486,"title":"Akvoapp pages missing Piwik web analytic ids","user":{"login":"Lynngre","id":2675262,"avatar_url":"https://avatars.githubusercontent.com/u/2675262?v=3","gravatar_id":"","url":"https://api.github.com/users/Lynngre","html_url":"https://github.com/Lynngre","followers_url":"https://api.github.com/users/Lynngre/followers","following_url":"https://api.github.com/users/Lynngre/following{/other_user}","gists_url":"https://api.github.com/users/Lynngre/gists{/gist_id}","starred_url":"https://api.github.com/users/Lynngre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lynngre/subscriptions","organizations_url":"https://api.github.com/users/Lynngre/orgs","repos_url":"https://api.github.com/users/Lynngre/repos","events_url":"https://api.github.com/users/Lynngre/events{/privacy}","received_events_url":"https://api.github.com/users/Lynngre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/akvo/akvo-rsr/milestones/86","html_url":"https://github.com/akvo/akvo-rsr/milestone/86","labels_url":"https://api.github.com/repos/akvo/akvo-rsr/milestones/86/labels","id":2161468,"number":86,"title":"3.21 Wellington","description":"","creator":{"login":"nadiagorchakova","id":21127166,"avatar_url":"https://avatars.githubusercontent.com/u/21127166?v=3","gravatar_id":"","url":"https://api.github.com/users/nadiagorchakova","html_url":"https://github.com/nadiagorchakova","followers_url":"https://api.github.com/users/nadiagorchakova/followers","following_url":"https://api.github.com/users/nadiagorchakova/following{/other_user}","gists_url":"https://api.github.com/users/nadiagorchakova/gists{/gist_id}","starred_url":"https://api.github.com/users/nadiagorchakova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadiagorchakova/subscriptions","organizations_url":"https://api.github.com/users/nadiagorchakova/orgs","repos_url":"https://api.github.com/users/nadiagorchakova/repos","events_url":"https://api.github.com/users/nadiagorchakova/events{/privacy}","received_events_url":"https://api.github.com/users/nadiagorchakova/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2016-11-28T16:42:00Z","updated_at":"2016-12-20T10:24:04Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-12-16T10:55:53Z","updated_at":"2016-12-20T13:55:49Z","closed_at":null,"body":"When a new akvoapp partner/partner page is added someone needs to request a Piwikid.  This has not been done for a number of akvoapp.org pages.\r\n\r\nAs per the attached, please update the piwik tracking variable in the RSR database.\r\n\r\n\r\n[rsr_partnersite_piwik_missing_ids.txt](https://github.com/akvo/akvo-rsr/files/656973/rsr_partnersite_piwik_missing_ids.txt)\r\n\r\nIn future could RSR prompt the user adding the new akvoapp.org page to request/require a Piwikid?\r\n"},"comment":{"url":"https://api.github.com/repos/akvo/akvo-rsr/issues/comments/268248827","html_url":"https://github.com/akvo/akvo-rsr/issues/2486#issuecomment-268248827","issue_url":"https://api.github.com/repos/akvo/akvo-rsr/issues/2486","id":268248827,"user":{"login":"Lynngre","id":2675262,"avatar_url":"https://avatars.githubusercontent.com/u/2675262?v=3","gravatar_id":"","url":"https://api.github.com/users/Lynngre","html_url":"https://github.com/Lynngre","followers_url":"https://api.github.com/users/Lynngre/followers","following_url":"https://api.github.com/users/Lynngre/following{/other_user}","gists_url":"https://api.github.com/users/Lynngre/gists{/gist_id}","starred_url":"https://api.github.com/users/Lynngre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lynngre/subscriptions","organizations_url":"https://api.github.com/users/Lynngre/orgs","repos_url":"https://api.github.com/users/Lynngre/repos","events_url":"https://api.github.com/users/Lynngre/events{/privacy}","received_events_url":"https://api.github.com/users/Lynngre/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T13:55:49Z","updated_at":"2016-12-20T13:55:49Z","body":"@nadiagorchakova as far as I understand, this is created in the backend by an Akvonaut, yes.\r\n\r\n@punchagan previously a developer has uploaded the Piwikid's into the database. The javascript tracking code is inserted into the footer of rsr.akvo.org & loads a variable depending on which akvoapp.org page is loaded (so standard rsr.akvo.org is idsite '1', for example.  \r\n\r\n<script type=\"text/javascript\">\r\n  var pkBaseURL = \"https://analytics.akvo.org/\";\r\n  document.write(unescape(\"%3Cscript src='\" + pkBaseURL + \"piwik.js' type='text/javascript'%3E%3C/script%3E\"));\r\n</script>\r\n<script type=\"text/javascript\">\r\n  try {\r\n    var piwikTracker = Piwik.getTracker(pkBaseURL + \"piwik.php\", 1);\r\n    piwikTracker.trackPageView();\r\n    piwikTracker.enableLinkTracking();\r\n  } catch( err ) {}\r\n</script>\r\n<noscript>\r\n  <p>\r\n    <img src=\"https://analytics.akvo.org/piwik.php?idsite=1\" style=\"border:0\" alt=\"\" />\r\n  </p>\r\n</noscript>\r\n\r\n<!-- End Piwik Tracking Code -->\r\n\r\n\r\nThis changes to idsite '44' for example if washalliance.akvoapp.org is loaded:\r\n\r\n<script type=\"text/javascript\">\r\n  var pkBaseURL = \"https://analytics.akvo.org/\";\r\n  document.write(unescape(\"%3Cscript src='\" + pkBaseURL + \"piwik.js' type='text/javascript'%3E%3C/script%3E\"));\r\n</script>\r\n<script type=\"text/javascript\">\r\n  try {\r\n    var piwikTracker = Piwik.getTracker(pkBaseURL + \"piwik.php\", 44);\r\n    piwikTracker.trackPageView();\r\n    piwikTracker.enableLinkTracking();\r\n  } catch( err ) {}\r\n</script>\r\n<noscript>\r\n  <p>\r\n    <img src=\"https://analytics.akvo.org/piwik.php?idsite=44\" style=\"border:0\" alt=\"\" />\r\n  </p>\r\n</noscript>\r\n\r\n<!-- End Piwik Tracking Code -->\r\n\r\nThe relevant idsite needs to be uploaded into the relevant RSR table.  \r\n\r\nThe Piwik ids are created on analytics.akvo.org when you add a new site to track via the admin.\r\n\r\n\r\n"}}
{"actor":{"display_login":"Lynngre"}}