Skip to content

Commit

Permalink
Merge pull request #108 from matomo-org/fix-referrers-label-link
Browse files Browse the repository at this point in the history
referrers subtable has full URL
  • Loading branch information
diosmosis authored Aug 13, 2020
2 parents 7502430 + 5690bc0 commit 9cc822b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Importers/Referrers/RecordImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,9 @@ private function getUrlByWebsite(Date $day)
} else {
$parsedUrl = @parse_url($referrerUrl);
$host = isset($parsedUrl['host']) ? $parsedUrl['host'] : self::NOT_SET_IN_GA_LABEL;
$path = isset($parsedUrl['path']) ? $parsedUrl['path'] : self::NOT_SET_IN_GA_LABEL;

$topLevelRow = $this->addRowToTable($urlByWebsite, $row, $host);
$this->addRowToSubtable($topLevelRow, $row, $path);
$this->addRowToSubtable($topLevelRow, $row, $referrerUrl);

$this->addRowToTable($this->referrerTypeRecord, $row, Common::REFERRER_TYPE_WEBSITE);
}
Expand Down

0 comments on commit 9cc822b

Please sign in to comment.