Persisting query parameters in a redirect experience

  • Updated

If you are using a redirect experience and noticing that the query parameters (i.e. UTMs, gclid, fbclid) are being removed from visitors coming into the new redirect links, you can persist those query parameters by adding some custom variables to your redirect link.

 

Example

Let's say you wanted to ensure that any UTM variable persisted to the redirect link. To do this, edit the redirect experience so that your "redirect URL" includes the following query parameters at the end:

​?utm_campaign={{query.utm_campaign}}&utm_source={{query.utm_source}}&utm_medium={{query.utm_medium}}&utm_term={{query.utm_term}}&utm_content={{query.utm_content}}

Screenshot 2024-03-25 at 3.18.03 PM.png

 

 

You can apply this same logic to any other query parameter. So for example, if you also wanted to ensure that the gclid was persisted, you could add this to the end of your redirect url:

 

 &gclid={{query.gclid}}

Note: If a user arrives on your site but doesn’t have a particular query parameter (e.g. they have utm_campaign but not utm_content), the utm_content field will remain blank and the utm_campaign string will populate in the new redirect URL.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.