{"action":"created","comment":{"url":"https://api.github.com/repos/joernroeder/piwik-react-router/pulls/comments/154178297","pull_request_review_id":80303278,"id":154178297,"diff_hunk":"@@ -177,15 +238,22 @@ var PiwikTracker = function(opts) {\n \t\t\tpush(['enableLinkTracking']);\n \t\t}\n \n-\t\tif (opts.injectScript) {\n-\t\t\tvar d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; g.src=u+opts.clientTrackerName;\n+\t\tif (opts.injectScript && !alreadyInitialized) {\n+\t\t\tvar d=document;\n+\t\t\tvar g=d.createElement('script');\n+\t\t\tvar s=d.getElementsByTagName('script')[0];\n+\t\t\tg.type='text/javascript';\n+\t\t\tg.defer=true;\n+\t\t\tg.async=true;\n+\t\t\tg.src=u+opts.clientTrackerName;\n \t\t\ts.parentNode.insertBefore(g,s);\n+\t\t\tg.setAttribute('data-' + opts.piwikScriptDataAttribute, opts.siteId);\n \t\t}\n \t})();\n \n \t// return api\n \treturn {\n-    _isShim: false,\n+\t\t_isShim: false,\n \t\ttrack: track,\n \t\tpush: push,\n \t\tsetUserId, setUserId,","path":"index.js","position":241,"original_position":241,"commit_id":"95aa78132f6a2a640d084ec69e1b8061d6cdfd19","original_commit_id":"95aa78132f6a2a640d084ec69e1b8061d6cdfd19","user":{"login":"joernroeder","id":270540,"avatar_url":"https://avatars2.githubusercontent.com/u/270540?v=4","gravatar_id":"","url":"https://api.github.com/users/joernroeder","html_url":"https://github.com/joernroeder","followers_url":"https://api.github.com/users/joernroeder/followers","following_url":"https://api.github.com/users/joernroeder/following{/other_user}","gists_url":"https://api.github.com/users/joernroeder/gists{/gist_id}","starred_url":"https://api.github.com/users/joernroeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joernroeder/subscriptions","organizations_url":"https://api.github.com/users/joernroeder/orgs","repos_url":"https://api.github.com/users/joernroeder/repos","events_url":"https://api.github.com/users/joernroeder/events{/privacy}","received_events_url":"https://api.github.com/users/joernroeder/received_events","type":"User","site_admin":false},"body":"oh, how could that pass the tests 🤔","created_at":"2017-11-30T19:33:38Z","updated_at":"2017-11-30T19:33:38Z","html_url":"https://github.com/joernroeder/piwik-react-router/pull/46#discussion_r154178297","pull_request_url":"https://api.github.com/repos/joernroeder/piwik-react-router/pulls/46","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/joernroeder/piwik-react-router/pulls/comments/154178297"},"html":{"href":"https://github.com/joernroeder/piwik-react-router/pull/46#discussion_r154178297"},"pull_request":{"href":"https://api.github.com/repos/joernroeder/piwik-react-router/pulls/46"}},"in_reply_to_id":153806917},"pull_request":{"url":"https://api.github.com/repos/joernroeder/piwik-react-router/pulls/46","id":152737336,"html_url":"https://github.com/joernroeder/piwik-react-router/pull/46","diff_url":"https://github.com/joernroeder/piwik-react-router/pull/46.diff","patch_url":"https://github.com/joernroeder/piwik-react-router/pull/46.patch","issue_url":"https://api.github.com/repos/joernroeder/piwik-react-router/issues/46","number":46,"state":"open","locked":false,"title":"implemented dynamic already-initialized function to be able to use multiple piwik-react-router instances on the same page","user":{"login":"joernroeder","id":270540,"avatar_url":"https://avatars2.githubusercontent.com/u/270540?v=4","gravatar_id":"","url":"https://api.github.com/users/joernroeder","html_url":"https://github.com/joernroeder","followers_url":"https://api.github.com/users/joernroeder/followers","following_url":"https://api.github.com/users/joernroeder/following{/other_user}","gists_url":"https://api.github.com/users/joernroeder/gists{/gist_id}","starred_url":"https://api.github.com/users/joernroeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joernroeder/subscriptions","organizations_url":"https://api.github.com/users/joernroeder/orgs","repos_url":"https://api.github.com/users/joernroeder/repos","events_url":"https://api.github.com/users/joernroeder/events{/privacy}","received_events_url":"https://api.github.com/users/joernroeder/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-11-15T10:30:57Z","updated_at":"2017-11-30T19:33:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"770e66bbf5fd935b4f87c5b7ad55e1421eda52a1","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/joernroeder/piwik-react-router/pulls/46/commits","review_comments_url":"https://api.github.com/repos/joernroeder/piwik-react-router/pulls/46/comments","review_comment_url":"https://api.github.com/repos/joernroeder/piwik-react-router/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joernroeder/piwik-react-router/issues/46/comments","statuses_url":"https://api.github.com/repos/joernroeder/piwik-react-router/statuses/95aa78132f6a2a640d084ec69e1b8061d6cdfd19","head":{"label":"joernroeder:already-initialized","ref":"already-initialized","sha":"95aa78132f6a2a640d084ec69e1b8061d6cdfd19","user":{"login":"joernroeder","id":270540,"avatar_url":"https://avatars2.githubusercontent.com/u/270540?v=4","gravatar_id":"","url":"https://api.github.com/users/joernroeder","html_url":"https://github.com/joernroeder","followers_url":"https://api.github.com/users/joernroeder/followers","following_url":"https://api.github.com/users/joernroeder/following{/other_user}","gists_url":"https://api.github.com/users/joernroeder/gists{/gist_id}","starred_url":"https://api.github.com/users/joernroeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joernroeder/subscriptions","organizations_url":"https://api.github.com/users/joernroeder/orgs","repos_url":"https://api.github.com/users/joernroeder/repos","events_url":"https://api.github.com/users/joernroeder/events{/privacy}","received_events_url":"https://api.github.com/users/joernroeder/received_events","type":"User","site_admin":false},"repo":{"id":33979747,"name":"piwik-react-router","full_name":"joernroeder/piwik-react-router","owner":{"login":"joernroeder","id":270540,"avatar_url":"https://avatars2.githubusercontent.com/u/270540?v=4","gravatar_id":"","url":"https://api.github.com/users/joernroeder","html_url":"https://github.com/joernroeder","followers_url":"https://api.github.com/users/joernroeder/followers","following_url":"https://api.github.com/users/joernroeder/following{/other_user}","gists_url":"https://api.github.com/users/joernroeder/gists{/gist_id}","starred_url":"https://api.github.com/users/joernroeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joernroeder/subscriptions","organizations_url":"https://api.github.com/users/joernroeder/orgs","repos_url":"https://api.github.com/users/joernroeder/repos","events_url":"https://api.github.com/users/joernroeder/events{/privacy}","received_events_url":"https://api.github.com/users/joernroeder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joernroeder/piwik-react-router","description":"Piwik analytics component for react-router","fork":false,"url":"https://api.github.com/repos/joernroeder/piwik-react-router","forks_url":"https://api.github.com/repos/joernroeder/piwik-react-router/forks","keys_url":"https://api.github.com/repos/joernroeder/piwik-react-router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joernroeder/piwik-react-router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joernroeder/piwik-react-router/teams","hooks_url":"https://api.github.com/repos/joernroeder/piwik-react-router/hooks","issue_events_url":"https://api.github.com/repos/joernroeder/piwik-react-router/issues/events{/number}","events_url":"https://api.github.com/repos/joernroeder/piwik-react-router/events","assignees_url":"https://api.github.com/repos/joernroeder/piwik-react-router/assignees{/user}","branches_url":"https://api.github.com/repos/joernroeder/piwik-react-router/branches{/branch}","tags_url":"https://api.github.com/repos/joernroeder/piwik-react-router/tags","blobs_url":"https://api.github.com/repos/joernroeder/piwik-react-router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joernroeder/piwik-react-router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joernroeder/piwik-react-router/git/refs{/sha}","trees_url":"https://api.github.com/repos/joernroeder/piwik-react-router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joernroeder/piwik-react-router/statuses/{sha}","languages_url":"https://api.github.com/repos/joernroeder/piwik-react-router/languages","stargazers_url":"https://api.github.com/repos/joernroeder/piwik-react-router/stargazers","contributors_url":"https://api.github.com/repos/joernroeder/piwik-react-router/contributors","subscribers_url":"https://api.github.com/repos/joernroeder/piwik-react-router/subscribers","subscription_url":"https://api.github.com/repos/joernroeder/piwik-react-router/subscription","commits_url":"https://api.github.com/repos/joernroeder/piwik-react-router/commits{/sha}","git_commits_url":"https://api.github.com/repos/joernroeder/piwik-react-router/git/commits{/sha}","comments_url":"https://api.github.com/repos/joernroeder/piwik-react-router/comments{/number}","issue_comment_url":"https://api.github.com/repos/joernroeder/piwik-react-router/issues/comments{/number}","contents_url":"https://api.github.com/repos/joernroeder/piwik-react-router/contents/{+path}","compare_url":"https://api.github.com/repos/joernroeder/piwik-react-router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joernroeder/piwik-react-router/merges","archive_url":"https://api.github.com/repos/joernroeder/piwik-react-router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joernroeder/piwik-react-router/downloads","issues_url":"https://api.github.com/repos/joernroeder/piwik-react-router/issues{/number}","pulls_url":"https://api.github.com/repos/joernroeder/piwik-react-router/pulls{/number}","milestones_url":"https://api.github.com/repos/joernroeder/piwik-react-router/milestones{/number}","notifications_url":"https://api.github.com/repos/joernroeder/piwik-react-router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joernroeder/piwik-react-router/labels{/name}","releases_url":"https://api.github.com/repos/joernroeder/piwik-react-router/releases{/id}","deployments_url":"https://api.github.com/repos/joernroeder/piwik-react-router/deployments","created_at":"2015-04-15T07:33:05Z","updated_at":"2017-11-24T15:13:30Z","pushed_at":"2017-11-28T22:45:29Z","git_url":"git://github.com/joernroeder/piwik-react-router.git","ssh_url":"git@github.com:joernroeder/piwik-react-router.git","clone_url":"https://github.com/joernroeder/piwik-react-router.git","svn_url":"https://github.com/joernroeder/piwik-react-router","homepage":"https://www.npmjs.org/package/piwik-react-router","size":81,"stargazers_count":35,"watchers_count":35,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":16,"open_issues":6,"watchers":35,"default_branch":"master"}},"base":{"label":"joernroeder:master","ref":"master","sha":"b64b29bb5594ffde0ffe3632aeb15615e09ef0a7","user":{"login":"joernroeder","id":270540,"avatar_url":"https://avatars2.githubusercontent.com/u/270540?v=4","gravatar_id":"","url":"https://api.github.com/users/joernroeder","html_url":"https://github.com/joernroeder","followers_url":"https://api.github.com/users/joernroeder/followers","following_url":"https://api.github.com/users/joernroeder/following{/other_user}","gists_url":"https://api.github.com/users/joernroeder/gists{/gist_id}","starred_url":"https://api.github.com/users/joernroeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joernroeder/subscriptions","organizations_url":"https://api.github.com/users/joernroeder/orgs","repos_url":"https://api.github.com/users/joernroeder/repos","events_url":"https://api.github.com/users/joernroeder/events{/privacy}","received_events_url":"https://api.github.com/users/joernroeder/received_events","type":"User","site_admin":false},"repo":{"id":33979747,"name":"piwik-react-router","full_name":"joernroeder/piwik-react-router","owner":{"login":"joernroeder","id":270540,"avatar_url":"https://avatars2.githubusercontent.com/u/270540?v=4","gravatar_id":"","url":"https://api.github.com/users/joernroeder","html_url":"https://github.com/joernroeder","followers_url":"https://api.github.com/users/joernroeder/followers","following_url":"https://api.github.com/users/joernroeder/following{/other_user}","gists_url":"https://api.github.com/users/joernroeder/gists{/gist_id}","starred_url":"https://api.github.com/users/joernroeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joernroeder/subscriptions","organizations_url":"https://api.github.com/users/joernroeder/orgs","repos_url":"https://api.github.com/users/joernroeder/repos","events_url":"https://api.github.com/users/joernroeder/events{/privacy}","received_events_url":"https://api.github.com/users/joernroeder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joernroeder/piwik-react-router","description":"Piwik analytics component for react-router","fork":false,"url":"https://api.github.com/repos/joernroeder/piwik-react-router","forks_url":"https://api.github.com/repos/joernroeder/piwik-react-router/forks","keys_url":"https://api.github.com/repos/joernroeder/piwik-react-router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joernroeder/piwik-react-router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joernroeder/piwik-react-router/teams","hooks_url":"https://api.github.com/repos/joernroeder/piwik-react-router/hooks","issue_events_url":"https://api.github.com/repos/joernroeder/piwik-react-router/issues/events{/number}","events_url":"https://api.github.com/repos/joernroeder/piwik-react-router/events","assignees_url":"https://api.github.com/repos/joernroeder/piwik-react-router/assignees{/user}","branches_url":"https://api.github.com/repos/joernroeder/piwik-react-router/branches{/branch}","tags_url":"https://api.github.com/repos/joernroeder/piwik-react-router/tags","blobs_url":"https://api.github.com/repos/joernroeder/piwik-react-router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joernroeder/piwik-react-router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joernroeder/piwik-react-router/git/refs{/sha}","trees_url":"https://api.github.com/repos/joernroeder/piwik-react-router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joernroeder/piwik-react-router/statuses/{sha}","languages_url":"https://api.github.com/repos/joernroeder/piwik-react-router/languages","stargazers_url":"https://api.github.com/repos/joernroeder/piwik-react-router/stargazers","contributors_url":"https://api.github.com/repos/joernroeder/piwik-react-router/contributors","subscribers_url":"https://api.github.com/repos/joernroeder/piwik-react-router/subscribers","subscription_url":"https://api.github.com/repos/joernroeder/piwik-react-router/subscription","commits_url":"https://api.github.com/repos/joernroeder/piwik-react-router/commits{/sha}","git_commits_url":"https://api.github.com/repos/joernroeder/piwik-react-router/git/commits{/sha}","comments_url":"https://api.github.com/repos/joernroeder/piwik-react-router/comments{/number}","issue_comment_url":"https://api.github.com/repos/joernroeder/piwik-react-router/issues/comments{/number}","contents_url":"https://api.github.com/repos/joernroeder/piwik-react-router/contents/{+path}","compare_url":"https://api.github.com/repos/joernroeder/piwik-react-router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joernroeder/piwik-react-router/merges","archive_url":"https://api.github.com/repos/joernroeder/piwik-react-router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joernroeder/piwik-react-router/downloads","issues_url":"https://api.github.com/repos/joernroeder/piwik-react-router/issues{/number}","pulls_url":"https://api.github.com/repos/joernroeder/piwik-react-router/pulls{/number}","milestones_url":"https://api.github.com/repos/joernroeder/piwik-react-router/milestones{/number}","notifications_url":"https://api.github.com/repos/joernroeder/piwik-react-router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joernroeder/piwik-react-router/labels{/name}","releases_url":"https://api.github.com/repos/joernroeder/piwik-react-router/releases{/id}","deployments_url":"https://api.github.com/repos/joernroeder/piwik-react-router/deployments","created_at":"2015-04-15T07:33:05Z","updated_at":"2017-11-24T15:13:30Z","pushed_at":"2017-11-28T22:45:29Z","git_url":"git://github.com/joernroeder/piwik-react-router.git","ssh_url":"git@github.com:joernroeder/piwik-react-router.git","clone_url":"https://github.com/joernroeder/piwik-react-router.git","svn_url":"https://github.com/joernroeder/piwik-react-router","homepage":"https://www.npmjs.org/package/piwik-react-router","size":81,"stargazers_count":35,"watchers_count":35,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":16,"open_issues":6,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/joernroeder/piwik-react-router/pulls/46"},"html":{"href":"https://github.com/joernroeder/piwik-react-router/pull/46"},"issue":{"href":"https://api.github.com/repos/joernroeder/piwik-react-router/issues/46"},"comments":{"href":"https://api.github.com/repos/joernroeder/piwik-react-router/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/joernroeder/piwik-react-router/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/joernroeder/piwik-react-router/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joernroeder/piwik-react-router/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/joernroeder/piwik-react-router/statuses/95aa78132f6a2a640d084ec69e1b8061d6cdfd19"}},"author_association":"OWNER"}}
{"actor":{"display_login":"joernroeder"}}