Pass UTM Parameters in the Form Redirect URL

Your software
My Mautic version is: 2.15.1
My PHP version is: 7.2

Your problem
My problem is:

Is it possible to pass the UTM parameters that can be collected when the user fills out the form to the redirect page as part of the query string…

I’m trying to pass utm data from a main domain to a subdomain after the form is submitted.

Hi @davedunn and welcome to the Mautic community forums! :tada:

My first gut reaction is, turning on cross-domain tracking should fix this out of the box without too much tinkering.

Is there a reason for not enabling cross-domain tracking in GA? Or is it not working?

Hi @rcheesley ! Thanks for the reply.

I would have hoped it worked, but GA is showing the medium as the ‘Referral’ and source as the main domain… even though by default the main domain is set as the referral exclusion

However the client ID is correctly passed over from the main domain to the subdomain.

Any ideas whats going wrong?

Think I’ve solved this by adding the www url to the referral exclusion. It seems the UTM parameters are now showing instead of ‘Referral’

Thanks again!

2 Likes

Hurrah! Glad you got to the bottom of it!

1 Like