Integration with Pardot Forms
If you are using Pardot web forms instead of Salesforce Web-to-Lead to capture leads on your website, you need to do a minor customization to the web forms so that the two fields required by the AdIntel App are populated properly when the visitor clicks the submit button.
The two AdIntel fields will be updated automatically by the AdIntel javascript that is included in your web site template just before the ending body tag. Following is a complete example of a sample form which includes the two AdIntel custom fields.
Prerequisites:
- You have included the following AdIntel javascript on your web site, just before the ending tag. Ideally do this in your web site template so that the script is present in all your web pages.
- Pardot is integrated with your Salesforce CRM org and is configured to push prospects captured from web forms to Salesforce.
Procedure:
- Create two custom text fields called Referral URL and Landing URL for the Prospect object in Pardot. Ensure that their API names are ads_referral_url__c and ads_landing_url__c respectively.
- Map the Referral URL prospect field to the corresponding AdIntel custom field in the Salesforce Lead object.
- Map the Landing URL prospect field to the corresponding AdIntel custom field in the Salesforce Lead object.
- Create the web form as you normally do with the Pardot form builder.
- If you plan to include this web form in an IFRAME on your web site, ensure that our javascript is also added in your web form, towards the bottom of the web form.
- If you plan to have the web form as part of an independent Pardot landing page, ensure that our javascript is included in the landing page before the ending body tag.
- Add the Referral URL and Landing URL prospect fields as hidden fields to the form.
- Do any other necessary customizations and save the form.
- Make a test to check that the AdIntel fields in the prospect object are being populated properly.
- Done. AdIntel is now integrated with your Pardot web form. Please repeat this procedure for all other Pardot forms.
Example: Pardot Web Form