Skip to main content
Drew_Liner1
Level 1
January 19, 2018
Question

Redirected landing page - how to pass on original UTM's

  • January 19, 2018
  • 3 replies
  • 2601 views

Hello Everyone.

An existing landing page has a bunch of custom urls with utm's all sent to publishers and online media vendors for tracking.

I now have to redirect that landing page and when I do, the utm's are dropped in place of that new url.

How do I pass on those UTM's?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Community Advisor
January 19, 2018

you need to add wildcards to your redirect. I've used this page to design them, before.

Ultimately you'll need something like:

Source: ^/thisiswhere/myfileswere(.+)

Destination: /thisiswhere/myfilesmovedto$1

SanfordWhiteman
Level 10
January 19, 2018

I don't think Marketo has full regex support like that.

Community Advisor
January 19, 2018

well that sucks

Community Advisor
January 19, 2018

VOTE HERE

SanfordWhiteman
Level 10
January 19, 2018

For now use a JS redirect (not a Redirect Rule) on the original page.

In the <head>:

<script>

var redirectURL = document.createElement("a");

redirectURL.href = "http://pages.example.com/newurl.html";

redirectURL.search = document.location.search;

document.location = redirectURL;

</script>