This page includes all kinds of helpful tips for getting you up and running.
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.
To create a new Goal, simply follow these steps:
If you've selected a Contact Form 7 form or a Gravity Form as your Before option, then you don't need to do anything - the goal will automatically be completed when the form is submitted.
However, there are many cases where you will want to mark a goal as completed manually. To do so, simply add a shortcode like this to any page. For example, you could place it on the "Thank You" page from a contact form, or on your Terms Of Service page.
(Replace the number 1234 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.
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.
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.
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.
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 ba_hubspot_field_mappings filter
.
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 ba_gform_default_fields
filter.