marketo landing page locked content

Marketo Landing Page Locked Content

If you're using Marketo to collect leads, chances are that you're using landing pages to do so. But sometimes, you may want to offer some exclusive content to your users in exchange for their contact information. This is where Marketo's "Locked Content" feature comes in handy.

What is Locked Content?

Locked Content is a feature in Marketo that allows you to block certain content on your landing page until the user fills out a form. This can be used to offer exclusive content such as whitepapers, case studies, or even videos.

How to Use Locked Content in Marketo Landing Pages?

Using Locked Content in Marketo is actually quite simple. Here are the steps:

  • Create a new landing page or edit an existing one.
  • Add the content you want to lock behind the form.
  • Select the content and click on the "Lock" icon in the toolbar.
  • Configure the Lock Settings as per your requirement.
  • Save and Publish your landing page.

Here's an example of how you can use Locked Content in your HTML code:

<div class="locked-content">
    <h3>Exclusive Content</h3>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nec velit ac libero malesuada iaculis.</p>
    <p><a href="#" class="mktoButton">Download Now</a></p>

<script type="text/javascript">
MktoForms2.loadForm("//", "123-XYZ-789", 1234, function(form){
    form.onSuccess(function(values, followUpUrl){
        return false;

In this example, the content inside the div element with class "locked-content" is hidden until the user fills out the Marketo form. Once the form is submitted successfully, the content is displayed using jQuery.

Note that you'll need to replace "//" with your own Marketo instance URL, "123-XYZ-789" with your form ID, and 1234 with your Asset ID. You can find these values in your Marketo account.


Locked Content can be a powerful tool to collect leads and offer exclusive content to your users. By following the steps above and using the example code, you should be able to implement Locked Content in your Marketo landing pages in no time!

Subscribe to The Poor Coder | Algorithm Solutions

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
[email protected]