Knowledge Base
How to create custom fields in Salesforce

How to create custom fields in Salesforce

How do I create custom fields in Salesforce?

Customised fields in Salesforce provide more actionable data and information about your leads and opportunities.

Each admin user in Salesforce can create new data fields in Salesforce, allowing you to capture the information that matters most to your sales and marketing teams.  

For this step by step guide, we’re going to teach you how to add a lead source field in Salesforce. Then, we'll show you an easy way to automatically send lead source data to your contacts and opportunities using Ruler Analytics.

How to add a custom field in Salesforce

Pro Tip: Download the guide on tracking marketing sources in Salesforce and unlock powerful revenue data to help attribute value to your marketing efforts, and prove what's working.

Create your custom field in Salesforce 

You can add a custom field by navigating to the gear icon and select Setup. This launches Setup in a new tab.

  1. Click the Object Manager tab and click to create a new object 
  2. Next, list all of the fields accessible for this object 
  3. Then enter the required field details (these can be different fields depending on the type you’re creating) 
  4. You will need to add in field name, field description and a help text
  5. Next step you need to define the field security, by selecting to which type of users the field will be visible and accessible
  6. Lastly, you need to select the page layout, when applicable.


Your custom field can allow you to get further data on leads, organisations, or products. You can learn more about custom fields and how they work in Salesforce here

How to pass lead source data to Salesforce from Ruler Analytics

Not only does Ruler Analytics automatically input all new leads to Salesforce no matter their source, but it can also pull extra data including marketing source. 

Visibility of your marketing source, allows you to view your marketing for what it truly is: the starting point of your sales process. Identifying which channels are working hardest to drive and close leads can help you maximise the time and resources you put into marketing. 

Ruler tracks each anonymous visitor individually, records how that user found your site and tracks any subsequent visits or interactions with other marketing channels and campaigns.

If, or when, an anonymous visitor makes a conversion, whether it be a form fill, phone call or live chat enquiry, Ruler will update the data on that user to create a journey map and send the marketing source and conversion data to Salesforce.

And the data Ruler can pull isn’t limited to marketing source. You can view your first and last-click marketing source, the landing page and even keyword that your lead engaged with. Plus, in Ruler, you’ll be able to see the full customer journey.

All you need to do is set up a custom filter for each marketing variable you want to track and Ruler will do the rest.

When your lead converts into a sale, no matter how long after their first session, Ruler will utilise a pre-built integration to fire conversion and revenue data back into your favourite marketing apps and tools. 

Ruler Analytics will scrape the closed revenue from Salesforce and share it with apps like Google Ads, Facebook Business Manager and Google Analytics. 

This allows your marketing team to identify which marketing channels, campaigns and ads are generating the most revenue.

Ruler can also integrate with your payment processing system to track repeat sales and renewals. This is extremely useful for marketers that track and report on metrics like marketing-generated monthly recurring revenue and customer lifetime value.

Interested in learning more?

If you want to learn more about how Ruler can support you in how your team uses Salesforce, then contact our team. 

Ruler Analytics is the perfect tool to add to your marketing arsenal. With it, you’ll get greater visibility of what’s working in your business, and what isn’t. It’ll give you the power to scale profitability. 

Book a demo of Ruler today and discover which marketing sources contribute the most value to your bottom line.

Related articles:

What is lead source in Salesforce?
What is the lead process in Salesforce?
How to integrate phone calls to Salesforce
How to import leads into Salesforce