Your audience can provide a lot of valuable information. Think about personal details such as email addresses, which you can use for your marketing campaign. This article shows you how to generate leads with a Marketo form.
💡 This feature is not included in every plan. Please contact our Customer Success Management team if you're interested in using this functionality.
In this article
Why gate forms with a Marketo form?
Our lead generation feature allows you to block (further) access to your Foleon Doc on any page. Visitors are prompted with a pop-up form and must fill in their details to access your content (or the rest of it).
As a marketer or demand generation specialist, you instantly want this information in Marketo. So you can automatically assign leads to your sales reps and do lead scoring and marketing automation right when they convert.
The benefit is that you won’t have to upload all leads on these platforms manually. Next to that, you will have correct attribution in Marketo as well.
💡 Don’t forget to enable Marketo tracking on your Foleon Docs.
How to gate your Foleon Doc with a Marketo form
To use a Marketo form for lead generation, you must create a form in Marketo. Once you’ve completed the form and the input fields, search for the embed code in the form actions dropdown.
💡 Not sure how to create a form in Marketo? Check out their documentation on forms.
Click on Embed code, where you will find the following variables:
- Base URL (make sure to include the “//”)
- Munchkin ID
- Form ID
You can find these variables in the second script element in the embed code.
<script>MktoForms2.loadForm("//Base URL", "Munchkin ID", Form id);</script>
Here’s a full example of such an embed code:
<script src="//app-ab**.marketo.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_1562"></form>
<script>MktoForms2.loadForm("//app-****.marketo.com", "875-JTE-***", 1562);</script>
From this embed code, you can extract the following variables (example):
- Base URL - //app-****.marketo.com
- Munchkin ID - 875-JTE-***
- Form ID - 1562
On your dashboard, open a Foleon Doc. Then select Foleon Doc settings. In the Lead generation section, turn on Gate your Foleon Doc and choose Marketo as your preferred gating method.
Paste the information from the embed code into the required fields in Foleon. Then choose your layout template, and click on Save.
Your lead generation gate will show in the page overview if the setup is successful.
In the image below, you see what a lead generation gate with a Marketo form might look like in your Foleon Doc. If you want to change the styling of the form to match your brand, follow the steps in Styling your form.
Once a visitor has filled in your Marketo form, they will see a default success message to inform them their submission was successful.
💡 At the moment, it's not possible to change this success message.
Assigning your gate to a page
When you’ve finished setting up your lead generation method, you can connect it to any of your pages.
Grab the lead generation gate and drag and drop it in front of the page where you want the gate to appear. Instead of gating your entire Foleon Doc, you can give your readers access to a limited portion and make them hungry for the rest.
Once satisfied with your Foleon Doc and the gate you’ve created, hit Publish or Preview to test your gate.
Allow reader to skip
If you want to offer readers the choice to skip and keep reading your pages without completing a form, that's possible! First, go to Pages, and click on the relevant Lead Generation gate. In Lead Generation's settings, click on General Settings, toggle on the "Allow Reader to Skip" option, and remember to republish your Doc to save the changes.
Styling your form
When you create a form in Marketo to use in your Doc, there are limited styling options in Foleon. However, Marketo allows you to customize your form to suit your needs.
💡 Learn more in Marketo's documentation: Edit the CSS of a Form Theme.
In addition to Marketo pre-built themes, you can apply styling by inserting custom CSS code into the Doc’s remarketing field in the Foleon Doc settings.
If you want to prevent spam form submissions by enabling reCAPTCHA, learn how to set this up in Marketo's documentation: Setting up reCAPTCHA v3.
⚠️ Any custom code that has been implemented is the responsibility of the creator. Although this feature is easy to use, ensure you know your custom code inside out. If you're not very experienced with coding, we don't recommend using this feature.
Returning visitors
Foleon places a cookie that remembers whether a visitor has passed your lead generation gate for a specific Foleon Doc. This means that if visitors reopen a gated Doc they’ve already completed, they won’t have to submit the Marketo form again — assuming they visit from the same device and browser.
This cookie is stored for that specific Doc and isn’t linked to the form used to gate. So, even if you swap out the form, returning visitors will not have to submit the new form.
💡Some visitors might use browsers or browser extensions that delete cookies automatically. In this case, these visitors might have to fill in your lead generation form every time they visit your Foleon Doc.