{"action":"opened","number":18,"pull_request":{"url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/pulls/18","id":57521228,"html_url":"https://github.com/segment-integrations/analytics.js-integration-google-analytics/pull/18","diff_url":"https://github.com/segment-integrations/analytics.js-integration-google-analytics/pull/18.diff","patch_url":"https://github.com/segment-integrations/analytics.js-integration-google-analytics/pull/18.patch","issue_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/issues/18","number":18,"state":"open","locked":false,"title":"refactor metrics/dimension/cg decoration function","user":{"login":"sperand-io","id":3130232,"avatar_url":"https://avatars.githubusercontent.com/u/3130232?v=3","gravatar_id":"","url":"https://api.github.com/users/sperand-io","html_url":"https://github.com/sperand-io","followers_url":"https://api.github.com/users/sperand-io/followers","following_url":"https://api.github.com/users/sperand-io/following{/other_user}","gists_url":"https://api.github.com/users/sperand-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sperand-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sperand-io/subscriptions","organizations_url":"https://api.github.com/users/sperand-io/orgs","repos_url":"https://api.github.com/users/sperand-io/repos","events_url":"https://api.github.com/users/sperand-io/events{/privacy}","received_events_url":"https://api.github.com/users/sperand-io/received_events","type":"User","site_admin":false},"body":"... to accomodate mapping the same property to multiple fields (ie. `property_x` to both a custom dimension and a content grouping)\r\n\r\nNew test case (was failing) demonstrates the issue.","created_at":"2016-01-28T15:53:34Z","updated_at":"2016-01-28T15:53:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/pulls/18/commits","review_comments_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/pulls/18/comments","review_comment_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/issues/18/comments","statuses_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/statuses/75c16d851d95d2dceb948ffe86aa1c7dca444bbf","head":{"label":"segment-integrations:fix/metrics","ref":"fix/metrics","sha":"75c16d851d95d2dceb948ffe86aa1c7dca444bbf","user":{"login":"segment-integrations","id":11207740,"avatar_url":"https://avatars.githubusercontent.com/u/11207740?v=3","gravatar_id":"","url":"https://api.github.com/users/segment-integrations","html_url":"https://github.com/segment-integrations","followers_url":"https://api.github.com/users/segment-integrations/followers","following_url":"https://api.github.com/users/segment-integrations/following{/other_user}","gists_url":"https://api.github.com/users/segment-integrations/gists{/gist_id}","starred_url":"https://api.github.com/users/segment-integrations/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segment-integrations/subscriptions","organizations_url":"https://api.github.com/users/segment-integrations/orgs","repos_url":"https://api.github.com/users/segment-integrations/repos","events_url":"https://api.github.com/users/segment-integrations/events{/privacy}","received_events_url":"https://api.github.com/users/segment-integrations/received_events","type":"Organization","site_admin":false},"repo":{"id":37163239,"name":"analytics.js-integration-google-analytics","full_name":"segment-integrations/analytics.js-integration-google-analytics","owner":{"login":"segment-integrations","id":11207740,"avatar_url":"https://avatars.githubusercontent.com/u/11207740?v=3","gravatar_id":"","url":"https://api.github.com/users/segment-integrations","html_url":"https://github.com/segment-integrations","followers_url":"https://api.github.com/users/segment-integrations/followers","following_url":"https://api.github.com/users/segment-integrations/following{/other_user}","gists_url":"https://api.github.com/users/segment-integrations/gists{/gist_id}","starred_url":"https://api.github.com/users/segment-integrations/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segment-integrations/subscriptions","organizations_url":"https://api.github.com/users/segment-integrations/orgs","repos_url":"https://api.github.com/users/segment-integrations/repos","events_url":"https://api.github.com/users/segment-integrations/events{/privacy}","received_events_url":"https://api.github.com/users/segment-integrations/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/segment-integrations/analytics.js-integration-google-analytics","description":"The Google Analytics analytics.js integration.","fork":false,"url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics","forks_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/forks","keys_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/teams","hooks_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/hooks","issue_events_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/issues/events{/number}","events_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/events","assignees_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/assignees{/user}","branches_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/branches{/branch}","tags_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/tags","blobs_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/git/refs{/sha}","trees_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/statuses/{sha}","languages_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/languages","stargazers_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/stargazers","contributors_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/contributors","subscribers_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/subscribers","subscription_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/subscription","commits_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/commits{/sha}","git_commits_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/git/commits{/sha}","comments_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/comments{/number}","issue_comment_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/issues/comments{/number}","contents_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/contents/{+path}","compare_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/merges","archive_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/downloads","issues_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/issues{/number}","pulls_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/pulls{/number}","milestones_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/milestones{/number}","notifications_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/labels{/name}","releases_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/releases{/id}","deployments_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/deployments","created_at":"2015-06-09T23:00:38Z","updated_at":"2016-01-11T23:44:23Z","pushed_at":"2016-01-28T15:53:34Z","git_url":"git://github.com/segment-integrations/analytics.js-integration-google-analytics.git","ssh_url":"git@github.com:segment-integrations/analytics.js-integration-google-analytics.git","clone_url":"https://github.com/segment-integrations/analytics.js-integration-google-analytics.git","svn_url":"https://github.com/segment-integrations/analytics.js-integration-google-analytics","homepage":"https://segment.com/docs/integrations/google-analytics/","size":35,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":9,"forks":4,"open_issues":9,"watchers":4,"default_branch":"master"}},"base":{"label":"segment-integrations:master","ref":"master","sha":"cc98cc4ff8799af0c8caea7c975ca653f1b2c9d1","user":{"login":"segment-integrations","id":11207740,"avatar_url":"https://avatars.githubusercontent.com/u/11207740?v=3","gravatar_id":"","url":"https://api.github.com/users/segment-integrations","html_url":"https://github.com/segment-integrations","followers_url":"https://api.github.com/users/segment-integrations/followers","following_url":"https://api.github.com/users/segment-integrations/following{/other_user}","gists_url":"https://api.github.com/users/segment-integrations/gists{/gist_id}","starred_url":"https://api.github.com/users/segment-integrations/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segment-integrations/subscriptions","organizations_url":"https://api.github.com/users/segment-integrations/orgs","repos_url":"https://api.github.com/users/segment-integrations/repos","events_url":"https://api.github.com/users/segment-integrations/events{/privacy}","received_events_url":"https://api.github.com/users/segment-integrations/received_events","type":"Organization","site_admin":false},"repo":{"id":37163239,"name":"analytics.js-integration-google-analytics","full_name":"segment-integrations/analytics.js-integration-google-analytics","owner":{"login":"segment-integrations","id":11207740,"avatar_url":"https://avatars.githubusercontent.com/u/11207740?v=3","gravatar_id":"","url":"https://api.github.com/users/segment-integrations","html_url":"https://github.com/segment-integrations","followers_url":"https://api.github.com/users/segment-integrations/followers","following_url":"https://api.github.com/users/segment-integrations/following{/other_user}","gists_url":"https://api.github.com/users/segment-integrations/gists{/gist_id}","starred_url":"https://api.github.com/users/segment-integrations/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segment-integrations/subscriptions","organizations_url":"https://api.github.com/users/segment-integrations/orgs","repos_url":"https://api.github.com/users/segment-integrations/repos","events_url":"https://api.github.com/users/segment-integrations/events{/privacy}","received_events_url":"https://api.github.com/users/segment-integrations/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/segment-integrations/analytics.js-integration-google-analytics","description":"The Google Analytics analytics.js integration.","fork":false,"url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics","forks_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/forks","keys_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/teams","hooks_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/hooks","issue_events_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/issues/events{/number}","events_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/events","assignees_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/assignees{/user}","branches_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/branches{/branch}","tags_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/tags","blobs_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/git/refs{/sha}","trees_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/statuses/{sha}","languages_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/languages","stargazers_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/stargazers","contributors_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/contributors","subscribers_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/subscribers","subscription_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/subscription","commits_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/commits{/sha}","git_commits_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/git/commits{/sha}","comments_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/comments{/number}","issue_comment_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/issues/comments{/number}","contents_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/contents/{+path}","compare_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/merges","archive_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/downloads","issues_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/issues{/number}","pulls_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/pulls{/number}","milestones_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/milestones{/number}","notifications_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/labels{/name}","releases_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/releases{/id}","deployments_url":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/deployments","created_at":"2015-06-09T23:00:38Z","updated_at":"2016-01-11T23:44:23Z","pushed_at":"2016-01-28T15:53:34Z","git_url":"git://github.com/segment-integrations/analytics.js-integration-google-analytics.git","ssh_url":"git@github.com:segment-integrations/analytics.js-integration-google-analytics.git","clone_url":"https://github.com/segment-integrations/analytics.js-integration-google-analytics.git","svn_url":"https://github.com/segment-integrations/analytics.js-integration-google-analytics","homepage":"https://segment.com/docs/integrations/google-analytics/","size":35,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":9,"forks":4,"open_issues":9,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/pulls/18"},"html":{"href":"https://github.com/segment-integrations/analytics.js-integration-google-analytics/pull/18"},"issue":{"href":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/issues/18"},"comments":{"href":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/segment-integrations/analytics.js-integration-google-analytics/statuses/75c16d851d95d2dceb948ffe86aa1c7dca444bbf"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":23,"deletions":10,"changed_files":2}}