How to Create a WordPress Lead Magnet Optin Form

How to Create a Lead Magnet Optin Form in WordPress (Easily)

Do you want to create a lead magnet optin form in WordPress?

Offering a lead magnet like a free ebook in exchange for your visitors’ email addresses is a great strategy for capturing new leads.

In this guide, we’ll show you the easiest way you can build a lead magnet form and grow your email list.

Create Lead Magnet Optin Form Now 🧲

Here’s a table of contents if you’d like to jump ahead:

What Are Lead Magnets?

A lead magnet is a marketing tool that incentivizes people to share their contact information in exchange for access to a valuable resource. The goal is to convert interested visitors into subscribers so you can grow your list.

Usually, lead magnets are downloadable resources like an ebook, workbook, whitepaper, or something similar. Offering a lead magnet for email subscriptions is an effective and proven way to encourage your visitors to submit their email addresses.

How to Create a Lead Magnet Optin Form

Follow these simple steps to make your own lead magnet optin form on WordPress.

Step 1: Build Your Lead Magnet

Before we get started building your lead magnet optin form, you’ll have to decide on what lead magnet you’re going to offer to your subscribers. It could be a PDF ebook or any other digital resource.

For more lead magnet ideas, check out this post with irresistible lead magnet ideas.

Step 2: Upload Your Lead Magnet to WordPress

Once you’ve decided on what you’re doing for a lead magnet, simply create it and upload it to your WordPress website. You can upload your lead magnet just like you upload an image through the Media Library by visiting Media » Add New.

media upload

Alternatively, you can upload it to a cloud storage service like Google Drive or Dropbox.

After uploading the file, make sure to copy its URL. You can find the URL of the uploaded file by clicking on Edit on the far right of the image upload bar.

Edit the image

Now copy the file URL and keep it safe. You’ll need this later.

copy file url

Since you’re offering this digital resource in exchange for an email address, you’ll want to block search engines from finding it. This is called ‘no indexing’ and we’ll show you how to do it next.

Step 3: Hide Your Lead Magnet From Google

You can hide your uploaded lead magnet from search engines easily. We recommend using the AIOSEO plugin for this.

Not only is it the best SEO plugin for WordPress, but the free version gives you instant access to hide your webpages from Google and other search engines.

how to hide a lead magnet from google easily

For more details, you can read how to hide a page from Google.

Step 4: Load the Newsletter Signup Form Template

Now, you’ll need to create a newsletter signup. This form will take users to your lead magnet.

To do this, install and activate the WPForms plugin. You can learn how to install a plugin here.

You usually don’t need a ton of info from people on your lead magnet optin form. In fact, keeping it short and sweet can help reduce form abandonment.

For this example, we’ll show you how to create newsletter signup form that automatically sends new contacts to your subscriber list in MailerLite.

To do this, head over to WPForms » Add New from your WordPress dashboard.

add new form

Give a name to your form (this can be anything you like) and select a template. We’ll use the MailerLite Newsletter Signup Form template to make things easy and quick.

Alternatively, you can also use the simple Opt-in Form Template to collect the email addresses of your website visitors so that you can add them to your mailing list.

newsletter signup template

Once it loads, you can easily customize your form using the drag-and-drop builder and add or remove any fields based on your website’s needs.

Mailerlite form

But let’s keep it the way it is for this example since we’re building a lead magnet form and need to be brief.

Get the Optin Form Template Now Form 📋

Step 5: Install MailerLite Addon

In order to integrate your newsletter signup form with a MailerLite account, you’ll need to install WPForm’s MailerLite addon.

Navigate to WPForms» Addons.

WPForms addons

Find the MailerLite addon on this screen and click Install Addon.

Addon installation Mailerlite

When the installation reads “Active”, you’re free to integrate WPForms with MailerLite.

MailerLite addon active

Now, we can configure a connection between your form and MailerLite so that these tools can communicate with each other.

Step 6: Configure MailerLite Integration

Navigate to WPFoms » Settings. Then click on the Integrations tab.

WPForms integrations

Scroll down to find the MailerLite integrations settings and then click on Add New Account.

MailerLite add new account

You’ll need to insert your MailerLite API key here. To find the key, head over to your MailerLite account. Click on the Integrations.

Then click on the Use button next to API.

Mailerlite dashboard

To create your API key, click Generate New Token.

Generate mailerlite token

Input a name for your token and press the Create Token button.

Create mailerlite token

On the next screen, you’ll find your token key. Copy it.

copy MailerLite token

Now go back to WPForms’ Integrations page and enter your token along with a nickname for your connection. When you’ve filled out the required fields, click on Connect to MailerLite.

MailerLite connect

When you do this, you should see a Connected status appear.

Mailerlite connection

Great! In the next step, we’ll connect our lead magnet form with a MailerLite account that you own.

💡 Pro Tip: In your MailerLite account, you can enable double optin for new lead signups. If you’re not sure which signup method is right for you, check out this guide on single optin vs double optin.

Step 7: Connect Lead Magnet Form With MailerLite

Return to your lead magnet form and click on Marketing on the left-hand menu. Select MailerLite from the list of available integrations and then press Add New Connection.

Add mailerlite connection

WPForms will now ask you to input a nickname for your connection. Enter a name and then press OK.

Enter mailerlite connection nickname

Now, use the dropdown fields to configure your WPForms-MailerLite connection. Since we want to add new contacts to our email list in this example, we’ve selected Susbcribe as the Action to Perform.

You’ll also need to specify the email form field that should map to your MailerLite email field for each contact that signs up. Also, you have to mention the Type of the lead, which will usually be Active if your goal is to add new subscribers to your list.

MailerLite mappings

For more information about configuring a connection between MailerLite and WPForms, see creating a MailerLite form in WordPress.

You’re almost done! We just need to set up a lead magnet delivery method now.

Step 8: Set Up Lead Magnet Access

Users will expect to receive access to your lead magnet as soon as they submit your form.

With WPForms, there are a few different ways you can provide access to your lead magnet:

Reveal Lead Magnet Link in Confirmation Message

One of the ways you can give access to your lead magnet resource is by simply offering the link to it in the confirmation message upon form submission.

To set this up, click on Settings » Confirmations on the left of the WPForms interface.

Confirmation settings for Facebook Pixel form submissions

From here, it’s super easy to customize the confirmation message and add a link to your lead magnet. If you remember copying your lead magnet file URL earlier, this is the link you’ll need to add to the message.

lead magnet link

This message will display immediately after form submissions, allowing visitors to easily access your lead magnet via the link.

Redirect to the Lead Magnet URL

WPForms also lets you set up a redirection that takes place immediately when a user presses the Submit button.

To do this, select the Go to URL (Redirect) option from Confirmation Type. Then, enter your lead magnet link in the Confirmation Redirect URL field.

URL confirmation

This way, you can instantly take your visitors to your lead magnet item upon form submission.

Send Lead Magnet Link via Email

You can also send the lead magnet link to your users via email.

By default, notifications to the site admin are already enabled in WPForms. This is to make sure you get email for all form entries.

But you can also set up a separate email notification for the visitor filling out your form. To enable this, click on Settings » Notifications.

notification setting

Now, press the Add New Notification button on the top right.

add new notification

In the Send to Email Address field, select Email from the list of Smart Tags. This tag will automatically retrieve the email address provided by the user filling out your form.

Selecting the Email field from the available fields Smart Tags

Scroll down to the Email Message field and add your lead magnet link here.

Email notification link magnet

Great job! Now, whenever a user submits your newsletter form, they’ll receive a direct link to your lead magnet in an email.

Make sure to press the orange Save button on the top-right of the interface to save your changes up til now.

Step 9: Add Lead Magnet Optin Form to Your WordPress Website

It’s time to publish the form on your site and start generating leads!

Click on the Embed button at the top of the form builder.

Embed form button

This will popup a widget giving you two embed options. For this example, we’ll embed the form on a new page. Go ahead and click on Create New Page.

Create an online pledge page

Name your page and then press Let’s Go.

Embed in page

This will take you to your WordPress block editor for your new page. You’ll already find the block for your lead magnet optin form embedded within the page.

It’s advisable to add a brief description to this page to create more interest about the free access you’re offering to visitors in exchange for their information.

At the same time, you can add a theme toyour form with just a click to give it a more aesthetically impressive look.

Just click on the area around the form. Then, scroll down the Themes section on the right-hand pane and select one of the available themes.

Cotton Candy theme

When you’re ready to take your form live and start collecting subscribers, press Publish.

Publish

Awesome! Let’s now make sure that the confirmation message is working correctly.

You can fill out a test entry for this.

Newsletter optin form filled out

As you can see below, the confirmation message with a lead magnet link is showing up as intended!

eBook link

But wait! Remember that we set up an integration so that all new entries are automatically sent to your MailerLite account?

Let’s see if the test entry was added to our MailerLite subscriber list. If you set up the connection correctly, the new subscriber should appear within a few seconds in your MailerLite list.

Subscriber added to MailerLite

And there you have it! You now know how to make your own lead magnet optin form with a WordPress plugin.

Next, Build Optimized Lead Forms With WPForms

Want to collect more leads on your website? The WPForms Lead Forms addon helps you build optimized lead generation forms that you can embed anywhere on your site.

Create Your WordPress Lead Form Now

If you liked this article, you might also want to read our guide on stopping form spam so you can keep your email list as high quality as possible. If you want to make forms more user-friendly, you can explore how you can create multi step lead forms.

Curious about options other than WPForms? Check out our roundup of the best WPForms alternatives.

What are you waiting for? Get started with the most powerful WordPress forms plugin today. Go for WPForms Pro which comes with awesome integrations including payment options like Square, PayPal, and lower fees for Stripe.

If you like this article, then please follow us on Facebook and Twitter for more free WordPress tutorials.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPForms is funded, why it matters, and how you can support us.

Osama Tahir

Osama is a Senior Writer at WPForms. He specializes in taking WordPress plugins apart for testing and sharing his insights with the world. Learn More

The Best WordPress Drag and Drop Form Builder Plugin

Easy, Fast, and Secure. Join over 6 million website owners who trust WPForms.

Please enable JavaScript in your browser to complete this form.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.