Adding a Marketo Form + Thank You page within a Web Personalization Campaign

You need to have the Web Personalization App to implement this case.

Here is an explanation how you can add a Marketo Form into a Web Personalization (RTP) dialog campaign. When the web visitor completes the form, a thank you message is shown and the campaign disappears.

NOTE: The Form sometimes may not appear in the Preview Campaign option. You can preview it as a Sandbox Preview campaign to test it. (See here.)


  1. Add a Marketo Form into your Web Personalization Dialog campaign
  2. Set the Dialog campaign to never expire and transparent in style
  3. After the form is submitted, show a thank you for submitting page within the dialog
  4. Count Impression and Click metrics on the campaign in the Web Campaigns page


Create Web Campaign

  1. Embed Form Code as Per Doc:
  2. Add Thank you message follow up page as per doc:
  3. Set Dialog Campaign to Timeout Never.
  4. Code Added to HTML of Web Campaign:
<!DOCTYPE html><html><head></head><body><script src="//"></script><form id="mktoForm_1052"></form><script>MktoForms2.loadForm("//", "777-JUM-540", 1052);</script> <script src="//<host>/js/forms2/js/forms2.js"></script><script>MktoForms2.whenReady(function (form){  form.onSuccess(function(values, followUpUrl){   form.getFormElem().hide();   document.getElementById('confirmform').style.visibility = 'visible';   return false;});});</script><div id="confirmform" style="visibility:hidden;"><p><strong>Thank you for submitting your details.</strong></p></div></body></html>

How the Web Campaign Displays
(Dialog overlay disappears a few seconds after the Thank You message)

Web Campaign Impression and Clicks Tracked in the Web Campaigns Page

Additional Resources on this topic:

  1. Embedding Marketo Forms on your website:
  2. Developers Docs
Labels (1)