1. Home
  2. Forms
  3. Marketo Forms
  4. Using a Content Track as Your Marketo Form Confirmation Page

Using a Content Track as Your Marketo Form Confirmation Page

Summary

Redirecting visitors from a Thank You landing page into a Content Track is a great way to promote your content to interested prospects.

This article covers:

  • How to redirect form fills to a Content Track
  • How to set up this redirect if you are using a Universal/Global Form

Scenario:

  • You have an external landing page with a Marketo form
  • You want to send visitors who fill out the form to a Content Track, rather than simply to a static Thank You page
  • You want those PathFactory visitor activities to be tracked and the data to be sent to Marketo

Redirect Form Fills to a Content Track

  1. Create a landing page in Marketo.
  2. Add the script shown below to the landing pages that you want to redirect to a Content Track when the embedded Marketo Form is filled.
    <script>
    MktoForms2.whenReady(function(f){f.onSuccess(function(values, followUpUrl) {
    var queryString = window.location.search.substr(1);
    var email = values.Email;
    location.href = followUpUrl + (followUpUrl.indexOf("?") > -1 ? "&" : "?") + "lb_email=" + email + "&" + queryString;
            return false;
        });
    });
    </script>
    Note
    This page will appear blank to visitors before they are quickly redirected into a Content Track. This page essentially acts as a bridge, so the visitor’s email address can pass from the submitted form into the PathFactory platform.
    This allows PathFactory to immediately identify the visitor, and track their activity.

    Script location
    Marekto Script location
  3. Ensure that the form Thank You Page configuration is set to follow up with External URL where you will reference the PathFactory track URL of your choosing. Alternatively, you can define this on the landing page level.
    Form Thank You Page
    Marketo Form Thank You Page

    Edit Form Settings menu
    Marketo Edit Form Settings menu
  4. Test the form in PathFactory to confirm that you are being redirected to the appropriate PathFactory Experience. 
    Test Form
    Test Form

    Once you close the tab, wait 30 minutes and check the analytics and that your email address is being associated with the visit. If you need assistance with this please reach out to support@pathfactory.com.


Redirect Form Fills When Using a Universal Form

If you are using a Universal/Global Form in Marketo, you must ensure that you have created a field for PathFactory Content Track names.

  • Field Name: Track Name

From the landing page, the track name will be passed as a hidden field.

On the Thank You page you can Add Choice, specify the track name you want to redirect to, and create a specific url for that value.

Click here for more information on these Marketo functions.

Updated on January 25, 2024

Was this article helpful?

Need Support?
Can't find the answer you're looking for? Don't worry we're here to help!
CONTACT SUPPORT