Hi team, I’m using Matomo to track traffic from Google Ads. My setup includes a redirect link before the user lands on the main website: Google Ads → redirect.mytrackingdomain.com → mylandingpage.com After this redirect, the referrer or campaign dat

Hi team,

I’m using Matomo to track traffic from Google Ads.
My setup includes a redirect link before the user lands on the main website:
Google Ads → redirect.mytrackingdomain.com → mylandingpage.com

After this redirect, the referrer or campaign data disappears in Matomo (it shows as “direct traffic”).
Could you please show me how to preserve the referrer and campaign parameters after a redirect?

Thank you!

Hey,
Before checking anything else, I would first look at the redirect to see if the whole query string is maintained. If gclid or the UTM parameters are not included in the redirect, then Matomo will track the visit as a direct one. It can be tested by using the URL with the utm_source and utm_campaign parameters.

The redirect is likely dropping the query string. Make sure gclid and UTM parameters are forwarded to the final URL. Also check that the redirect isn’t stripping the referrer. Once those are preserved, Matomo should attribute the Google Ads traffic correctly instead of showing it as direct.

I’ve faced similar issues with redirects before. Make sure the campaign parameters are passed through to the final URL, and check that the redirect doesn’t remove the tracking information.