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.
- Login to your Leadpages account.
- Select the page you wish to edit.
- 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).
- Click on “Integration Settings.”
- 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
- Web form will mostly likely be in a campaign.
…But may be under legacy web forms. Marketing > Legacy then Legacy > View Web Forms
- 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.
- 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”
- 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.
- Publish Campaign.
3) LeadSource vs. Custom Field
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:
- 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.
- Use the Search box to search for the LeadSource you need and copy the ID OR Add a new LeadSource to use.
- The ID we need in this case is “37.” This is the value we will pass in the URL.
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.
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
- 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.
- Click on “Reload” and wait for the section to reload.
- Click on the “Okay” Button
- Click on “Show Advanced options…”
- You will see the new field listed.
- 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.
- Make sure the Field role is set to “Hidden.”
- 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.
- 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.”
- Press the “Okay” Button.
- Save the LeadPage.
5) Test Your URL
- 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
- 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.
- Submit the form with a NEW email address that is not assigned to a contact record in InfusionSoft.
- 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.
- Now submit your form with an email address in Infusionsoft that already has a contact record. Make sure the form still submits correctly.
- 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
- To pull a report of all contacts with a specific LeadSource, go to CRM > Contacts and click on the “Misc Criteria” Tab.
- 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
- To pull a report of all contacts with a specific Custom Field, go to CRM > Contacts and click on the “Custom Fields” Tab.
- 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.