1. Home
  2. Integrations
  3. Marketing Automation
  4. Pardot Integration
  5. How to Set Up Salesforce Campaign Attribution in Pardot

How to Set Up Salesforce Campaign Attribution in Pardot

This guide describes how to set up Salesforce Campaign Attribution within Pardot, using Automation Rules and Form Handlers. 

Note: Before you begin to set up your Attribution Rules, determine if your organization facilitates campaign attribution on an asset level or a track level. 

There are two parts to setting up asset level attribution rules. 

  1. Create Automation Rules: These are used to define specific actions that should be taken when certain conditions are met. In the context of campaign attribution, Automation Rules are used to automate the process of attributing leads or prospects to Salesforce Campaigns based on specific criteria. (This is a good option for organizations that have Automation Rules to spare!) 
  2. Create a Form Handler: These are used to create and manage forms that capture lead or prospect information on a website or other online assets. In the context of campaign attribution, Form Handlers can be configured to perform actions when a form is submitted, such as adding a lead or prospect to a Salesforce Campaign.

Step 1: How to Set Up Automation Rules 

To set up Automation Rules for your Asset Level attribution, follow the steps below. 

Set Up a PathFactory Webhook to Send Data to Pardot

You will first need to set up a PathFactory Content List – Threshold Met webhook to send PathFactory data to a Pardot Form Handler. Here is a step-by-step breakdown of how to set this up. If this integration is already set up, you can use the existing Form Handler. 

Create an Automation Rule in Pardot

Pardot Automation Interface

  1. Create an Automation Rule that allows rules to match prospects more than once. Select Match All and add a contains rule using the PathFactory Content List – Threshold Met field. Assets in this field are represented by their unique URL slugs, so you would just need to add the URLs that pertain to the relevant piece of content (as described in the next section on Form Handlers).
  1. Next, add to it the action of Add to Salesforce Campaign and select the applicable campaign and campaign status.

Step 2: How to Create a Form Handler in Pardot

These instructions describe how to create a Form Handler for every asset you want to link to a campaign.

  1. Under the Completion Actions menu, select the Add to SalesForce Campaign and select the correct campaign. Set up the field mapping for the email field only.
Pardot Compliance Actions

  1. Navigate to the Form Handlers Summary Page and copy the portion of the endpoint URL starting with the date stamp and including the alphanumeric code at the end (for example, http://go.pardot.com/l/46772/2017-10-19/419s5k).
Pardot Form Handlers Summary Page
  1. Back in PathFactory, navigate to the asset and paste the portion of the endpoint URL to the External ID on the asset. 
Example of External Code field in a PathFactory Target Track
  1. Below is a code snippet that you need to add to the External Code Library in your PathFactory instance. This code will trigger submissions to the relevant Form Handler, based on the Form Handler that you entered in the External ID field.
<script src="https://app.cdn.lookbookhq.com/libraries/threshold-met/threshold-met.min.js?newversion"></script>
<script>
  ThresholdMet.initialize({
    threshold: "{{content.engagement_threshold}}",
    config: {
      platform: "pardot",
      url: "https://customerpardot.com/l/55555/{{content.external_id}}" // Pardot form handler URL
    },
    requiredFields: ["email"], // Required fields in data property for form submit to fire
    data: {
      email: "{{visitor.email}}"
      // add blind form submission data here
    }
  })
</script>
  1. Once you have tested the code and confirmed you have successfully added a prospect to a campaign, you can enable it globally in PathFactory via a toggle on the External Code Library screen, as shown below. 
PathFactory Enable Globally toggle
  1. Going forward, any visits to the specific asset will now be attributed to that Salesforce Campaign. 
Updated on January 22, 2024

Was this article helpful?

Need Support?
Can't find the answer you're looking for? Don't worry we're here to help!
CONTACT SUPPORT