Setting up lead scoring to improve sales efficiency and accelerate your pipeline

In this recipe, you'll learn how to set up lead scoring, send those lead scores to your CRM, and keep your sales team focus on the most important accounts.


Made by Segment

What do you need?

  • Segment event tracking and identify calls set up

  • A CRM tool - in this case we’re using Salesforce

  • A lead scoring tool - in this recipe we’re using MadKudu

Improve sales efficiency and drive more revenue with Segment

With a huge integration catalog and plenty of no-code features, Segment provides easy-to-maintain capability to your teams with minimal engineering effort. Great data doesn't have to be hard work!

Get started for free

Inbound leads are the lifeblood of B2B companies. When prospects raise their hands and ask for more information, your sales team has a much better chance of closing the deal. They get to work with a warm lead rather than fight an uphill battle to convince someone who’s unfamiliar with your product or service to take a meeting.

Having the right process and sales infrastructure in place to capitalize on those leads is critical for growth and sales efficiency. Part of that is making sure that your sales team can identify and take action on the highest quality leads that come through the door.

This recipe walks you through one of the ways you can up-level (and automate) lead scoring using a tool like MadKudu to help your sales team focus on the most important accounts. By important, we don’t just mean the best or biggest companies out there, but the companies most likely to convert into customers for your specific business.


Pre-lead scoring example

Say your company has been successful working with enterprise financial services companies that are in the midst of digital transformation. In this case, you’d want to automate your lead scoring to prioritize inbound leads from those types of companies over others.

All of this seems pretty straightforward, right? Find the industry you do well in and make sure your sales team jumps on those leads first. Unfortunately, there are a lot of factors that go into lead good scoring: company size, what tools the company uses, the title of the person who came inbound, and account behavioral data (how they’ve interacted with you in the past).

By including all of these factors into your lead scoring to incorporate fit and behavior, you can improve conversion rates and accelerate your deal velocity.

Step 1: Assemble your toolset

Tools like MadKudu can take the stress out of lead scoring by automatically making predictions based on fit (e.g., company size, location, market-cap) and behavioral data (e.g., viewed pricing page, connected bank account, signed up for a trial). Simply put, if you add firmographic information to a lead and can determine their history with your company, you can make good guesses on their likelihood to convert and accurately prioritize them for your sales team.

As a B2B company, you’ll most likely want to have a Segment source set up from your company’s marketing website. This source is where we will be collecting the behavioral and firmographic data that MadKudu uses to determine a predictive lead score.

Once we’ve sent MadKudu the right data on an account that’s collected from your website, MadKudu will send back a lead score to Segment. That lead score can then be shared with other tools in your stack like a CRM or marketing automation platform. That’s where you’ll actually use the lead score information to accelerate your sales process.

How to create a Source

To create a source, follow these setup instructions:

  1. Visit the Segment dashboard:

  2. Click Add Source

  3. Select the appropriate Source type

    • If your product is a website, pick JavaScript.

    • If it’s a mobile app:

      • If your mobile app is not React Native, create separate Sources for the iOS and Android versions of your app. (Note for the non-technical: Ask an engineer on your team what your mobile app is made with.)

      • If your mobile app is React Native, proceed with JavaScript as normal.

  4. Click Connect

  5. Name your Source appropriately. Here are some examples:

    • Site: Website

    • React Native App: Mobile App

    • Non-RN App: iOS/Android App

    • Extension: Extension

  6. Note that the Site URL option is optional and is for Segment’s purposes only.

  7. Finally, copy Segment’s generated code to a document to share with your engineers. Tell them to add it to your site or app.

  8. If you have other sites or apps, repeat the steps above to create separate Sources for each.

How to add a Destination

Every Segment Destination has its own configuration, so follow the respective documentation for each. The overall process, however, is always the same:

  1. Log into Segment.

  2. On your Source Overview tab, click Add Destination

  3. Choose the channel from the list (often easiest to search for it)

  4. Click Configure [Channel Name]

  5. Select the source you want to add it to

  6. Click Confirm Source

  7. Configure what needs to be configured

    • Alternatively, if you’re redoing configurations that were already done with another Source (say, previously for your web app and now for your mobile app), you can copy it over:

      • Click the three dots in the top-right corner

      • Select the Source to copy from

      • Click Copy Settings

  8. Click Activate Destination

  9. You’re done!

Step 2: Track events that matter for lead scoring

Once you’ve connected all your tools, you can start collecting the events or user actions that MadKudu cares about.

MadKudu ingests identify, track, page, and group events from Segment. One event that gets sent to MadKudu frequently is an identify call. An identify call is an event that happens after a user takes any action to identify themselves. For example, when a prospect fills out a form on your “Contact Us” page, an identify call will be triggered by Segment to record that user’s contact information.

You can have your developer instrument the identify call once the form is submitted, which looks like this:

Pro tip: If you are using a tool like Marketo to power the “Contact Us” forms on your site, they’ll typically expose a callback function that you can use to trigger an identify call when the form is submitted.

You can also use Segment’s Visual Tagger tool to instrument the form submission event without the need of a developer.

You may also want to track events like Whitepaper Downloaded , Demo Requested, etc. These events are extremely helpful to get more context on a prospect’s past engagement with your company. After all, more engagement typically means a higher interest level in your product or service. You can track those events with a track call like this:

Step 3: Send your data to a lead scoring tool

Now that all your events are instrumented, they will start to flow into your lead scoring tool (which you’ve set up as a Segment Destination), where the events will be ingested and used to automatically predict the customer’s lead score.

Unlike traditional lead scoring solutions, MadKudu requires no manual effort or guesswork. MadKudu uses rigorous statistical methods based on data science to identify the most qualified leads based on customer demographics.

You can work with your MadKudu rep to build a lead scoring model specific to your business. This will ensure that you get the best possible output from the tool. They can help you indicate the industries, company sizes, geographies, and other helpful firmographic data points that power your company’s lead scoring model.

The lead score that MadKudu returns is in the form of an identify call back to Segment that looks something like this:

Which results in a more detailed user profile. This is an example of that user profile in Segment Personas.


Pro Tip: You can use Segment destination filters to only send identify calls you care about to each destination.


Step 4: Use lead scores in your CRM

Once MadKudu returns back the lead score, you can utilize this enriched information in other downstream destinations. Most likely, this will be in your CRM or marketing automation tool.

If you already have a CRM connected to Segment, your leads will be automatically updated as long as you allow identify calls into your destination.


You can see that each contact is now paired with an associated lead score. This makes it easier for your sellers to determine who’s most likely to be interested in receiving more information about your company or, hopefully, take a call. It also helps reps prioritize their follow up and make the best use of their time.


Wrapping Up

Here’s what we’ve done in this recipe:

  • Collected data from your marketing website that’s related to understanding whether or not the prospect is a high-quality lead that’s likely to convert

  • Sent that behavioral data to a lead scoring tool such as MadKudu

  • Received lead scores back and sent that score to your CRM tool that can then be used by sales and marketing teams for prioritization

Getting started is easy

Start connecting your data with Segment.