Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog

#### 5.1.5 - 2025-11-11
- Fixed fatal error due to new code to track AI referrer visit

#### 5.1.4 - 2025-11-10
- Fixed incorrectly forcing a new visit for visits referred by AI referrers

Expand Down
2 changes: 1 addition & 1 deletion Columns/CampaignName.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function shouldForceNewVisit(Request $request, Visitor $visitor, Action $
// That one will be detected as AI Assistant by core. But if someone reloads that page
// and the utm source is still present, the check here might otherwise force a new visit,
// if the `utm_source` parameter is configured.
if ((int)$visitor->getVisitorColumn('referer_type') === 8 && count($campaignDimensions) === 1) {
if ((int)$visitor->getVisitorColumn('referer_type') === 8 && !empty($campaignDimensions) && count($campaignDimensions) === 1) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$campaignDimensions can return boolean|array

$paramValue = reset($campaignDimensions);
if (class_exists('Piwik\Plugins\Referrers\AIAssistant') && \Piwik\Plugins\Referrers\AIAssistant::getInstance()->getAIAssistantFromDomain($paramValue)) {
return false;
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "MarketingCampaignsReporting",
"description": "Measure the effectiveness of your marketing campaigns. New reports, segments & track up to five channels: campaign, source, medium, keyword, content.",
"version": "5.1.4",
"version": "5.1.5",
"keywords": ["Campaign", "Marketing", "Channels", "UTM tags"],
"license": "GPL v3+",
"homepage": "https://matomo.org",
Expand Down