{"action":"created","comment":{"url":"https://api.github.com/repos/partio-scout/fj16-web/pulls/comments/46800091","id":46800091,"diff_hunk":"@@ -170,4 +170,15 @@ jQuery.fn.isOnScreen = function(x, y){\n     \n     return (deltas.left * deltas.right) >= x && (deltas.top * deltas.bottom) >= y;\n     \n-};\n\\ No newline at end of file\n+};\n+\n+$('[data-ga-event-category]').click(function(e){\n+\t\n+\tvar eventCategory = $(this).data('ga-event-category'),\n+\t    eventAction   = $(this).data('ga-event-action'),\n+\t    eventLabel    = $(this).data('ga-event-label'),\n+\t    eventValue    = $(this).data('ga-event-value');\n+\t\t\t\n+\tga(eventCategory, eventAction, eventLabel, eventValue);\t","path":"sites/all/themes/fj16/js/main.js","position":24,"original_position":24,"commit_id":"1d741699f43d4cf59d4e18a7d1044c9996163948","original_commit_id":"1d741699f43d4cf59d4e18a7d1044c9996163948","user":{"login":"emilvirkki","id":1294941,"avatar_url":"https://avatars.githubusercontent.com/u/1294941?v=3","gravatar_id":"","url":"https://api.github.com/users/emilvirkki","html_url":"https://github.com/emilvirkki","followers_url":"https://api.github.com/users/emilvirkki/followers","following_url":"https://api.github.com/users/emilvirkki/following{/other_user}","gists_url":"https://api.github.com/users/emilvirkki/gists{/gist_id}","starred_url":"https://api.github.com/users/emilvirkki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilvirkki/subscriptions","organizations_url":"https://api.github.com/users/emilvirkki/orgs","repos_url":"https://api.github.com/users/emilvirkki/repos","events_url":"https://api.github.com/users/emilvirkki/events{/privacy}","received_events_url":"https://api.github.com/users/emilvirkki/received_events","type":"User","site_admin":false},"body":"ga()-funktiolle pitää antaa tässä kahdeksi ekaksi attribuutiksi \"send\" ja \"event\": https://developers.google.com/analytics/devguides/collection/analyticsjs/events","created_at":"2015-12-07T09:28:23Z","updated_at":"2015-12-07T09:28:23Z","html_url":"https://github.com/partio-scout/fj16-web/pull/44#discussion_r46800091","pull_request_url":"https://api.github.com/repos/partio-scout/fj16-web/pulls/44","_links":{"self":{"href":"https://api.github.com/repos/partio-scout/fj16-web/pulls/comments/46800091"},"html":{"href":"https://github.com/partio-scout/fj16-web/pull/44#discussion_r46800091"},"pull_request":{"href":"https://api.github.com/repos/partio-scout/fj16-web/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/partio-scout/fj16-web/pulls/44","id":52717244,"html_url":"https://github.com/partio-scout/fj16-web/pull/44","diff_url":"https://github.com/partio-scout/fj16-web/pull/44.diff","patch_url":"https://github.com/partio-scout/fj16-web/pull/44.patch","issue_url":"https://api.github.com/repos/partio-scout/fj16-web/issues/44","number":44,"state":"open","locked":false,"title":"fire ga event for elements with data-attribute ga-event-category","user":{"login":"vpreponen","id":1275980,"avatar_url":"https://avatars.githubusercontent.com/u/1275980?v=3","gravatar_id":"","url":"https://api.github.com/users/vpreponen","html_url":"https://github.com/vpreponen","followers_url":"https://api.github.com/users/vpreponen/followers","following_url":"https://api.github.com/users/vpreponen/following{/other_user}","gists_url":"https://api.github.com/users/vpreponen/gists{/gist_id}","starred_url":"https://api.github.com/users/vpreponen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpreponen/subscriptions","organizations_url":"https://api.github.com/users/vpreponen/orgs","repos_url":"https://api.github.com/users/vpreponen/repos","events_url":"https://api.github.com/users/vpreponen/events{/privacy}","received_events_url":"https://api.github.com/users/vpreponen/received_events","type":"User","site_admin":false},"body":"https://trello.com/c/yQXIXjzl/285-google-analytics-eventtien-trakkays-ilmoittaudu-napin-eventti","created_at":"2015-12-04T20:28:39Z","updated_at":"2015-12-07T09:28:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b62134b742ac298192c58bf6becfaafcd1376be","assignee":{"login":"emilvirkki","id":1294941,"avatar_url":"https://avatars.githubusercontent.com/u/1294941?v=3","gravatar_id":"","url":"https://api.github.com/users/emilvirkki","html_url":"https://github.com/emilvirkki","followers_url":"https://api.github.com/users/emilvirkki/followers","following_url":"https://api.github.com/users/emilvirkki/following{/other_user}","gists_url":"https://api.github.com/users/emilvirkki/gists{/gist_id}","starred_url":"https://api.github.com/users/emilvirkki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilvirkki/subscriptions","organizations_url":"https://api.github.com/users/emilvirkki/orgs","repos_url":"https://api.github.com/users/emilvirkki/repos","events_url":"https://api.github.com/users/emilvirkki/events{/privacy}","received_events_url":"https://api.github.com/users/emilvirkki/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/partio-scout/fj16-web/pulls/44/commits","review_comments_url":"https://api.github.com/repos/partio-scout/fj16-web/pulls/44/comments","review_comment_url":"https://api.github.com/repos/partio-scout/fj16-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/partio-scout/fj16-web/issues/44/comments","statuses_url":"https://api.github.com/repos/partio-scout/fj16-web/statuses/1d741699f43d4cf59d4e18a7d1044c9996163948","head":{"label":"partio-scout:feature/ga-links","ref":"feature/ga-links","sha":"1d741699f43d4cf59d4e18a7d1044c9996163948","user":{"login":"partio-scout","id":7271613,"avatar_url":"https://avatars.githubusercontent.com/u/7271613?v=3","gravatar_id":"","url":"https://api.github.com/users/partio-scout","html_url":"https://github.com/partio-scout","followers_url":"https://api.github.com/users/partio-scout/followers","following_url":"https://api.github.com/users/partio-scout/following{/other_user}","gists_url":"https://api.github.com/users/partio-scout/gists{/gist_id}","starred_url":"https://api.github.com/users/partio-scout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/partio-scout/subscriptions","organizations_url":"https://api.github.com/users/partio-scout/orgs","repos_url":"https://api.github.com/users/partio-scout/repos","events_url":"https://api.github.com/users/partio-scout/events{/privacy}","received_events_url":"https://api.github.com/users/partio-scout/received_events","type":"Organization","site_admin":false},"repo":{"id":24301152,"name":"fj16-web","full_name":"partio-scout/fj16-web","owner":{"login":"partio-scout","id":7271613,"avatar_url":"https://avatars.githubusercontent.com/u/7271613?v=3","gravatar_id":"","url":"https://api.github.com/users/partio-scout","html_url":"https://github.com/partio-scout","followers_url":"https://api.github.com/users/partio-scout/followers","following_url":"https://api.github.com/users/partio-scout/following{/other_user}","gists_url":"https://api.github.com/users/partio-scout/gists{/gist_id}","starred_url":"https://api.github.com/users/partio-scout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/partio-scout/subscriptions","organizations_url":"https://api.github.com/users/partio-scout/orgs","repos_url":"https://api.github.com/users/partio-scout/repos","events_url":"https://api.github.com/users/partio-scout/events{/privacy}","received_events_url":"https://api.github.com/users/partio-scout/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/partio-scout/fj16-web","description":"The website of the 2016 Finnjamboree","fork":false,"url":"https://api.github.com/repos/partio-scout/fj16-web","forks_url":"https://api.github.com/repos/partio-scout/fj16-web/forks","keys_url":"https://api.github.com/repos/partio-scout/fj16-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/partio-scout/fj16-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/partio-scout/fj16-web/teams","hooks_url":"https://api.github.com/repos/partio-scout/fj16-web/hooks","issue_events_url":"https://api.github.com/repos/partio-scout/fj16-web/issues/events{/number}","events_url":"https://api.github.com/repos/partio-scout/fj16-web/events","assignees_url":"https://api.github.com/repos/partio-scout/fj16-web/assignees{/user}","branches_url":"https://api.github.com/repos/partio-scout/fj16-web/branches{/branch}","tags_url":"https://api.github.com/repos/partio-scout/fj16-web/tags","blobs_url":"https://api.github.com/repos/partio-scout/fj16-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/partio-scout/fj16-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/partio-scout/fj16-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/partio-scout/fj16-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/partio-scout/fj16-web/statuses/{sha}","languages_url":"https://api.github.com/repos/partio-scout/fj16-web/languages","stargazers_url":"https://api.github.com/repos/partio-scout/fj16-web/stargazers","contributors_url":"https://api.github.com/repos/partio-scout/fj16-web/contributors","subscribers_url":"https://api.github.com/repos/partio-scout/fj16-web/subscribers","subscription_url":"https://api.github.com/repos/partio-scout/fj16-web/subscription","commits_url":"https://api.github.com/repos/partio-scout/fj16-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/partio-scout/fj16-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/partio-scout/fj16-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/partio-scout/fj16-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/partio-scout/fj16-web/contents/{+path}","compare_url":"https://api.github.com/repos/partio-scout/fj16-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/partio-scout/fj16-web/merges","archive_url":"https://api.github.com/repos/partio-scout/fj16-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/partio-scout/fj16-web/downloads","issues_url":"https://api.github.com/repos/partio-scout/fj16-web/issues{/number}","pulls_url":"https://api.github.com/repos/partio-scout/fj16-web/pulls{/number}","milestones_url":"https://api.github.com/repos/partio-scout/fj16-web/milestones{/number}","notifications_url":"https://api.github.com/repos/partio-scout/fj16-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/partio-scout/fj16-web/labels{/name}","releases_url":"https://api.github.com/repos/partio-scout/fj16-web/releases{/id}","created_at":"2014-09-21T19:28:02Z","updated_at":"2015-11-05T20:28:56Z","pushed_at":"2015-12-04T20:28:39Z","git_url":"git://github.com/partio-scout/fj16-web.git","ssh_url":"git@github.com:partio-scout/fj16-web.git","clone_url":"https://github.com/partio-scout/fj16-web.git","svn_url":"https://github.com/partio-scout/fj16-web","homepage":null,"size":25925,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":5,"default_branch":"master"}},"base":{"label":"partio-scout:master","ref":"master","sha":"b03f13f484bc9b9d6ce279ccc1cdb6b7ed3f0b2f","user":{"login":"partio-scout","id":7271613,"avatar_url":"https://avatars.githubusercontent.com/u/7271613?v=3","gravatar_id":"","url":"https://api.github.com/users/partio-scout","html_url":"https://github.com/partio-scout","followers_url":"https://api.github.com/users/partio-scout/followers","following_url":"https://api.github.com/users/partio-scout/following{/other_user}","gists_url":"https://api.github.com/users/partio-scout/gists{/gist_id}","starred_url":"https://api.github.com/users/partio-scout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/partio-scout/subscriptions","organizations_url":"https://api.github.com/users/partio-scout/orgs","repos_url":"https://api.github.com/users/partio-scout/repos","events_url":"https://api.github.com/users/partio-scout/events{/privacy}","received_events_url":"https://api.github.com/users/partio-scout/received_events","type":"Organization","site_admin":false},"repo":{"id":24301152,"name":"fj16-web","full_name":"partio-scout/fj16-web","owner":{"login":"partio-scout","id":7271613,"avatar_url":"https://avatars.githubusercontent.com/u/7271613?v=3","gravatar_id":"","url":"https://api.github.com/users/partio-scout","html_url":"https://github.com/partio-scout","followers_url":"https://api.github.com/users/partio-scout/followers","following_url":"https://api.github.com/users/partio-scout/following{/other_user}","gists_url":"https://api.github.com/users/partio-scout/gists{/gist_id}","starred_url":"https://api.github.com/users/partio-scout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/partio-scout/subscriptions","organizations_url":"https://api.github.com/users/partio-scout/orgs","repos_url":"https://api.github.com/users/partio-scout/repos","events_url":"https://api.github.com/users/partio-scout/events{/privacy}","received_events_url":"https://api.github.com/users/partio-scout/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/partio-scout/fj16-web","description":"The website of the 2016 Finnjamboree","fork":false,"url":"https://api.github.com/repos/partio-scout/fj16-web","forks_url":"https://api.github.com/repos/partio-scout/fj16-web/forks","keys_url":"https://api.github.com/repos/partio-scout/fj16-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/partio-scout/fj16-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/partio-scout/fj16-web/teams","hooks_url":"https://api.github.com/repos/partio-scout/fj16-web/hooks","issue_events_url":"https://api.github.com/repos/partio-scout/fj16-web/issues/events{/number}","events_url":"https://api.github.com/repos/partio-scout/fj16-web/events","assignees_url":"https://api.github.com/repos/partio-scout/fj16-web/assignees{/user}","branches_url":"https://api.github.com/repos/partio-scout/fj16-web/branches{/branch}","tags_url":"https://api.github.com/repos/partio-scout/fj16-web/tags","blobs_url":"https://api.github.com/repos/partio-scout/fj16-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/partio-scout/fj16-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/partio-scout/fj16-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/partio-scout/fj16-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/partio-scout/fj16-web/statuses/{sha}","languages_url":"https://api.github.com/repos/partio-scout/fj16-web/languages","stargazers_url":"https://api.github.com/repos/partio-scout/fj16-web/stargazers","contributors_url":"https://api.github.com/repos/partio-scout/fj16-web/contributors","subscribers_url":"https://api.github.com/repos/partio-scout/fj16-web/subscribers","subscription_url":"https://api.github.com/repos/partio-scout/fj16-web/subscription","commits_url":"https://api.github.com/repos/partio-scout/fj16-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/partio-scout/fj16-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/partio-scout/fj16-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/partio-scout/fj16-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/partio-scout/fj16-web/contents/{+path}","compare_url":"https://api.github.com/repos/partio-scout/fj16-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/partio-scout/fj16-web/merges","archive_url":"https://api.github.com/repos/partio-scout/fj16-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/partio-scout/fj16-web/downloads","issues_url":"https://api.github.com/repos/partio-scout/fj16-web/issues{/number}","pulls_url":"https://api.github.com/repos/partio-scout/fj16-web/pulls{/number}","milestones_url":"https://api.github.com/repos/partio-scout/fj16-web/milestones{/number}","notifications_url":"https://api.github.com/repos/partio-scout/fj16-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/partio-scout/fj16-web/labels{/name}","releases_url":"https://api.github.com/repos/partio-scout/fj16-web/releases{/id}","created_at":"2014-09-21T19:28:02Z","updated_at":"2015-11-05T20:28:56Z","pushed_at":"2015-12-04T20:28:39Z","git_url":"git://github.com/partio-scout/fj16-web.git","ssh_url":"git@github.com:partio-scout/fj16-web.git","clone_url":"https://github.com/partio-scout/fj16-web.git","svn_url":"https://github.com/partio-scout/fj16-web","homepage":null,"size":25925,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/partio-scout/fj16-web/pulls/44"},"html":{"href":"https://github.com/partio-scout/fj16-web/pull/44"},"issue":{"href":"https://api.github.com/repos/partio-scout/fj16-web/issues/44"},"comments":{"href":"https://api.github.com/repos/partio-scout/fj16-web/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/partio-scout/fj16-web/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/partio-scout/fj16-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/partio-scout/fj16-web/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/partio-scout/fj16-web/statuses/1d741699f43d4cf59d4e18a7d1044c9996163948"}}}}