{"action":"created","comment":{"url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/pulls/comments/75731554","id":75731554,"diff_hunk":"@@ -449,6 +449,17 @@ describe('Google Analytics :: Universal', function() {\n       });\n     });\n \n+    describe('#refundedOrderPartial', function() {\n+      it('should send the right data', function(done) {\n+        var json = test.fixture('refunded-order-partial');\n+        test\n+          .set(settings)\n+          .track(json.input)\n+          .sendsAlmost(json.output, {ignored: ['qt']})","path":"test/universal.js","position":10,"original_position":10,"commit_id":"2771b369518609a1538b4d34f07b1da1688abf67","original_commit_id":"2771b369518609a1538b4d34f07b1da1688abf67","user":{"login":"hankim813","id":5907121,"avatar_url":"https://avatars.githubusercontent.com/u/5907121?v=3","gravatar_id":"","url":"https://api.github.com/users/hankim813","html_url":"https://github.com/hankim813","followers_url":"https://api.github.com/users/hankim813/followers","following_url":"https://api.github.com/users/hankim813/following{/other_user}","gists_url":"https://api.github.com/users/hankim813/gists{/gist_id}","starred_url":"https://api.github.com/users/hankim813/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hankim813/subscriptions","organizations_url":"https://api.github.com/users/hankim813/orgs","repos_url":"https://api.github.com/users/hankim813/repos","events_url":"https://api.github.com/users/hankim813/events{/privacy}","received_events_url":"https://api.github.com/users/hankim813/received_events","type":"User","site_admin":false},"body":"why are we ignoring `qt`? ","created_at":"2016-08-22T18:26:55Z","updated_at":"2016-08-22T18:26:55Z","html_url":"https://github.com/segment-integrations/integration-google-analytics/pull/48#discussion_r75731554","pull_request_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/segment-integrations/integration-google-analytics/pulls/comments/75731554"},"html":{"href":"https://github.com/segment-integrations/integration-google-analytics/pull/48#discussion_r75731554"},"pull_request":{"href":"https://api.github.com/repos/segment-integrations/integration-google-analytics/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/pulls/48","id":82060281,"html_url":"https://github.com/segment-integrations/integration-google-analytics/pull/48","diff_url":"https://github.com/segment-integrations/integration-google-analytics/pull/48.diff","patch_url":"https://github.com/segment-integrations/integration-google-analytics/pull/48.patch","issue_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/issues/48","number":48,"state":"open","locked":false,"title":"added partial refund functionality to orderRefunded method","user":{"login":"myclamm","id":6260204,"avatar_url":"https://avatars.githubusercontent.com/u/6260204?v=3","gravatar_id":"","url":"https://api.github.com/users/myclamm","html_url":"https://github.com/myclamm","followers_url":"https://api.github.com/users/myclamm/followers","following_url":"https://api.github.com/users/myclamm/following{/other_user}","gists_url":"https://api.github.com/users/myclamm/gists{/gist_id}","starred_url":"https://api.github.com/users/myclamm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myclamm/subscriptions","organizations_url":"https://api.github.com/users/myclamm/orgs","repos_url":"https://api.github.com/users/myclamm/repos","events_url":"https://api.github.com/users/myclamm/events{/privacy}","received_events_url":"https://api.github.com/users/myclamm/received_events","type":"User","site_admin":false},"body":"Fixed our server-side GA integration to allow partial refunds the same way our A.js GA integration does. Per the GA docs, you need to include product ID and product Qty for partial refunds to work:\r\n\r\nRequired Params, per GA:\r\n\r\nv=1                                   // Version.\r\n&tid=UA-XXXXX-Y                       // Tracking ID / Property ID.\r\n&cid=555                              // Anonymous Client ID.\r\n&t=event                              // Event hit type.\r\n&ec=Ecommerce                         // Event Category. Required.\r\n&ea=Refund                            // Event Action. Required.\r\n&ni=1                                 // Non-interaction parameter.\r\n\r\n&ti=T12345                            // Transaction ID. Required.\r\n&pa=refund                            // Product action (refund). Required.\r\n&pr1id=P12345                         // Product 1 ID. Required.\r\n&pr1qt=1                              // Product 1 quantity. Required.\r\n","created_at":"2016-08-19T23:43:56Z","updated_at":"2016-08-22T18:26:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"840df9938d0e1f1f0df43873ba2853f0edcf95ef","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/pulls/48/commits","review_comments_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/pulls/48/comments","review_comment_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/issues/48/comments","statuses_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/statuses/2771b369518609a1538b4d34f07b1da1688abf67","head":{"label":"segment-integrations:addedPartialRefund","ref":"addedPartialRefund","sha":"2771b369518609a1538b4d34f07b1da1688abf67","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":26639837,"name":"integration-google-analytics","full_name":"segment-integrations/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/integration-google-analytics","description":"Google Analytics server-side integration","fork":false,"url":"https://api.github.com/repos/segment-integrations/integration-google-analytics","forks_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/forks","keys_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/teams","hooks_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/hooks","issue_events_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/issues/events{/number}","events_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/events","assignees_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/assignees{/user}","branches_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/branches{/branch}","tags_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/tags","blobs_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/git/refs{/sha}","trees_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/statuses/{sha}","languages_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/languages","stargazers_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/stargazers","contributors_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/contributors","subscribers_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/subscribers","subscription_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/subscription","commits_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/commits{/sha}","git_commits_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/git/commits{/sha}","comments_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/comments{/number}","issue_comment_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/issues/comments{/number}","contents_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/contents/{+path}","compare_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/merges","archive_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/downloads","issues_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/issues{/number}","pulls_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/pulls{/number}","milestones_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/milestones{/number}","notifications_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/labels{/name}","releases_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/releases{/id}","deployments_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/deployments","created_at":"2014-11-14T13:31:37Z","updated_at":"2016-06-08T17:49:47Z","pushed_at":"2016-08-19T23:43:56Z","git_url":"git://github.com/segment-integrations/integration-google-analytics.git","ssh_url":"git@github.com:segment-integrations/integration-google-analytics.git","clone_url":"https://github.com/segment-integrations/integration-google-analytics.git","svn_url":"https://github.com/segment-integrations/integration-google-analytics","homepage":"segment.com","size":123,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":21,"default_branch":"master"}},"base":{"label":"segment-integrations:master","ref":"master","sha":"2cffa547a84192ccbf4431ceeaba256d1c2a690a","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":26639837,"name":"integration-google-analytics","full_name":"segment-integrations/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/integration-google-analytics","description":"Google Analytics server-side integration","fork":false,"url":"https://api.github.com/repos/segment-integrations/integration-google-analytics","forks_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/forks","keys_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/teams","hooks_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/hooks","issue_events_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/issues/events{/number}","events_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/events","assignees_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/assignees{/user}","branches_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/branches{/branch}","tags_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/tags","blobs_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/git/refs{/sha}","trees_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/statuses/{sha}","languages_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/languages","stargazers_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/stargazers","contributors_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/contributors","subscribers_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/subscribers","subscription_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/subscription","commits_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/commits{/sha}","git_commits_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/git/commits{/sha}","comments_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/comments{/number}","issue_comment_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/issues/comments{/number}","contents_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/contents/{+path}","compare_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/merges","archive_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/downloads","issues_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/issues{/number}","pulls_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/pulls{/number}","milestones_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/milestones{/number}","notifications_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/labels{/name}","releases_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/releases{/id}","deployments_url":"https://api.github.com/repos/segment-integrations/integration-google-analytics/deployments","created_at":"2014-11-14T13:31:37Z","updated_at":"2016-06-08T17:49:47Z","pushed_at":"2016-08-19T23:43:56Z","git_url":"git://github.com/segment-integrations/integration-google-analytics.git","ssh_url":"git@github.com:segment-integrations/integration-google-analytics.git","clone_url":"https://github.com/segment-integrations/integration-google-analytics.git","svn_url":"https://github.com/segment-integrations/integration-google-analytics","homepage":"segment.com","size":123,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/segment-integrations/integration-google-analytics/pulls/48"},"html":{"href":"https://github.com/segment-integrations/integration-google-analytics/pull/48"},"issue":{"href":"https://api.github.com/repos/segment-integrations/integration-google-analytics/issues/48"},"comments":{"href":"https://api.github.com/repos/segment-integrations/integration-google-analytics/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/segment-integrations/integration-google-analytics/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/segment-integrations/integration-google-analytics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/segment-integrations/integration-google-analytics/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/segment-integrations/integration-google-analytics/statuses/2771b369518609a1538b4d34f07b1da1688abf67"}}}}
{"actor":{"display_login":"hankim813"}}