{"action":"created","comment":{"url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/comments/58878752","id":58878752,"diff_hunk":"@@ -8,13 +8,25 @@ import Home from 'views/Home';\n import Info from 'views/Info';\n import NotFound from 'views/NotFound';\n \n+function trackLink() {\n+  /* global Piwik */\n+  try {\n+    const tracker = Piwik.getTracker(\"http://analytics.hel.ninja/piwik/piwik.php\", 2);","path":"src/routes.js","position":7,"original_position":7,"commit_id":"e6953761bd5ef5357a1f86c9f4679c1c9d83a1ff","original_commit_id":"e6953761bd5ef5357a1f86c9f4679c1c9d83a1ff","user":{"login":"Rikuoja","id":9367712,"avatar_url":"https://avatars.githubusercontent.com/u/9367712?v=3","gravatar_id":"","url":"https://api.github.com/users/Rikuoja","html_url":"https://github.com/Rikuoja","followers_url":"https://api.github.com/users/Rikuoja/followers","following_url":"https://api.github.com/users/Rikuoja/following{/other_user}","gists_url":"https://api.github.com/users/Rikuoja/gists{/gist_id}","starred_url":"https://api.github.com/users/Rikuoja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rikuoja/subscriptions","organizations_url":"https://api.github.com/users/Rikuoja/orgs","repos_url":"https://api.github.com/users/Rikuoja/repos","events_url":"https://api.github.com/users/Rikuoja/events{/privacy}","received_events_url":"https://api.github.com/users/Rikuoja/received_events","type":"User","site_admin":false},"body":"K, what would be the best location for the tracking URL? All the way in kk.config and then get it to window via props?","created_at":"2016-04-07T14:19:04Z","updated_at":"2016-04-07T14:19:04Z","html_url":"https://github.com/City-of-Helsinki/kerrokantasi-ui/pull/183#discussion_r58878752","pull_request_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/183","_links":{"self":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/comments/58878752"},"html":{"href":"https://github.com/City-of-Helsinki/kerrokantasi-ui/pull/183#discussion_r58878752"},"pull_request":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/183"}}},"pull_request":{"url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/183","id":65482765,"html_url":"https://github.com/City-of-Helsinki/kerrokantasi-ui/pull/183","diff_url":"https://github.com/City-of-Helsinki/kerrokantasi-ui/pull/183.diff","patch_url":"https://github.com/City-of-Helsinki/kerrokantasi-ui/pull/183.patch","issue_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/issues/183","number":183,"state":"open","locked":false,"title":"Track all routes in Piwik","user":{"login":"Rikuoja","id":9367712,"avatar_url":"https://avatars.githubusercontent.com/u/9367712?v=3","gravatar_id":"","url":"https://api.github.com/users/Rikuoja","html_url":"https://github.com/Rikuoja","followers_url":"https://api.github.com/users/Rikuoja/followers","following_url":"https://api.github.com/users/Rikuoja/following{/other_user}","gists_url":"https://api.github.com/users/Rikuoja/gists{/gist_id}","starred_url":"https://api.github.com/users/Rikuoja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rikuoja/subscriptions","organizations_url":"https://api.github.com/users/Rikuoja/orgs","repos_url":"https://api.github.com/users/Rikuoja/repos","events_url":"https://api.github.com/users/Rikuoja/events{/privacy}","received_events_url":"https://api.github.com/users/Rikuoja/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-06T15:07:22Z","updated_at":"2016-04-07T14:19:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"36c928addda14a9747515040f80c9c7bf87765f7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/183/commits","review_comments_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/183/comments","review_comment_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/issues/183/comments","statuses_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/statuses/e6953761bd5ef5357a1f86c9f4679c1c9d83a1ff","head":{"label":"City-of-Helsinki:add-link-tracking","ref":"add-link-tracking","sha":"e6953761bd5ef5357a1f86c9f4679c1c9d83a1ff","user":{"login":"City-of-Helsinki","id":1875564,"avatar_url":"https://avatars.githubusercontent.com/u/1875564?v=3","gravatar_id":"","url":"https://api.github.com/users/City-of-Helsinki","html_url":"https://github.com/City-of-Helsinki","followers_url":"https://api.github.com/users/City-of-Helsinki/followers","following_url":"https://api.github.com/users/City-of-Helsinki/following{/other_user}","gists_url":"https://api.github.com/users/City-of-Helsinki/gists{/gist_id}","starred_url":"https://api.github.com/users/City-of-Helsinki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/City-of-Helsinki/subscriptions","organizations_url":"https://api.github.com/users/City-of-Helsinki/orgs","repos_url":"https://api.github.com/users/City-of-Helsinki/repos","events_url":"https://api.github.com/users/City-of-Helsinki/events{/privacy}","received_events_url":"https://api.github.com/users/City-of-Helsinki/received_events","type":"Organization","site_admin":false},"repo":{"id":44660727,"name":"kerrokantasi-ui","full_name":"City-of-Helsinki/kerrokantasi-ui","owner":{"login":"City-of-Helsinki","id":1875564,"avatar_url":"https://avatars.githubusercontent.com/u/1875564?v=3","gravatar_id":"","url":"https://api.github.com/users/City-of-Helsinki","html_url":"https://github.com/City-of-Helsinki","followers_url":"https://api.github.com/users/City-of-Helsinki/followers","following_url":"https://api.github.com/users/City-of-Helsinki/following{/other_user}","gists_url":"https://api.github.com/users/City-of-Helsinki/gists{/gist_id}","starred_url":"https://api.github.com/users/City-of-Helsinki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/City-of-Helsinki/subscriptions","organizations_url":"https://api.github.com/users/City-of-Helsinki/orgs","repos_url":"https://api.github.com/users/City-of-Helsinki/repos","events_url":"https://api.github.com/users/City-of-Helsinki/events{/privacy}","received_events_url":"https://api.github.com/users/City-of-Helsinki/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/City-of-Helsinki/kerrokantasi-ui","description":"Kerro kantasi participatory democracy UI","fork":false,"url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui","forks_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/forks","keys_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/teams","hooks_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/hooks","issue_events_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/issues/events{/number}","events_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/events","assignees_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/assignees{/user}","branches_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/branches{/branch}","tags_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/tags","blobs_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/languages","stargazers_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/stargazers","contributors_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/contributors","subscribers_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/subscribers","subscription_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/subscription","commits_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/contents/{+path}","compare_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/merges","archive_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/downloads","issues_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/issues{/number}","pulls_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/labels{/name}","releases_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/releases{/id}","deployments_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/deployments","created_at":"2015-10-21T07:48:35Z","updated_at":"2016-02-26T08:35:58Z","pushed_at":"2016-04-07T13:42:13Z","git_url":"git://github.com/City-of-Helsinki/kerrokantasi-ui.git","ssh_url":"git@github.com:City-of-Helsinki/kerrokantasi-ui.git","clone_url":"https://github.com/City-of-Helsinki/kerrokantasi-ui.git","svn_url":"https://github.com/City-of-Helsinki/kerrokantasi-ui","homepage":null,"size":1750,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":63,"forks":3,"open_issues":63,"watchers":0,"default_branch":"master"}},"base":{"label":"City-of-Helsinki:master","ref":"master","sha":"0565799fbe3b0f1f3ddc2d863ad73780bc06f0c5","user":{"login":"City-of-Helsinki","id":1875564,"avatar_url":"https://avatars.githubusercontent.com/u/1875564?v=3","gravatar_id":"","url":"https://api.github.com/users/City-of-Helsinki","html_url":"https://github.com/City-of-Helsinki","followers_url":"https://api.github.com/users/City-of-Helsinki/followers","following_url":"https://api.github.com/users/City-of-Helsinki/following{/other_user}","gists_url":"https://api.github.com/users/City-of-Helsinki/gists{/gist_id}","starred_url":"https://api.github.com/users/City-of-Helsinki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/City-of-Helsinki/subscriptions","organizations_url":"https://api.github.com/users/City-of-Helsinki/orgs","repos_url":"https://api.github.com/users/City-of-Helsinki/repos","events_url":"https://api.github.com/users/City-of-Helsinki/events{/privacy}","received_events_url":"https://api.github.com/users/City-of-Helsinki/received_events","type":"Organization","site_admin":false},"repo":{"id":44660727,"name":"kerrokantasi-ui","full_name":"City-of-Helsinki/kerrokantasi-ui","owner":{"login":"City-of-Helsinki","id":1875564,"avatar_url":"https://avatars.githubusercontent.com/u/1875564?v=3","gravatar_id":"","url":"https://api.github.com/users/City-of-Helsinki","html_url":"https://github.com/City-of-Helsinki","followers_url":"https://api.github.com/users/City-of-Helsinki/followers","following_url":"https://api.github.com/users/City-of-Helsinki/following{/other_user}","gists_url":"https://api.github.com/users/City-of-Helsinki/gists{/gist_id}","starred_url":"https://api.github.com/users/City-of-Helsinki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/City-of-Helsinki/subscriptions","organizations_url":"https://api.github.com/users/City-of-Helsinki/orgs","repos_url":"https://api.github.com/users/City-of-Helsinki/repos","events_url":"https://api.github.com/users/City-of-Helsinki/events{/privacy}","received_events_url":"https://api.github.com/users/City-of-Helsinki/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/City-of-Helsinki/kerrokantasi-ui","description":"Kerro kantasi participatory democracy UI","fork":false,"url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui","forks_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/forks","keys_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/teams","hooks_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/hooks","issue_events_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/issues/events{/number}","events_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/events","assignees_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/assignees{/user}","branches_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/branches{/branch}","tags_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/tags","blobs_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/languages","stargazers_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/stargazers","contributors_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/contributors","subscribers_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/subscribers","subscription_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/subscription","commits_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/contents/{+path}","compare_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/merges","archive_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/downloads","issues_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/issues{/number}","pulls_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/labels{/name}","releases_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/releases{/id}","deployments_url":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/deployments","created_at":"2015-10-21T07:48:35Z","updated_at":"2016-02-26T08:35:58Z","pushed_at":"2016-04-07T13:42:13Z","git_url":"git://github.com/City-of-Helsinki/kerrokantasi-ui.git","ssh_url":"git@github.com:City-of-Helsinki/kerrokantasi-ui.git","clone_url":"https://github.com/City-of-Helsinki/kerrokantasi-ui.git","svn_url":"https://github.com/City-of-Helsinki/kerrokantasi-ui","homepage":null,"size":1750,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":63,"forks":3,"open_issues":63,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/183"},"html":{"href":"https://github.com/City-of-Helsinki/kerrokantasi-ui/pull/183"},"issue":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/issues/183"},"comments":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/issues/183/comments"},"review_comments":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/183/comments"},"review_comment":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/pulls/183/commits"},"statuses":{"href":"https://api.github.com/repos/City-of-Helsinki/kerrokantasi-ui/statuses/e6953761bd5ef5357a1f86c9f4679c1c9d83a1ff"}}}}