{"action":"created","comment":{"url":"https://api.github.com/repos/nasa-gibs/worldview/pulls/comments/227007944","pull_request_review_id":166951413,"id":227007944,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzAwNzk0NA==","diff_hunk":"@@ -405,10 +405,22 @@ export function animationWidget(models, config, ui) {\n    */\n   self.onPressGIF = function() {\n     let zoomLevel = ui.anim.ui.getInterval();\n+    let looping = ui.anim.widget.reactComponent.state.looping;\n     if (zoomLevel !== 'minute') {\n       // zero out start/end date times\n       self.setZeroDateTimes();\n     }\n+\n+    let increment = self.getIncrements();\n+    let frameSpeed = model.rangeState.speed;\n+    googleTagManager.pushEvent({\n+      'event': 'GIF_create_animated_button',\n+      'GIF': {\n+        'increment': increment,\n+        'frameSpeed': frameSpeed,\n+        'looping': looping","path":"web/js/animation/widget.js","position":34,"original_position":34,"commit_id":"89defc08ad0f1fdc891f106020a2a6a497b5c8af","original_commit_id":"89defc08ad0f1fdc891f106020a2a6a497b5c8af","user":{"login":"edplato","id":24417194,"node_id":"MDQ6VXNlcjI0NDE3MTk0","avatar_url":"https://avatars1.githubusercontent.com/u/24417194?v=4","gravatar_id":"","url":"https://api.github.com/users/edplato","html_url":"https://github.com/edplato","followers_url":"https://api.github.com/users/edplato/followers","following_url":"https://api.github.com/users/edplato/following{/other_user}","gists_url":"https://api.github.com/users/edplato/gists{/gist_id}","starred_url":"https://api.github.com/users/edplato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edplato/subscriptions","organizations_url":"https://api.github.com/users/edplato/orgs","repos_url":"https://api.github.com/users/edplato/repos","events_url":"https://api.github.com/users/edplato/events{/privacy}","received_events_url":"https://api.github.com/users/edplato/received_events","type":"User","site_admin":false},"body":"This is being used to tell if the user has the GIF loop mode on/off when they click 'Create Animated GIF' before they get into the preview where they download.","created_at":"2018-10-22T14:41:50Z","updated_at":"2018-10-22T14:41:50Z","html_url":"https://github.com/nasa-gibs/worldview/pull/1376#discussion_r227007944","pull_request_url":"https://api.github.com/repos/nasa-gibs/worldview/pulls/1376","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/nasa-gibs/worldview/pulls/comments/227007944"},"html":{"href":"https://github.com/nasa-gibs/worldview/pull/1376#discussion_r227007944"},"pull_request":{"href":"https://api.github.com/repos/nasa-gibs/worldview/pulls/1376"}},"in_reply_to_id":226978728},"pull_request":{"url":"https://api.github.com/repos/nasa-gibs/worldview/pulls/1376","id":219792513,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5NzkyNTEz","html_url":"https://github.com/nasa-gibs/worldview/pull/1376","diff_url":"https://github.com/nasa-gibs/worldview/pull/1376.diff","patch_url":"https://github.com/nasa-gibs/worldview/pull/1376.patch","issue_url":"https://api.github.com/repos/nasa-gibs/worldview/issues/1376","number":1376,"state":"open","locked":false,"title":"Improve site metrics","user":{"login":"edplato","id":24417194,"node_id":"MDQ6VXNlcjI0NDE3MTk0","avatar_url":"https://avatars1.githubusercontent.com/u/24417194?v=4","gravatar_id":"","url":"https://api.github.com/users/edplato","html_url":"https://github.com/edplato","followers_url":"https://api.github.com/users/edplato/followers","following_url":"https://api.github.com/users/edplato/following{/other_user}","gists_url":"https://api.github.com/users/edplato/gists{/gist_id}","starred_url":"https://api.github.com/users/edplato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edplato/subscriptions","organizations_url":"https://api.github.com/users/edplato/orgs","repos_url":"https://api.github.com/users/edplato/repos","events_url":"https://api.github.com/users/edplato/events{/privacy}","received_events_url":"https://api.github.com/users/edplato/received_events","type":"User","site_admin":false},"body":"## Description\r\n\r\nFixes #831 .\r\n\r\n- Improves event triggered metrics for the site using Google Tag Manager(GTM).\r\n  * Add new event tags, triggers, and access event specific variable data. Was able to directly inject metrics into existing methods without changes in most cases. However, some methods were changed to allow conditional firing of event metrics.\r\n  * Transition from Google Analytics\r\n  * Create webpack alias of GTM for easier imports\r\n\r\n\r\n## Checklist\r\n\r\n- [x] I have read the [CONTRIBUTING](https://github.com/nasa-gibs/worldview/blob/master/.github/CONTRIBUTING.md) doc\r\n- [x] I have added necessary documentation (if applicable)\r\n- [ ] I have added tests that prove my fix is effective or that my feature works (if applicable)\r\n- [x] Any dependent changes have been merged and published in downstream modules (if applicable)\r\n\r\n@nasa-gibs/worldview\r\n","created_at":"2018-10-02T17:57:45Z","updated_at":"2018-10-22T14:41:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bcb31a98443f82ac3c8ec4d9dd11084c1a307335","assignee":{"login":"edplato","id":24417194,"node_id":"MDQ6VXNlcjI0NDE3MTk0","avatar_url":"https://avatars1.githubusercontent.com/u/24417194?v=4","gravatar_id":"","url":"https://api.github.com/users/edplato","html_url":"https://github.com/edplato","followers_url":"https://api.github.com/users/edplato/followers","following_url":"https://api.github.com/users/edplato/following{/other_user}","gists_url":"https://api.github.com/users/edplato/gists{/gist_id}","starred_url":"https://api.github.com/users/edplato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edplato/subscriptions","organizations_url":"https://api.github.com/users/edplato/orgs","repos_url":"https://api.github.com/users/edplato/repos","events_url":"https://api.github.com/users/edplato/events{/privacy}","received_events_url":"https://api.github.com/users/edplato/received_events","type":"User","site_admin":false},"assignees":[{"login":"edplato","id":24417194,"node_id":"MDQ6VXNlcjI0NDE3MTk0","avatar_url":"https://avatars1.githubusercontent.com/u/24417194?v=4","gravatar_id":"","url":"https://api.github.com/users/edplato","html_url":"https://github.com/edplato","followers_url":"https://api.github.com/users/edplato/followers","following_url":"https://api.github.com/users/edplato/following{/other_user}","gists_url":"https://api.github.com/users/edplato/gists{/gist_id}","starred_url":"https://api.github.com/users/edplato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edplato/subscriptions","organizations_url":"https://api.github.com/users/edplato/orgs","repos_url":"https://api.github.com/users/edplato/repos","events_url":"https://api.github.com/users/edplato/events{/privacy}","received_events_url":"https://api.github.com/users/edplato/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":541245896,"node_id":"MDU6TGFiZWw1NDEyNDU4OTY=","url":"https://api.github.com/repos/nasa-gibs/worldview/labels/ready%20for%20review","name":"ready for review","color":"ff6600","default":false}],"milestone":{"url":"https://api.github.com/repos/nasa-gibs/worldview/milestones/32","html_url":"https://github.com/nasa-gibs/worldview/milestone/32","labels_url":"https://api.github.com/repos/nasa-gibs/worldview/milestones/32/labels","id":3569139,"node_id":"MDk6TWlsZXN0b25lMzU2OTEzOQ==","number":32,"title":"November Release","description":"","creator":{"login":"minniewong","id":10747923,"node_id":"MDQ6VXNlcjEwNzQ3OTIz","avatar_url":"https://avatars3.githubusercontent.com/u/10747923?v=4","gravatar_id":"","url":"https://api.github.com/users/minniewong","html_url":"https://github.com/minniewong","followers_url":"https://api.github.com/users/minniewong/followers","following_url":"https://api.github.com/users/minniewong/following{/other_user}","gists_url":"https://api.github.com/users/minniewong/gists{/gist_id}","starred_url":"https://api.github.com/users/minniewong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minniewong/subscriptions","organizations_url":"https://api.github.com/users/minniewong/orgs","repos_url":"https://api.github.com/users/minniewong/repos","events_url":"https://api.github.com/users/minniewong/events{/privacy}","received_events_url":"https://api.github.com/users/minniewong/received_events","type":"User","site_admin":false},"open_issues":51,"closed_issues":24,"state":"open","created_at":"2018-08-14T15:42:54Z","updated_at":"2018-10-19T18:23:54Z","due_on":"2018-11-13T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/nasa-gibs/worldview/pulls/1376/commits","review_comments_url":"https://api.github.com/repos/nasa-gibs/worldview/pulls/1376/comments","review_comment_url":"https://api.github.com/repos/nasa-gibs/worldview/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nasa-gibs/worldview/issues/1376/comments","statuses_url":"https://api.github.com/repos/nasa-gibs/worldview/statuses/89defc08ad0f1fdc891f106020a2a6a497b5c8af","head":{"label":"nasa-gibs:gtm-metrics-831","ref":"gtm-metrics-831","sha":"89defc08ad0f1fdc891f106020a2a6a497b5c8af","user":{"login":"nasa-gibs","id":6089130,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwODkxMzA=","avatar_url":"https://avatars1.githubusercontent.com/u/6089130?v=4","gravatar_id":"","url":"https://api.github.com/users/nasa-gibs","html_url":"https://github.com/nasa-gibs","followers_url":"https://api.github.com/users/nasa-gibs/followers","following_url":"https://api.github.com/users/nasa-gibs/following{/other_user}","gists_url":"https://api.github.com/users/nasa-gibs/gists{/gist_id}","starred_url":"https://api.github.com/users/nasa-gibs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nasa-gibs/subscriptions","organizations_url":"https://api.github.com/users/nasa-gibs/orgs","repos_url":"https://api.github.com/users/nasa-gibs/repos","events_url":"https://api.github.com/users/nasa-gibs/events{/privacy}","received_events_url":"https://api.github.com/users/nasa-gibs/received_events","type":"Organization","site_admin":false},"repo":{"id":19028976,"node_id":"MDEwOlJlcG9zaXRvcnkxOTAyODk3Ng==","name":"worldview","full_name":"nasa-gibs/worldview","private":false,"owner":{"login":"nasa-gibs","id":6089130,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwODkxMzA=","avatar_url":"https://avatars1.githubusercontent.com/u/6089130?v=4","gravatar_id":"","url":"https://api.github.com/users/nasa-gibs","html_url":"https://github.com/nasa-gibs","followers_url":"https://api.github.com/users/nasa-gibs/followers","following_url":"https://api.github.com/users/nasa-gibs/following{/other_user}","gists_url":"https://api.github.com/users/nasa-gibs/gists{/gist_id}","starred_url":"https://api.github.com/users/nasa-gibs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nasa-gibs/subscriptions","organizations_url":"https://api.github.com/users/nasa-gibs/orgs","repos_url":"https://api.github.com/users/nasa-gibs/repos","events_url":"https://api.github.com/users/nasa-gibs/events{/privacy}","received_events_url":"https://api.github.com/users/nasa-gibs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/nasa-gibs/worldview","description":"Interactive interface for browsing global, full-resolution satellite imagery","fork":false,"url":"https://api.github.com/repos/nasa-gibs/worldview","forks_url":"https://api.github.com/repos/nasa-gibs/worldview/forks","keys_url":"https://api.github.com/repos/nasa-gibs/worldview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nasa-gibs/worldview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nasa-gibs/worldview/teams","hooks_url":"https://api.github.com/repos/nasa-gibs/worldview/hooks","issue_events_url":"https://api.github.com/repos/nasa-gibs/worldview/issues/events{/number}","events_url":"https://api.github.com/repos/nasa-gibs/worldview/events","assignees_url":"https://api.github.com/repos/nasa-gibs/worldview/assignees{/user}","branches_url":"https://api.github.com/repos/nasa-gibs/worldview/branches{/branch}","tags_url":"https://api.github.com/repos/nasa-gibs/worldview/tags","blobs_url":"https://api.github.com/repos/nasa-gibs/worldview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nasa-gibs/worldview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nasa-gibs/worldview/git/refs{/sha}","trees_url":"https://api.github.com/repos/nasa-gibs/worldview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nasa-gibs/worldview/statuses/{sha}","languages_url":"https://api.github.com/repos/nasa-gibs/worldview/languages","stargazers_url":"https://api.github.com/repos/nasa-gibs/worldview/stargazers","contributors_url":"https://api.github.com/repos/nasa-gibs/worldview/contributors","subscribers_url":"https://api.github.com/repos/nasa-gibs/worldview/subscribers","subscription_url":"https://api.github.com/repos/nasa-gibs/worldview/subscription","commits_url":"https://api.github.com/repos/nasa-gibs/worldview/commits{/sha}","git_commits_url":"https://api.github.com/repos/nasa-gibs/worldview/git/commits{/sha}","comments_url":"https://api.github.com/repos/nasa-gibs/worldview/comments{/number}","issue_comment_url":"https://api.github.com/repos/nasa-gibs/worldview/issues/comments{/number}","contents_url":"https://api.github.com/repos/nasa-gibs/worldview/contents/{+path}","compare_url":"https://api.github.com/repos/nasa-gibs/worldview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nasa-gibs/worldview/merges","archive_url":"https://api.github.com/repos/nasa-gibs/worldview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nasa-gibs/worldview/downloads","issues_url":"https://api.github.com/repos/nasa-gibs/worldview/issues{/number}","pulls_url":"https://api.github.com/repos/nasa-gibs/worldview/pulls{/number}","milestones_url":"https://api.github.com/repos/nasa-gibs/worldview/milestones{/number}","notifications_url":"https://api.github.com/repos/nasa-gibs/worldview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nasa-gibs/worldview/labels{/name}","releases_url":"https://api.github.com/repos/nasa-gibs/worldview/releases{/id}","deployments_url":"https://api.github.com/repos/nasa-gibs/worldview/deployments","created_at":"2014-04-22T12:37:53Z","updated_at":"2018-10-15T17:43:32Z","pushed_at":"2018-10-22T13:59:32Z","git_url":"git://github.com/nasa-gibs/worldview.git","ssh_url":"git@github.com:nasa-gibs/worldview.git","clone_url":"https://github.com/nasa-gibs/worldview.git","svn_url":"https://github.com/nasa-gibs/worldview","homepage":"https://worldview.earthdata.nasa.gov/","size":61504,"stargazers_count":341,"watchers_count":341,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":103,"mirror_url":null,"archived":false,"open_issues_count":177,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":103,"open_issues":177,"watchers":341,"default_branch":"master"}},"base":{"label":"nasa-gibs:develop","ref":"develop","sha":"5b14020b5b20adfd41b2ea1e05ab84e19f7f9551","user":{"login":"nasa-gibs","id":6089130,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwODkxMzA=","avatar_url":"https://avatars1.githubusercontent.com/u/6089130?v=4","gravatar_id":"","url":"https://api.github.com/users/nasa-gibs","html_url":"https://github.com/nasa-gibs","followers_url":"https://api.github.com/users/nasa-gibs/followers","following_url":"https://api.github.com/users/nasa-gibs/following{/other_user}","gists_url":"https://api.github.com/users/nasa-gibs/gists{/gist_id}","starred_url":"https://api.github.com/users/nasa-gibs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nasa-gibs/subscriptions","organizations_url":"https://api.github.com/users/nasa-gibs/orgs","repos_url":"https://api.github.com/users/nasa-gibs/repos","events_url":"https://api.github.com/users/nasa-gibs/events{/privacy}","received_events_url":"https://api.github.com/users/nasa-gibs/received_events","type":"Organization","site_admin":false},"repo":{"id":19028976,"node_id":"MDEwOlJlcG9zaXRvcnkxOTAyODk3Ng==","name":"worldview","full_name":"nasa-gibs/worldview","private":false,"owner":{"login":"nasa-gibs","id":6089130,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwODkxMzA=","avatar_url":"https://avatars1.githubusercontent.com/u/6089130?v=4","gravatar_id":"","url":"https://api.github.com/users/nasa-gibs","html_url":"https://github.com/nasa-gibs","followers_url":"https://api.github.com/users/nasa-gibs/followers","following_url":"https://api.github.com/users/nasa-gibs/following{/other_user}","gists_url":"https://api.github.com/users/nasa-gibs/gists{/gist_id}","starred_url":"https://api.github.com/users/nasa-gibs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nasa-gibs/subscriptions","organizations_url":"https://api.github.com/users/nasa-gibs/orgs","repos_url":"https://api.github.com/users/nasa-gibs/repos","events_url":"https://api.github.com/users/nasa-gibs/events{/privacy}","received_events_url":"https://api.github.com/users/nasa-gibs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/nasa-gibs/worldview","description":"Interactive interface for browsing global, full-resolution satellite imagery","fork":false,"url":"https://api.github.com/repos/nasa-gibs/worldview","forks_url":"https://api.github.com/repos/nasa-gibs/worldview/forks","keys_url":"https://api.github.com/repos/nasa-gibs/worldview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nasa-gibs/worldview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nasa-gibs/worldview/teams","hooks_url":"https://api.github.com/repos/nasa-gibs/worldview/hooks","issue_events_url":"https://api.github.com/repos/nasa-gibs/worldview/issues/events{/number}","events_url":"https://api.github.com/repos/nasa-gibs/worldview/events","assignees_url":"https://api.github.com/repos/nasa-gibs/worldview/assignees{/user}","branches_url":"https://api.github.com/repos/nasa-gibs/worldview/branches{/branch}","tags_url":"https://api.github.com/repos/nasa-gibs/worldview/tags","blobs_url":"https://api.github.com/repos/nasa-gibs/worldview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nasa-gibs/worldview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nasa-gibs/worldview/git/refs{/sha}","trees_url":"https://api.github.com/repos/nasa-gibs/worldview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nasa-gibs/worldview/statuses/{sha}","languages_url":"https://api.github.com/repos/nasa-gibs/worldview/languages","stargazers_url":"https://api.github.com/repos/nasa-gibs/worldview/stargazers","contributors_url":"https://api.github.com/repos/nasa-gibs/worldview/contributors","subscribers_url":"https://api.github.com/repos/nasa-gibs/worldview/subscribers","subscription_url":"https://api.github.com/repos/nasa-gibs/worldview/subscription","commits_url":"https://api.github.com/repos/nasa-gibs/worldview/commits{/sha}","git_commits_url":"https://api.github.com/repos/nasa-gibs/worldview/git/commits{/sha}","comments_url":"https://api.github.com/repos/nasa-gibs/worldview/comments{/number}","issue_comment_url":"https://api.github.com/repos/nasa-gibs/worldview/issues/comments{/number}","contents_url":"https://api.github.com/repos/nasa-gibs/worldview/contents/{+path}","compare_url":"https://api.github.com/repos/nasa-gibs/worldview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nasa-gibs/worldview/merges","archive_url":"https://api.github.com/repos/nasa-gibs/worldview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nasa-gibs/worldview/downloads","issues_url":"https://api.github.com/repos/nasa-gibs/worldview/issues{/number}","pulls_url":"https://api.github.com/repos/nasa-gibs/worldview/pulls{/number}","milestones_url":"https://api.github.com/repos/nasa-gibs/worldview/milestones{/number}","notifications_url":"https://api.github.com/repos/nasa-gibs/worldview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nasa-gibs/worldview/labels{/name}","releases_url":"https://api.github.com/repos/nasa-gibs/worldview/releases{/id}","deployments_url":"https://api.github.com/repos/nasa-gibs/worldview/deployments","created_at":"2014-04-22T12:37:53Z","updated_at":"2018-10-15T17:43:32Z","pushed_at":"2018-10-22T13:59:32Z","git_url":"git://github.com/nasa-gibs/worldview.git","ssh_url":"git@github.com:nasa-gibs/worldview.git","clone_url":"https://github.com/nasa-gibs/worldview.git","svn_url":"https://github.com/nasa-gibs/worldview","homepage":"https://worldview.earthdata.nasa.gov/","size":61504,"stargazers_count":341,"watchers_count":341,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":103,"mirror_url":null,"archived":false,"open_issues_count":177,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":103,"open_issues":177,"watchers":341,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nasa-gibs/worldview/pulls/1376"},"html":{"href":"https://github.com/nasa-gibs/worldview/pull/1376"},"issue":{"href":"https://api.github.com/repos/nasa-gibs/worldview/issues/1376"},"comments":{"href":"https://api.github.com/repos/nasa-gibs/worldview/issues/1376/comments"},"review_comments":{"href":"https://api.github.com/repos/nasa-gibs/worldview/pulls/1376/comments"},"review_comment":{"href":"https://api.github.com/repos/nasa-gibs/worldview/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nasa-gibs/worldview/pulls/1376/commits"},"statuses":{"href":"https://api.github.com/repos/nasa-gibs/worldview/statuses/89defc08ad0f1fdc891f106020a2a6a497b5c8af"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"edplato"}}