matomo-org / matomo-org/plugin-MarketingCampaignsReporting

[Bug] If custom campaign parameters are set up in the config.ini.php, Matomo detects a new visit on any non-pageview action

Open
#157 19 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
28
Forks
21
Avg merge
3d 5h
Merged PRs (30d)
11

Description

If custom campaign parameters are set up in the config.ini.php and used alongside standard parameters, Matomo detects a new visit on any action (e.g. https://example.org/?mtm_campaign=test2&utm_campaign=test3 while having [MarketingCampaignsReporting]
campaign_name = "utm_campaign" in youf config.ini.php):

![mtm-utm](https://github.com/user-attachments/assets/c47737d7-a4e4-4642-a0b1-1492a0a1fef9)

When commented out, actions are correctly attributed to the initial visitor:

![mtm-utm1](https://github.com/user-attachments/assets/a376b495-424f-498f-be26-a53d5439d488)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the visit-splitting behavior with the campaign_name setting in config.ini.php, using both mtm_campaign and utm_campaign as shown in the issue. Compare attribution for pageview and non-pageview actions with the custom parameter enabled and commented out; done means non-pageview actions remain attributed to the initial visitor.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
analytics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.