Skip to main content

Salesforce Integration

Learn how to connect Salesforce to Cometly and send CRM events like new leads, contacts, and opportunities into Cometly for accurate attribution and reporting.

Updated this week

Why This Matters

Connecting Salesforce to Cometly allows you to track CRM-based conversions, tie revenue back to ad traffic, and build accurate attribution models across your funnel. This is critical for measuring true performance beyond on-site events.


Step 1: Open the Salesforce Integration in Cometly

  1. Log into Cometly.

  2. Navigate to Integrations.

  3. Use the search box in the top left and search for Salesforce.

  4. Click Add Connection in the top right.


Step 2: Authenticate Your Salesforce Account

  1. After clicking Add Connection, an OAuth window will open.

  2. Log into your Salesforce account if prompted.

  3. Review the permissions and approve access.

  4. Once complete, the Salesforce account and login email will appear in Cometly.

This confirms your Salesforce connection is active.


Step 3: Verify Salesforce Requirements

Before creating events, confirm the following in Salesforce:

  • Your user profile has Author Apex permission enabled

  • Your Salesforce edition is one of the following:

    • Enterprise

    • Unlimited

    • Developer

    • Performance

โš ๏ธ Note: Salesforce integration will not work without these permissions and editions.


Step 4: Create a Salesforce Event in Cometly

  1. Navigate to Events Manager in Cometly.

  2. Click Create Event.

  3. Select your Salesforce connection.

  1. Name your event, for example:

    • NewContact

    • NewLead

    • NewOpportunity

  2. (Optional) Add an Event Description to clearly define what the event represents.

  3. Click Create.


Step 5: Configure the Salesforce Trigger

  1. After creating the event, click Configure next to the Salesforce integration.

  2. Connect your Salesforce account if prompted.

  3. Select a Trigger, such as:

    • New Contact

    • Contact Updated

    • New Lead

    • Lead Updated

    • New Opportunity

    • Opportunity Updated

  4. Click Continue.


Step 6: Trigger the Event in Salesforce

  1. Open your Salesforce account.

  2. Perform the action that matches your trigger:

    • Create or update a contact

    • Create or update a lead

    • Create or update an opportunity

  3. Return to Cometly and wait for the payload to appear.

Once detected, select the payload to continue.


Step 7: Map Fields and Apply Filters

  1. In the Field Mapping step, map the Email field from Salesforce to Cometly.

  1. Review other available fields passed in the payload.

  2. (Optional) Add Filters to create more specific events, such as:

    • Opportunity stage equals Closed Won

    • Lead source equals a specific value

These filters allow you to create highly targeted CRM-based events in Cometly.


Step 8: Save and Activate the Event

  1. Review your configuration.

  2. Click Save Changes.

  3. Your Salesforce event will now fire automatically when the trigger conditions are met.


๐Ÿ’ก Pro Tip: Create separate events for different Salesforce actions (e.g., ClosedWon, ClosedLost, NewLead) to improve attribution accuracy and reporting flexibility.

โš ๏ธ Note: Always map the Email field. Email is required for identity matching and attribution inside Cometly.

Did this answer your question?