Skip to content
the poor coder

marketo landing page locked content

Poor Man
Published
Reading time
2 min read
On this page

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:

Text

<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>
</div>

<script type="text/javascript">
MktoForms2.loadForm("//app-abcd.marketo.com", "123-XYZ-789", 1234, function(form){
    form.onSuccess(function(values, followUpUrl){
        $(".locked-content").show();
        return false;
    });
});
</script>

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 "//app-abcd.marketo.com" 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.

Conclusion#

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!

Keep going

2023

how to sort an array

How to Sort an Array If you have an array and you want to order its elements in a specific way, you need to use a sorting algorithm. There are several sorting algorithms available, but two of the most commonly used are…

javascript2 min read
2023

jquery mobile or desktop

jQuery Mobile or Desktop? As a web developer, I have had some experience with both jQuery Mobile and jQuery Desktop. Both frameworks have their pros and cons, and which one to use really depends on the specific project…

javascript1 min read
2023

node.js folder structure

Node.js Folder Structure If you are new to Node.js, it can be daunting to create a folder structure that will work for your project. The structure you choose will depend on the size and complexity of your project. Here…

javascript1 min read
ESC