Does anyone know how we could modify this to keep the UTM parameters when redirecting visitors?

New Contributor

Goal: Use a Javascript language switcher that keeps the UTM parameters when reloading the page automatically pulls the language from the user's browser.

 

Roadblock: When the script automatically pulls the language from the user's browser and reloads the page for a user, we lose their UTM parameters.

 

Question: Does anyone know how we could modify this to keep the UTM parameters when redirecting visitors?

Reply
0 Upvotes
2 Replies
HubSpot Product Team

Hi Maxencegodard,

 

We should be able to come up with a solution to this I think. Could you spin up an example though and link us here? I'll be happy to take a look.