How can I merge query parameters in a url for a link in an email? | Community
Skip to main content

We send a link to intercom via an event that looks something like this:

 

Page Url: https://example.com/some-page?test=true

 

In our email, we have UTM tracking enabled, and the preview of the attributes looks like:


utm_source=intercom&utm_medium=email&utm_campaign=email-testing

 

the link attribute on a button set to:


{Page Url}?utm_content=toplink

 

Ideally, we would like all of these query params merging like this:


https://example.com/some-page?test=true&utm_source=intercom&utm_medium=email&utm_campaign=email-testing&utm_content=toplink

 

...but instead, we see only the utm tracking:


https://example.com/some-page?utm_source=intercom&utm_medium=email&utm_campaign=email-testing

 

How can we merge all of these query params in such a way as to ensure we get the complete set?

Hey there @Nick Reynolds !

When I create an email that includes a UTM query param in the button link and I turn on UTM tracking, it does merge those UTM params. When I click on the button link in the email it takes me to the URL with all 4 UTM parameters, like in the screenshot below. In this case the utm_content param was included in the button link and the other 3 were included as part of the email message.

If you aren’t seeing this behavior then you may need to provide more specific details around how you are testing this out.