Newer Version Available
AppExchange Lead Sources
Lead Source Codes
Lead source codes are stored in the Lead Source field and use this format: SFDC-XX|Listing Name or SFDC-dup-XX|Listing Name. XX identifies the action that the customer performed to generate the lead.
This table lists source codes.
| Source Code | Description |
|---|---|
| IN | The user clicked Get It Now on your listing and started
the install process for your solution. This action includes agreeing to the terms
and conditions and clicking the install button on the confirmation page. Sometimes users don’t complete the installation, or they uninstall your solution later. To track package installations, use the License Management App (LMA). |
| DM | The user clicked the demo video tile in the media carousel of your listing. |
| LM | The user clicked Learn More on your listing. Listings that previously had Learn More buttons now have Get It Now buttons and receive lead source codes with IN actions. |
| TS | The user clicked Get It Now on your listing and started a 30-day free trial of Salesforce and your solution. These users can be existing Salesforce customers. |
| TD | The user clicked Test Drive on your listing and tried your solution in a test drive org. |
Lead Source Description
The lead source description indicates how a customer discovered your listing and, if applicable, their contact preferences about other products or services that you offer. Lead source descriptions vary based on how you market your listing, but can include:
- Urchin Tracking Module (UTM) parameters from marketing campaigns.
- Codes from referral programs.
- External traffic sources, such as Google searches.
- Internal traffic sources, such as AppExchange searches.
These details are stored in the Description field and are provided in JSON format:
1{
2 "lead_description": {
3 "allow_contact_other_products": true,
4 "listing_url": "example-URL",
5 "utm_parameters": {
6 "utm_campaign": "example-campaign",
7 "utm_content": "example-content",
8 "utm_medium": "example-medium",
9 "utm_source": "example-source",
10 "utm_term": "example-term"
11 },
12 "referral_code": "example-code"
13 }
14}If UTM or referral code details aren’t available, AppExchange omits them and populates an other_source property from a standard list of internal and external traffic sources:
1{
2 "lead_description": {
3 "allow_contact_other_products": true,
4 "listing_url": "example-URL",
5 "other_source": "example-traffic-source"
6 }
7}To receive UTM or referral code details in your lead source description, configure a referrer URL as follows:
https://appexchange.salesforce.com/appxListingDetail?listingId=a0NXXXXXXXXXXXXXXX &utm_campaign=example-campaign&utm_content=example-content&utm_medium=example-medium &utm_source=example-source&utm_term=example-term&referral_code=example-code
Where a0NXXXXXXXXXXXXXXX is your listing ID.
This table lists lead source description properties.
| Property | Type | Description |
|---|---|---|
| allow_contact_ other_products | Boolean | The customer’s contact preference regarding marketing communications for other
products and services that you offer. If you don’t offer products or services outside of the listing where the lead originated, ignore this property. Examples:
|
| listing_url | String | The URL of the listing where the lead was generated, excluding UTM parameters, referral codes, and traffic source details. |
| utm_campaign | String | The promotional or marketing campaign that referred traffic to your
listing. To populate this property, include the utm_campaign parameter in the referrer URL. Example: utm_campaign=appy-dreamforce |
| utm_content | String | The content zone or variant that referred traffic to your listing, such as a
banner that uses a specific call to action or image. To populate this property, include the utm_content parameter in the referrer URL. Example: utm_content=cta-header-1 |
| utm_medium | String | The medium that referred traffic to your listing, such as cost per click. To populate this property, include the utm_medium parameter in the referrer URL. Example: utm_medium=cpc |
| utm_source | String | The source that referred traffic to your listing, such as a newsletter. To populate this property, include the utm_source parameter in the referrer URL. This property is required to use other UTM parameters. Example: utm_source=newsletter |
| utm_term | String | The keyword or phrase that referred traffic to your listing. To populate this property, include the utm_term parameter in the referrer URL. Example: utm_term=sales+productivity |
| referral_code | String | A unique identifier associated with the content or campaign, such as a discount
code. To populate this property, include one of these parameters in the referrer URL:
Example: ref=astro25off |
| other_source | String | The source that referred traffic to your listing if UTM parameters or referral
codes aren’t provided. This property is set by AppExchange. The default value is Web. Examples:
|
Example
This example shows a sample referrer URL and the related JSON block. In this example, we assume that the customer agrees to marketing communications. For this sample URL:
https://appexchange.salesforce.com/appxListingDetail?listingId=a0NXXXXXXXXXXXXXXX &utm_campaign=spring&utm_medium=organic_social&utm_source=newsletter
This JSON block appears in the Description field of the lead:
1{
2 "lead_description": {
3 "allow_contact_other_products": true,
4 "listing_url": "https://appexchange.salesforce.com/appxListingDetail?listingId=a0NXXXXXXXXXXXXXXX",
5 "utm_parameters": {
6 "utm_campaign": "spring",
7 "utm_medium": "organic_social",
8 "utm_source": "newsletter"
9 }
10 }
11}Package Installation Leads
Package installation is one example of a user activity that triggers lead creation. However, AppExchange isn’t the only source of installation leads. The License Management App (LMA) also creates installation leads. Let’s look at an example. A user purchases your solution and installs it via an installation URL. AppExchange isn’t aware of the user’s activity, so it doesn’t create a lead. However, the installation triggers the LMA to create a lead. To know which application created the lead, check the lead source code.
Let’s tweak our example to see how multiple installation leads can be created for the same package. First, a user clicks Get It Now, and starts but doesn’t complete the installation. AppExchange creates a lead with source code SFDC-IN|Simple Sample App. Later, the same user purchases your solution and installs it via an installation URL. The LMA creates a second lead with source code Package Installation. Same user. Same package. On the surface, the leads appear to be duplicates, but the lead source codes show that they aren’t.
Learn more about LMA leads in Lead and License Records in the LMA.
Duplicate Leads
A duplicate lead is a lead that AppExchange already sent to your org for this user, listing, or action within the past 180 days.
Duplicate lead source codes always contain the string -dup- and use the format SFDC-dup-XX|Listing Name. For example, SFDC-dup-DM|Simple Sample App indicates a duplicate lead from a user who clicked View Demo on the Simple Sample App listing.