Dynamic content suggestion on Thank You page | Community
Skip to main content
September 16, 2016
Solved

Dynamic content suggestion on Thank You page

  • September 16, 2016
  • 1 reply
  • 4850 views

Hi,

I have a "Thank You" page where a user ends up after downloading a piece of content. All my content landing pages points to that "Thank You" page after the user fills out the download form.

I want to include a section "Other content that you might like" on the page that will dynamically display other content that does not include the one that the user has just downloaded.

So far what I've done is create custom lead field "Last Visited Page" which populates with the URL of the content landing page the user is on after the form-fill. Based on that custom field, I've created segments and accompanying snippets that will display the suggested content. However, as the field is populated only after the form-fill, it doesn't update fast enough to be segmented quickly so that the right suggested content will display on the "Thank You" page.

Does anyone have a suggestion on the best way to go about this?

And, is there a way to dynamically display random suggested content without segmentation? (my edition of Marketo does not include RTP)

cheers,

Marilyn

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

You can set the full Thank You URL in the browser using the onSuccess handler. (Sorry for the strange spacing, using my phone doesn't let me format.)

MktoForms2.whenReady(function(form){

  form.onSuccess(function(vals,tyURL){

    switch( vals.Vertical ){ // vals is an object with all the submitted values

       case 'Pharma':

          tyURL = 'thankyou.html?vertical=Pharma';

          break;

       case 'Construction':

          tyURL = 'thankyou.html?vertical=Construction';

          break;

     }

     document.location.href = tyURL;

     return false;

  });

});

1 reply

SanfordWhiteman
New Participant
September 16, 2016

This has a tremendous overlap with Display Different Text/Asset Images on LP Using Tokens​.

All you need to do is pass the runtime segment to the Thank You URL as a query param.

September 19, 2016

Thanks Sanford. I've read the post and have tested it by creating your example. That's a great tip!

However, I'm now struggling to understand how I can add the ?segment_name=value to the URL after the form is submitted. In my testing example I had to hard code it. Are you able to advise or point me to a tutorial? I'm fairly new at working with query strings.

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
September 19, 2016

You can set the full Thank You URL in the browser using the onSuccess handler. (Sorry for the strange spacing, using my phone doesn't let me format.)

MktoForms2.whenReady(function(form){

  form.onSuccess(function(vals,tyURL){

    switch( vals.Vertical ){ // vals is an object with all the submitted values

       case 'Pharma':

          tyURL = 'thankyou.html?vertical=Pharma';

          break;

       case 'Construction':

          tyURL = 'thankyou.html?vertical=Construction';

          break;

     }

     document.location.href = tyURL;

     return false;

  });

});