Missing campaign links in Campaign Reports
You can configure Matomo to exclude specific query parameters from tracking to filter out data and refine your reporting. This feature can affect campaign reporting if your campaign tracking parameters are on the exclusion list. In which case, they will be filtered out before the data is recorded. If you have an active campaign but not seeing results, follow these steps to check for excluded parameters.
- Open your website in a browser and use the Developer Tools (F12 > Elements or Sources tab) to find the Matomo tracking script.
- Look for the method
setExcludedQueryParams
, typically defined above thetrackPageView
method in the tracking code. For example:
_paq.push(['setExcludedQueryParams', ['sessionid', 'ref']]);
_paq.push(['trackPageView']);
If setExcludedQueryParams
is visible in the Matomo tracking code on your website, you can change it in the locations described below.
Default JavaScript Tracking Code
If you are using the JavaScript tracking code, check the following:
- Navigate to Matomo settings
> Measurables > Manage > (your site) and click the Edit icon.
- Scroll down to Excluded Parameters and check which campaign parameters are excluded from tracking.
- Remove the parameters from the exclusion list that you want to track and report on.
- Matomo automatically updates the tracking code in Matomo settings
> Measurables > Tracking code.
Matomo Tag Manager
If you are using Tag Manager, check the following:
- Open your Tag Manager container/s and go to Variables.
- Edit the Matomo Configuration Variable/s by expanding Advanced settings.
- Finally, review the setting for Set query params to exclude from URL, and remove any parameters that should be tracked.
Matomo On-Premise only
In rare cases, exclusions may also be defined globally in your Matomo configuration file.
- Open
matomo/config/config.ini.php
and look for the line starting withexclude_requests =
. - This setting defines a global exclusion pattern using a regular expression.
- If campaign URLs match this pattern, they will be excluded across all sites.
After updating your settings, revisit your campaign URLs to confirm that the relevant data is now being tracked as expected. If you’re still not seeing results, consider testing your campaign links in a private browser window to rule out caching or other factors.