Forum Discussion

CarolineS's avatar
6 years ago

Maintain URL parameters in a page initialization script redirect?

Hi team! I'm not really a developer (as I imagine will be evident in my question below), but trying to cobble this one together. Could use some help! So... I've realized that some of our google UTM...
  • Parshant's avatar
    6 years ago

    CarolineS,

    You can first check the parameter values in parameter and store in the variable.something like:

    <#assign utm_source = http.request.parameters.name.get("utm_source", "") />
    <#assign utm_medium = http.request.parameters.name.get("utm_medium", "") />

    and pass these values if present to url along with redirect parameter something like this:

    ${merakiCommunityHomeUrl}?utm_source=${utm_source}&utm_medium=${utm_medium}