Loading

Associate a Web-To-Lead to a Campaign

Publiseringsdato: Aug 19, 2026
Beskrivelse

Web-to-Lead forms can be associated with a specific marketing campaign so leads are grouped by source, site, or product interest. This is useful when:

  • You have 2 websites and each site is associated with a different online marketing campaign.
  • Different Products are being worked on using different campaigns, so leads must be associated with campaigns according to the Product of interest chosen on the website.
Løsning

This article explains how to associate a Web-to-Lead form submission with a specific Salesforce Campaign, and what to check if the association isn't working.

How to Associate the Campaign

To associate a new web lead with a campaign, include the Campaign ID and the Campaign Member Status as hidden fields in the Web-to-Lead form. Leads submitted on this form are associated with the specified campaign and given the specified member status. These values must be valid for the organization — for example, the campaign ID must exist, and the Member Status value must be a valid status for that campaign.

<input type="hidden" name="Campaign_ID" value="70120000000U4eJ" />

This line tells Salesforce which Campaign the lead should be associated with. Replace the value with your own Campaign ID.

<input type="hidden" name="member_status" value="Responded" />

This line sets the lead's Campaign Member Status, such as Responded. Replace the value with a status valid for that campaign.

Important Notes

The lead isn't associated with a campaign if the Member Status isn't specified.

These are examples, and developers familiar with POST strings (the data submitted when a web form is sent) and HTML coding can construct more dynamic pages using these basic examples as a reference. Forward these recommendations to your webmaster or developer for further review and consideration.

Knowledge-artikkelnummer

000383049

 
Laster
Salesforce Help | Article