Skip to content

Commit

Permalink
Merge pull request #27 from piwik/arraycustomparam
Browse files Browse the repository at this point in the history
Allow arrays to be used in custom parameters
  • Loading branch information
tsteur committed Jun 8, 2017
2 parents 5f43529 + 83671a2 commit 08deaa8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions PiwikTracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -1652,9 +1652,7 @@ protected function getRequest($idSite)

$customFields = '';
if (!empty($this->customParameters)) {
foreach ($this->customParameters as $parameter => $value) {
$customFields .= '&' . urlencode($parameter) . '=' . urlencode($value);
}
$customFields = '&' . http_build_query($this->customParameters, '', '&');
}

$url = $this->getBaseUrl() .
Expand Down

0 comments on commit 08deaa8

Please sign in to comment.