Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1792 from fauvel/issue-1792
Browse files Browse the repository at this point in the history
GA MP: Send along "hostname"
  • Loading branch information
fauvel committed Jun 17, 2015
2 parents 82ea47c + 19362f2 commit df7bade
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ protected function _getParameterDefinition() {
't' => [
'aliasList' => ['hitType'],
],
'dh' => [
'aliasList' => ['hostname'],
],
'ec' => [
'aliasList' => ['eventCategory'],
'hitTypeList' => ['event'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function testTrackEvent() {
'ea' => 'MyAction',
'el' => 'MyLabel',
'ev' => 123,
'dh' => 'example.com',
't' => 'event',
], $parameterList);
});
Expand All @@ -37,6 +38,7 @@ public function testTrackEvent() {
'eventAction' => 'MyAction',
'eventLabel' => 'MyLabel',
'eventValue' => 123,
'hostname' => 'example.com',
]);
$this->assertSame(1, $submitRequestMock->getCallCount());
}
Expand Down

0 comments on commit df7bade

Please sign in to comment.