Skip to main content
Matt_Perkins
Level 2
December 20, 2018
New

Bulk replace URLs

  • December 20, 2018
  • 3 replies
  • 5144 views

Following a website re-design, we've faced the requirement to update all our marketo assets to the new revised URLs for our new website.

Rather than having to manually go through each individual asset and updating the multitude of links within them (risking missing some), a find and replace function that allows you to search and replace URLs across our assets would save a lot of time and de-risk the potential of missing updating links across our assets.

3 replies

SanfordWhiteman
Level 10
December 20, 2018

But that could never catch URLs that are built from tokens and variables -- and if you used {{my.tokens}} it would also be that much easier to replace.

Matt_Perkins
Level 2
December 20, 2018

I was thinking about this more from a database perspective where it looks at URLs listed anywhere in your accounts (which could potentially include tokens).

Replacing tokens would be a good idea going forward within emails with the same URL multiple times. But saying that, there is still hundreds of emails, landing pages, forms etc that now need to be updated. Even if you were using tokens that wouldn't cut down the amount of time to go into each program to update the token URLs. (thus my hope for a find and replace)

SanfordWhiteman
Level 10
December 20, 2018

I was thinking about this more from a database perspective where it looks at URLs listed anywhere in your accounts (which could potentially include tokens).

But that's the thing: URLs are often composed of multiple {{my.tokens}}. There's nothing about a {{my.token}} that signals it'll be used as the value of a query param, or that a variable is used as part of a tracking pixel path.

Jesse_Richard
Level 3
January 2, 2019

Yes! Just went through a similar exercise. Re-did our website, and needed to update all the confirmation emails with the new links. We implemented redirects in the CMS, problem is, Marketo appends tracking parameters to all links, so the redirect doesn't pick up the URL and instead delivers a 404.

SanfordWhiteman
Level 10
January 2, 2019

But any redirect logic needs to be prepared for additional query parameters. This isn't Marketo doing anything wrong. What do you do when a search engine automatically appends query params? Is that a 404?

Jesse_Richard
Level 3
January 3, 2019

Organic search results doesn't append any query parameters and we aren't running any PPC ads or other advertisements with querystrings to the old links.

Unfortunately we can't use RegEx santax for these specific redirects because of the nature of the domain structure. For example, we have a link pointing to website.com/solutions/, but Marketo links it to it website.com/solutions/?mkt_tok=#&#&#&#&#&#&#&#&#&#&#&#&#&#&#. If we used RegEx to include any link with preceded with website.com/solutions/ then any page underneath the /solutions/ section (e.g. website.com/solutions/product) would redirect to the top-level page.

February 4, 2020
No text available