Skip to main content
You can send leads and opportunities from Salesforce to Cometly with Zapier, a tool that passes data between apps through automated workflows called Zaps. Each Zap watches Salesforce for a change, such as a new lead, and sends it to Cometly as an event. An event is an action Cometly tracks for a person, such as a lead or a purchase. Most of your sales pipeline happens in Salesforce, long after the ad click. Once these events reach Cometly, it can match each one to the visitor and to the ad or channel that brought them. Your reports then show which ads produce leads, opportunities and closed revenue. This guide covers three Zaps:
  1. Send leads to Cometly: track new leads created in Salesforce.
  2. Send opportunities to Cometly: record opportunities as events in Cometly.
  3. Send Closed Won opportunities to Cometly: report to Cometly when an opportunity is moved to “Closed Won” in Salesforce.
Cometly also has a direct Salesforce integration with triggers for new and updated contacts, leads and opportunities. See Salesforce.

Before you start

Connect Cometly to Zapier. In Cometly, go to Integrations > Zapier, click Activate Zapier and create an API token. See Zapier.

Send leads from Salesforce to Cometly

Set up a Zap so that every new lead in your Salesforce account is sent to Cometly:

Send new Salesforce opportunities to Cometly

Set up a Zap so that when a lead is converted into an opportunity in Salesforce, it is tracked in Cometly:

Send Closed Won Salesforce opportunities to Cometly

Set up a Zap that sends a purchase event to Cometly when your opportunities are moved to the “Closed Won” status:

Check it worked

In Zapier, click Test Step on the Cometly action to send a test event. Then open Events Manager in Cometly and check the Events Log tab: the test event appears there. Once your Zaps are on, new Salesforce leads and opportunities show up in the same place.

Frequently asked questions

Should I use Zapier or the direct Salesforce integration in Cometly?

The direct integration sends Salesforce events to Cometly without a Zap in between, so check it first. It needs a Salesforce Enterprise, Unlimited, Developer or Performance edition and the Author Apex permission on your Salesforce user profile. The Zaps on this page are the other way to send the same leads and opportunities. See Salesforce.

Do I need a separate Zap for each Salesforce event?

Yes. Create one Zap per event type, which is why this guide has three: one for leads, one for new opportunities and one for Closed Won opportunities. To control which records are sent, add a Zapier filter to the Zap.

How do I send the Salesforce opportunity amount to Cometly?

In the Cometly action of your Zap, map the Salesforce field that holds the amount to the event value. Cometly uses that value to report revenue for the event.

Next steps

Still have questions or need a hand? We’re happy to help. Reach our team at support@cometly.com.