Landing Page Dynamic Content based on URL Parameter | Community
Skip to main content
Jaime_Servaes
Level 3
April 5, 2017
Question

Landing Page Dynamic Content based on URL Parameter

  • April 5, 2017
  • 2 replies
  • 7086 views

I'm not sure if this is even possible, but I would like my landing page content to change based on the utm_source in the URL parameter. So if a person is coming to the landing page from vendor site 1, I want the hero text to change and if someone else comes from vendor site 2 I want the hero text to display something different for them, and then of course I want a default hero text if there is no utm_source.

I thought about trying this with a segment but I don't believe that will work b/c the filters in segments are based on data in the database and not the incoming URL. So has anyone done this before and is it possible?

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

2 replies

Grégoire_Miche2
Level 10
April 5, 2017

Hi Jaime,

This is not feasible with Marketo standard functionality as the segments are computed after some delays and far after the page is rendered. I have not tested, but even RTP would probably have a hard time handling this. Another issue would be performance: you need the page to render quickly, so you probably want to avoid too many exchanges between the client and the server.

You will have to go through javascript I am afraid. All the content (both banners) will be pushed to the client and the JS would get the referrer and hide and show the relevant elements.

-Greg

Jaime_Servaes
Level 3
April 5, 2017

Greg,

Thanks for you feedback. I was leaning toward that being the issue but wanted confirmation just in case it could be handled another way.

Thanks!

Jaime

SanfordWhiteman
Level 10
April 5, 2017

It actually is totally possible. Do this via runtime segmentation (a.k.a. self-segmentation).

Pass URL parameters {segmentation}={segment}: for your example, create a segmentation​ utm_source with corresponding segments.

Got a feeling @Grégoire Michel's about to get his mind blown...

April 5, 2017

If you're just changing a line of text without tokens or anything in it, you could do this with JS. You create a simple mapping:

{

"vendor1":"Here's the text to display for those coming from Vendor 1",

"vendor2:"Some different text for these people"

}

Where the key matches your URL parameter and the value represents the text string you want to use.

Then replace the text on your page.