{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/comments/110906757","pull_request_review_id":32110862,"id":110906757,"diff_hunk":"@@ -61,7 +62,24 @@ describe('A click tracker', function() {\n       spyOn(root.GOVUKAdmin, 'trackEvent');\n       tracker.start(element);\n       element.find(\"a\").click();\n-      expect(GOVUKAdmin.trackEvent).toHaveBeenCalledWith('a-press', 'bar');\n+      expect(GOVUKAdmin.trackEvent).toHaveBeenCalledWith('a-press', 'bar', undefined, undefined);\n+    });\n+  });\n+\n+  describe('with action, label, value and category specified', function(){\n+    beforeEach(function() {\n+      element = $('\\\n+        <div data-track-action=\"delete-button-click\" data-track-category=\"userInteraction:LLM\">\\\n+          <a class=\"js-track\" data-track-label=\"delete-link\" data-track-value=\"link1\" >Foo</a>\\","path":"spec/javascripts/spec/track_click.spec.js","position":31,"original_position":31,"commit_id":"ca55e84b4feaced40eaa9ae09a1b3022e97ea96e","original_commit_id":"ca55e84b4feaced40eaa9ae09a1b3022e97ea96e","user":{"login":"fofr","id":319055,"avatar_url":"https://avatars0.githubusercontent.com/u/319055?v=3","gravatar_id":"","url":"https://api.github.com/users/fofr","html_url":"https://github.com/fofr","followers_url":"https://api.github.com/users/fofr/followers","following_url":"https://api.github.com/users/fofr/following{/other_user}","gists_url":"https://api.github.com/users/fofr/gists{/gist_id}","starred_url":"https://api.github.com/users/fofr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fofr/subscriptions","organizations_url":"https://api.github.com/users/fofr/orgs","repos_url":"https://api.github.com/users/fofr/repos","events_url":"https://api.github.com/users/fofr/events{/privacy}","received_events_url":"https://api.github.com/users/fofr/received_events","type":"User","site_admin":false},"body":"A value must be numeric: https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#eventValue","created_at":"2017-04-11T13:50:38Z","updated_at":"2017-04-11T13:50:38Z","html_url":"https://github.com/alphagov/govuk_admin_template/pull/145#discussion_r110906757","pull_request_url":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/145","_links":{"self":{"href":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/comments/110906757"},"html":{"href":"https://github.com/alphagov/govuk_admin_template/pull/145#discussion_r110906757"},"pull_request":{"href":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/145"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/145","id":114379224,"html_url":"https://github.com/alphagov/govuk_admin_template/pull/145","diff_url":"https://github.com/alphagov/govuk_admin_template/pull/145.diff","patch_url":"https://github.com/alphagov/govuk_admin_template/pull/145.patch","issue_url":"https://api.github.com/repos/alphagov/govuk_admin_template/issues/145","number":145,"state":"open","locked":false,"title":"[DO NOT MERGE] Extends analytics","user":{"login":"elenatanasoiu","id":1354439,"avatar_url":"https://avatars2.githubusercontent.com/u/1354439?v=3","gravatar_id":"","url":"https://api.github.com/users/elenatanasoiu","html_url":"https://github.com/elenatanasoiu","followers_url":"https://api.github.com/users/elenatanasoiu/followers","following_url":"https://api.github.com/users/elenatanasoiu/following{/other_user}","gists_url":"https://api.github.com/users/elenatanasoiu/gists{/gist_id}","starred_url":"https://api.github.com/users/elenatanasoiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elenatanasoiu/subscriptions","organizations_url":"https://api.github.com/users/elenatanasoiu/orgs","repos_url":"https://api.github.com/users/elenatanasoiu/repos","events_url":"https://api.github.com/users/elenatanasoiu/events{/privacy}","received_events_url":"https://api.github.com/users/elenatanasoiu/received_events","type":"User","site_admin":false},"body":"[Trello card](https://trello.com/c/GGvHKuad/118-event-tracking-and-analytics-for-iteration-2-of-local-links-manager-3)\r\n\r\nUsed by https://github.com/alphagov/local-links-manager/pull/109\r\n\r\nExtending analytics in govuk_admin_template, which will enable us to send more information when triggering events for GA for projects that use govuk_admin_template (for example: in local-links-manager).\r\nThis is already possible in `govuk-frontend-toolkit`.","created_at":"2017-04-05T13:41:35Z","updated_at":"2017-04-11T13:50:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93850467db678bd7c44a48c07239aa71d14af2c5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/145/commits","review_comments_url":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/145/comments","review_comment_url":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/govuk_admin_template/issues/145/comments","statuses_url":"https://api.github.com/repos/alphagov/govuk_admin_template/statuses/ca55e84b4feaced40eaa9ae09a1b3022e97ea96e","head":{"label":"alphagov:more-analytics-events","ref":"more-analytics-events","sha":"ca55e84b4feaced40eaa9ae09a1b3022e97ea96e","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars3.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":19776412,"name":"govuk_admin_template","full_name":"alphagov/govuk_admin_template","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars3.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/govuk_admin_template","description":"Styles, scripts and templates for building GOV.UK backend admin apps","fork":false,"url":"https://api.github.com/repos/alphagov/govuk_admin_template","forks_url":"https://api.github.com/repos/alphagov/govuk_admin_template/forks","keys_url":"https://api.github.com/repos/alphagov/govuk_admin_template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/govuk_admin_template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/govuk_admin_template/teams","hooks_url":"https://api.github.com/repos/alphagov/govuk_admin_template/hooks","issue_events_url":"https://api.github.com/repos/alphagov/govuk_admin_template/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/govuk_admin_template/events","assignees_url":"https://api.github.com/repos/alphagov/govuk_admin_template/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/govuk_admin_template/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/govuk_admin_template/tags","blobs_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/govuk_admin_template/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/govuk_admin_template/languages","stargazers_url":"https://api.github.com/repos/alphagov/govuk_admin_template/stargazers","contributors_url":"https://api.github.com/repos/alphagov/govuk_admin_template/contributors","subscribers_url":"https://api.github.com/repos/alphagov/govuk_admin_template/subscribers","subscription_url":"https://api.github.com/repos/alphagov/govuk_admin_template/subscription","commits_url":"https://api.github.com/repos/alphagov/govuk_admin_template/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/govuk_admin_template/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/govuk_admin_template/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/govuk_admin_template/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/govuk_admin_template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/govuk_admin_template/merges","archive_url":"https://api.github.com/repos/alphagov/govuk_admin_template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/govuk_admin_template/downloads","issues_url":"https://api.github.com/repos/alphagov/govuk_admin_template/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/govuk_admin_template/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/govuk_admin_template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/govuk_admin_template/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/govuk_admin_template/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/govuk_admin_template/deployments","created_at":"2014-05-14T11:08:38Z","updated_at":"2017-04-04T21:51:17Z","pushed_at":"2017-04-11T13:22:16Z","git_url":"git://github.com/alphagov/govuk_admin_template.git","ssh_url":"git@github.com:alphagov/govuk_admin_template.git","clone_url":"https://github.com/alphagov/govuk_admin_template.git","svn_url":"https://github.com/alphagov/govuk_admin_template","homepage":"","size":408,"stargazers_count":16,"watchers_count":16,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":3,"forks":11,"open_issues":3,"watchers":16,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"8d8e2caf046600ea30533df91585d08f56aad7e5","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars3.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":19776412,"name":"govuk_admin_template","full_name":"alphagov/govuk_admin_template","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars3.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/govuk_admin_template","description":"Styles, scripts and templates for building GOV.UK backend admin apps","fork":false,"url":"https://api.github.com/repos/alphagov/govuk_admin_template","forks_url":"https://api.github.com/repos/alphagov/govuk_admin_template/forks","keys_url":"https://api.github.com/repos/alphagov/govuk_admin_template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/govuk_admin_template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/govuk_admin_template/teams","hooks_url":"https://api.github.com/repos/alphagov/govuk_admin_template/hooks","issue_events_url":"https://api.github.com/repos/alphagov/govuk_admin_template/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/govuk_admin_template/events","assignees_url":"https://api.github.com/repos/alphagov/govuk_admin_template/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/govuk_admin_template/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/govuk_admin_template/tags","blobs_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/govuk_admin_template/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/govuk_admin_template/languages","stargazers_url":"https://api.github.com/repos/alphagov/govuk_admin_template/stargazers","contributors_url":"https://api.github.com/repos/alphagov/govuk_admin_template/contributors","subscribers_url":"https://api.github.com/repos/alphagov/govuk_admin_template/subscribers","subscription_url":"https://api.github.com/repos/alphagov/govuk_admin_template/subscription","commits_url":"https://api.github.com/repos/alphagov/govuk_admin_template/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/govuk_admin_template/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/govuk_admin_template/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/govuk_admin_template/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/govuk_admin_template/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/govuk_admin_template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/govuk_admin_template/merges","archive_url":"https://api.github.com/repos/alphagov/govuk_admin_template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/govuk_admin_template/downloads","issues_url":"https://api.github.com/repos/alphagov/govuk_admin_template/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/govuk_admin_template/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/govuk_admin_template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/govuk_admin_template/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/govuk_admin_template/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/govuk_admin_template/deployments","created_at":"2014-05-14T11:08:38Z","updated_at":"2017-04-04T21:51:17Z","pushed_at":"2017-04-11T13:22:16Z","git_url":"git://github.com/alphagov/govuk_admin_template.git","ssh_url":"git@github.com:alphagov/govuk_admin_template.git","clone_url":"https://github.com/alphagov/govuk_admin_template.git","svn_url":"https://github.com/alphagov/govuk_admin_template","homepage":"","size":408,"stargazers_count":16,"watchers_count":16,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":3,"forks":11,"open_issues":3,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/145"},"html":{"href":"https://github.com/alphagov/govuk_admin_template/pull/145"},"issue":{"href":"https://api.github.com/repos/alphagov/govuk_admin_template/issues/145"},"comments":{"href":"https://api.github.com/repos/alphagov/govuk_admin_template/issues/145/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/145/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/govuk_admin_template/pulls/145/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/govuk_admin_template/statuses/ca55e84b4feaced40eaa9ae09a1b3022e97ea96e"}}}}
{"actor":{"display_login":"fofr"}}