UTM Parameters Lost During 301 Redirect from WordPress to HubSpot Landing Pages

I’m running into an issue with my website setup. I have my main site on WordPress and I’m using HubSpot for my landing pages. The HubSpot landing pages are on a subdomain which is causing problems with my Google Ads campaigns because the subdomain shows up in the ad URLs instead of my main domain.

To fix this, I set up 301 redirects from WordPress to redirect visitors from my main domain to the HubSpot landing pages. This works great for showing my main domain in the ads, but I’m losing all the UTM tracking parameters when the redirect happens.

Has anyone dealt with this before? I need to keep the UTM parameters intact so I can track my campaign performance properly. Any suggestions on how to preserve the UTM parameters during the redirect process would be really helpful.

Had this exact problem last year when migrating landing pages. Basic 301 redirects don’t pass query parameters automatically - you need to modify your .htaccess redirect rules to include the QSA flag (Query String Append). Here’s what worked for me: “RewriteRule ^landing-page$ https://subdomain.hubspot.com/landing-page [R=301,L,QSA]”. This grabs whatever UTM parameters hit the original URL and passes them to the destination. I tested it extensively with Google Analytics and all tracking stayed intact. Just make sure you test a few different UTM combinations before pushing it live to all your campaigns.