Skip to content

Commit

Permalink
refs #8140 visitor log+profile: show campaign details in same depth &…
Browse files Browse the repository at this point in the history
… format
  • Loading branch information
tsteur committed Aug 6, 2015
1 parent 08f113d commit 78486df
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion plugins/Live/VisitorProfile.php
Expand Up @@ -133,7 +133,14 @@ public static function getReferrerSummaryForVisit($visit)
}

if ($referrerType == 'campaign') {
return Piwik::translate('Referrers_ColumnCampaign') . ' (' . $visit->getColumn('referrerName') . ')';

$summary = Piwik::translate('Referrers_ColumnCampaign') . ': ' . $visit->getColumn('referrerName');
$keyword = $visit->getColumn('referrerKeyword');
if (!empty($keyword)) {
$summary .= ' - ' . $keyword;
}

return $summary;
}

return $visit->getColumn('referrerName');
Expand Down

0 comments on commit 78486df

Please sign in to comment.