Before & After is a lead capture forms plugin for WordPress. It allows a webmaster to require visitors to complete a goal, such as filling out a contact form, before viewing the contents of a page or downloading a file.
The plugin automatically tracks which visitors have completed your goals, and shows the appropriate content to each visitor. For example, it can show a form to visitors until they have completed the form, at which point they will be given a link to download a special file or whitepaper.
Before & After can be used with any plugin that uses shortcodes, but works especially well with Contact Form 7 and Gravity Forms.
Protect Pages with Goals
With Before & After, you can require your visitors to complete one of your Goals before viewing a given page. This functionality is especially useful when you want to ensure visitors read a Terms Of Service, Copyright Notice, or other important message before viewing a given page or bit of content.
Once you’ve installed Before & After, simply edit the Page or Post in WordPress, and then use the Before & After meta box to configure Page Protection.
Create Lead Capture Forms with Contact Form 7, Gravity Forms, or Your Favorite Forms Plugin!
Before & After Pro integrates directly with Gravity Forms and Contact Form 7. Any forms you create in Contact Form 7 (CF7) or Gravity Forms will be available in Before & After, to create lead capture forms!
Not using Contact Form 7 or Gravity Forms? That’s OK – Before & After can create Lead Capture forms with any forms plugin.
Check out our documentation instructions for more information.
One Plugin, Tons of Uses
Using this simple plugin, any number of scenarios are possible:
Lead Capture Forms: Ask a visitor to signup for your newsletter in return for a free download, special report, or whitepaper.
Protected Downloads: Ask visitors to complete a form or other Goal before downloading your file. If they share the link, the recipient will have to complete the form as well.
Protected Content: Use Before & After to hide content from users until they have completed your form, or another goal. Hidden content will only be visible to those who have already completed your Goal.
Terms Of Service Pages: Make sure a visitor reads the terms of service first. Once they have read the TOS once, they may view any other page.
Age Gates: Make the visitor confirm their age before browsing a given page.
Copyright Notices: Inform visitors of the copyright of a particular piece of content before allowing them to view it.
Instructions In Series: Make sure that a visitor reads a series of instructions in sequence. If they land on a later page, ask them to start over.
Guided Product Tours: Show your users the screens of your product in a sequenced progression.
HubSpot Tracking: Capture lead data and send it to HubSpot (requires Pro).
There are many other possibilities. By offering WordPress webmasters a simple way to gate content we hope to provide a useful tool for many scenarios.
Upgrade to Pro for For Advanced Features and Support
The GoldPlugins team does not provide direct support for the Before & After plugin on the WordPress.org forums. One on one email support is available to people who have purchased Before & After Pro only. Before & After Pro also includes conversion tracking, email notifications, submitting data to HubSpot, and other advanced features. You should upgrade today!
This section describes how to install the plugin and get it working.
- Upload the contents of
- Activate the Before And After Lead Capture Plugin through the ‘Plugins’ menu in WordPress
- Read the Instructions.
Introduction: How Does This Plugin Work?
Before & After is a lead capture plugin that lets you offer your users something in exchange for their information. It can also be when you need to make sure your users read your Terms of Service, verify their age before entering your website, or otherwise need to see one thing, and then another.
To achieve this, Before & After uses what we call goals. A goal is simply an action, or a “gate”, that your users need to pass before they will be allowed to see your protected content.
A user completes a Goal by simply encountering the [complete_goal] shortcode. You will have placed it on your Thank You page, on the terms page, or whatever other page you need the user to view to signify that they have completed the goal.
How To Setup A New Goal
To create a new Goal, simply follow these steps:
1. Under the Before & After menu, select Goals. This will bring up a page which lists all of your goals.
2. Click the “Add A New Goal” button
3. Give your Goal a title, and then fill out the Before & After sections. When you are done, click the Publish button.
4. Your goal has been created! Copy the [goal] shortcode from the Edit Goal screen you are currently viewing, and go paste it onto the on which page you’d like the goal to appear.
How To Have A Visitor Complete A Goal
Simply add a shortcode like this to the final step of your goal funnel. For example, you could place it on the “Thank You” page from a contact form.
(Replace the number 82 with the id of your goal. Tip: you can find the shortcode for each goal on the Goals page.)
Add this shortcode to any page or post to display your goal there.
Complete Goal Shortcode
Add this shortcode to the page which signifies that a visitor has completed the goal. For example, you could put this on a “Thank You For Contacting Us” page.
Integrating with Contact Form 7
If you have the Contact Form 7 plugin installed, you’ll be able to select any Contact Form 7 form as the Before option for your Goals. Simply Add a new Goal or edit an existing one, and you’ll see your Contact Form 7 forms listed.
Important: be sure to redirect your Contact Form 7 form to a thank you page, and to add the complete goal shortcode to the Thank You page. Refer to these instructions if you are unsure how to do this.
Integrating with Gravity Forms
If you have the Gravity Forms plugin installed, you’ll be able to select any Gravity Form you have created as the Before option for your Goals. Simply Add a new Goal or edit an existing one, and you’ll see your Gravity Forms forms listed.
Important: be sure to redirect your Gravity Form to a thank you page, and to add the complete goal shortcode to the Thank You page. Refer to these instructions if you are unsure how to do this.
How to Submit My Data to HubSpot
If you have Before & After Pro installed, and you have an active HubSpot account, you can have submission data from your Goals submitted through to HubSpot. To do so, first login to your HubSpot account and create a new Form to receive our submissions. Next, simply visit our Settings page and look for HubSpot settings. Once here, you’ll want to add your HUB ID, the GUID of the Form (on HubSpot) that you want to send data to, and (optionally) input the Titles of any forms that you don’t want to send to HubSpot. This feature will only work on Contact Form 7 or Gravity Forms that are associated with a Goal.
Before & After will attempt to map your fields to HubSpot — to adjust the field mapping array use the
Before & After will block some default Gravity Forms fields from being sent to HubSpot — to adjust the field mapping array used for blocking, use the