Skip to main content
Answered

How can I merge query parameters in a url for a link in an email?

  • April 15, 2024
  • 1 reply
  • 177 views

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?

Best answer by Jacob Cox

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. 

View original
Did this topic help you find an answer to your question?

1 reply

Jacob Cox
Intercom Team
Forum|alt.badge.img+5
  • Sr. Technical Support Engineer
  • 441 replies
  • Answer
  • April 21, 2024

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. 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings