Blog Post

If you’ve ever experienced the frustration of getting Infusionsoft to show which customers clicked on a Facebook ad that lead to a purchase, then you need to read this article now. In order to justify your investment of Facebook ads, you need to know which buyers have clicked on an ad. This is where Infusionsoft’s “hidden fields” and “Lead Source” becomes critical.

How to Pass Values Through a URL to an InfusionSoft Contact Record

The documentation below will give instructions on how to customize an InfusionSoft web form in LeadPages so that a value can be passed through a URL and stored into an InfusionSoft contact record.

In this example, we will use the opt-in form URL, www.xyz.com/?source=BLANK as an example and will be passing the value LeadSource through the webform.

1) Find the Web Form that is being used.

  1. Login to your Leadpages account.
  2. Select the page you wish to edit.
  3. Click on any of the form fields or button (If you are using a pop-up form, you’ll need to click on the button that triggers the pop-up).

  1. Click on “Integration Settings.”

  1. You’ll see that InfusionSoft is the CRM selected and below that, the name of the web form selected.

2) Edit the Web Form in InfusionSoft

  1. Web form will mostly likely be in a campaign.

…But may be under legacy web forms. Marketing > Legacy then Legacy > View Web Forms

  1. Add a hidden field to your web form
    • Under design, select the Field Snippets tab and then drag “Hidden” to your web form. It doesn’t matter where in your web form the field is.

  1. Select the field you wish to use. In this example, we are using Lead Source.
    • You can use a custom field here if you wish.
    • Do not enter a value into “Field Value”

  1. Select the “Save” button. Your form should look similar to the screen shot below. If you do not see a hidden field, the field you just tried to add was not added successfully.

  1. Publish Campaign.

3) LeadSource vs. Custom Field

LeadSource

If using LeadSource , you will need to find the LeadSource ID. This is how InfusionSoft references LeadSources in web forms. LeadSource ID will fill a leadsource value into the contact record as shown below:

  1. Search through the current LeadSources in Infusionsoft (If the LeadSource doesn’t already exist, you will need to create one).
    • Marketing > Settings and Click on LeadSource in the navigation pane.

  1. Use the Search box to search for the LeadSource you need and copy the ID OR Add a new LeadSource to use.

  1. The ID we need in this case is “37.” This is the value we will pass in the URL.

Custom Field

If using custom field, you do NOT need to find an ID for that field. Value will be stored in the selected field under the Custom Fields tab.

Example

Custom Field URL would look like, www.xyz.com/?custom_field=xyzabc

LeadSource URL would look like, www.xyz.com/?source=37

4) LeadPages Edits/Integration

  1. Repeat the steps in section 1 to find the web form being used. You will need to reload that web form so LeadPages is using the NEW EDITED web form we just updated.
  2. Click on “Reload” and wait for the section to reload.

  1. Click on the “Okay” Button
  2. Click on “Show Advanced options…”

  1. You will see the new field listed.

  1. Click on the new field “inf_field_LeadSource”. NOTE: If you are using a custom field and not LeadSource, the field name will be different.
  2. Make sure the Field role is set to “Hidden.”
  3. The Default value can be left blank. If you want to set a Default value feel free. That means, if there is no value passed in the URL, Leadpages will pass this value to the contact record.
  4. Set the pre-populated variable to “source” as shown below.
    • The value entered here MUST match the variable used in your URL.. remember our URL in this example is, xyz.com/?source=BLANK , so the variable entered here must match that URL variable, “source.”

  1. Press the “Okay” Button.
  2. Save the LeadPage.

5) Test Your URL

  1. Put the ID for the LeadSource you wish to pass to InfusionSoft at the end of your URL.
    • In this example, the URL would be: www.xyz.com/?source=37
  2. Test YOUR URL in your browser to make sure the page loads with no issues. If it does not load, or there is an error, the URL you pasted is either incorrect, your page has not been published or there is another issue with your webpage.
  3. Submit the form with a NEW email address that is not assigned to a contact record in InfusionSoft.
  4. Once the form is submitted, find the contact record and look at the LeadSource. In this example, it says Facebook because the value 37 we passed through the URL matches the LeadSource ID for Facebook.

  1. Now submit your form with an email address in Infusionsoft that already has a contact record. Make sure the form still submits correctly.
  2. Please NOTE that this will not replace an already existing LeadSource. If Susie Que has a LeadSource of “Google Adwords” and she submits this form, it will NOT change it to “Facebook”. LeadSource is 1 value, the referral source for that contact record.

NOTE: If you were to use the same URL to show LeadSource for multiple platforms/affiliates, you would end up using a list of URLs similar to the following:

  • Facebook: www.xyz.com/?source=37
  • YouTube: www.xyz.com/?source=82
  • Adwords: www.xyz.com/?source=398
  • Affiliate: John Smith: www.xyz.com/?source=602
  • New Product Email Launch 17: xyz.com/?source=608

6) Reporting

By LeadSource

  1. To pull a report of all contacts with a specific LeadSource, go to CRM > Contacts and click on the “Misc Criteria” Tab.
  2. Type in the LeadSource you wish to run a contact report for. This example report below will pull all contact records with the Facebook LeadSource.

By Custom Field

  1. To pull a report of all contacts with a specific Custom Field, go to CRM > Contacts and click on the “Custom Fields” Tab.
  2. Find the custom field used in your web form, and type in the value you wish to run a contact report for. This report will pull all contact records with the matching custom field value Facebook in that custom field.

About The Author: Bret Gregory

Related Posts