{"id":1949,"date":"2026-09-20T02:13:42","date_gmt":"2026-09-20T02:13:42","guid":{"rendered":"https:\/\/onesystemcrm.com\/help\/docs\/how-to-automatically-track-patient-referral-sources-by-email-domain\/"},"modified":"2026-09-20T16:24:09","modified_gmt":"2026-09-20T16:24:09","password":"","slug":"how-to-automatically-track-patient-referral-sources-by-email-domain","status":"publish","type":"docs","link":"https:\/\/onesystemcrm.com\/help\/docs\/how-to-automatically-track-patient-referral-sources-by-email-domain\/","title":{"rendered":"How to Automatically Track Patient Referral Sources by Email Domain"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you run a practice that lives on referrals \u2014 physical therapy, chiropractic, oral surgery, dermatology \u2014 you already know the real question isn&#8217;t &#8220;how many new patients did we get this month,&#8221; it&#8217;s &#8220;who sent them.&#8221; OneSystemCRM can now answer that question for you automatically, without a front-desk staffer typing a referral source into a dropdown by hand. When a new patient signs up using their work email, OneSystemCRM checks the domain, matches it to a referring practice or employer you already work with, and files the patient under that account \u2014 creating the account record for you the first time a referral shows up from it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Referral Tracking Falls Apart Without This<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Most clinics track referral sources the same way: a required field on the intake form, or a &#8220;how did you hear about us?&#8221; question the front desk asks over the phone. It works fine for the first fifty patients. Then a temp fills in for the regular receptionist, a patient calls in instead of booking online, or someone just leaves the field blank because the waiting room is backed up \u2014 and three months later, the clinic owner pulls a report to figure out which referring providers are worth sending a thank-you gift, and half the records say &#8220;unknown.&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A physical therapy clinic that takes referrals from a dozen orthopedic surgeons runs into this constantly. The clinic owner wants to know, at a glance, which surgeon&#8217;s office is sending patients who actually show up and complete their treatment plan \u2014 because that&#8217;s the relationship worth protecting with a call, a lunch, or a fax back to the referring physician. Chasing that answer by hand means exporting a spreadsheet, opening every patient file, and reading free-text notes to guess who referred whom.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How Automatic Company Matching Works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once this is turned on, OneSystemCRM watches for new or updated patient email addresses and runs a simple check behind the scenes:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>It looks for a matching account first.<\/strong> If a Company record already exists for that email domain (say, <code>westsideortho.com<\/code>), the new patient is linked to it automatically \u2014 no manual tagging required.<\/li>\n\n\n\n<li><strong>It fills in gaps on existing records.<\/strong> If a Company record exists for that referring practice but never had its domain saved, OneSystemCRM adds the domain rather than creating a second, duplicate record for the same office.<\/li>\n\n\n\n<li><strong>It creates a new Company only as a last resort.<\/strong> If nothing matches, OneSystemCRM creates a new Company record and links the patient to it \u2014 so the very first referral from a new source is captured instead of falling through the cracks.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Newly created or updated Company records also get a best-effort assist: OneSystemCRM tries to pull in a business name and logo based on the domain. It won&#8217;t block anything if that information isn&#8217;t available \u2014 the record is still created and linked either way.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[SCREENSHOT: A patient record showing a linked Company card with the referring practice&#8217;s name and logo]<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Turning On Automatic Company Creation<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Open the Company Automation Settings<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Go to <strong>Settings \u2192 Objects \u2192 Companies<\/strong>. This is where every toggle for this feature lives.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1484\" height=\"812\" src=\"https:\/\/onesystemcrm.com\/help\/wp-content\/uploads\/2026\/09\/onesystemcrm-companies-settings-automation.jpg\" alt=\"OneSystemCRM Settings, Objects, Companies page showing the company automation toggle\" class=\"wp-image-1950\" srcset=\"https:\/\/onesystemcrm.com\/help\/wp-content\/uploads\/2026\/09\/onesystemcrm-companies-settings-automation.jpg 1484w, https:\/\/onesystemcrm.com\/help\/wp-content\/uploads\/2026\/09\/onesystemcrm-companies-settings-automation-300x164.jpg 300w, https:\/\/onesystemcrm.com\/help\/wp-content\/uploads\/2026\/09\/onesystemcrm-companies-settings-automation-1024x560.jpg 1024w, https:\/\/onesystemcrm.com\/help\/wp-content\/uploads\/2026\/09\/onesystemcrm-companies-settings-automation-768x420.jpg 768w, https:\/\/onesystemcrm.com\/help\/wp-content\/uploads\/2026\/09\/onesystemcrm-companies-settings-automation-360x197.jpg 360w\" sizes=\"(max-width: 1484px) 100vw, 1484px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Enable the Toggles You Need<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You&#8217;ll see three separate switches, and you don&#8217;t have to turn all of them on together:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Create companies from a contact&#8217;s email domain<\/strong> \u2014 this is the core toggle. Turn it on to have new patient signups automatically matched or filed under a Company record.<\/li>\n\n\n\n<li><strong>Enrich companies automatically<\/strong> \u2014 turn this on to have OneSystemCRM attempt to fill in a business name and logo for any Company it creates or updates.<\/li>\n\n\n\n<li><strong>Automatically prevent duplicate companies<\/strong> \u2014 turn this on so two patients from the same referring office don&#8217;t end up creating two separate Company records.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Exclude Personal Email Domains<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Common personal email providers (Gmail, Yahoo, and similar) are excluded from this automation by default, so a walk-in patient using a personal address won&#8217;t accidentally spin up a fake &#8220;Company.&#8221; If your area has a popular local internet provider or webmail service you also want excluded, add it to the custom exclusion list on the same settings page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Review and Clean Up Auto-Created Companies<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Check your Companies list periodically, especially in the first few weeks. Domain matching is exact \u2014 <code>westsideortho.com<\/code> and <code>billing.westsideortho.com<\/code> are treated as two different domains, so a referring office that uses more than one subdomain for different staff may end up with more than one Company record until you merge them manually.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[SCREENSHOT: Companies list view filtered to recently created records]<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Clinic Example: A Physical Therapy Practice Finds Its Best Referral Sources<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A physical therapy practice with two locations gets referrals from around fifteen orthopedic and sports medicine offices. Before turning this on, the practice manager relied on a &#8220;referred by&#8221; text field that front-desk staff filled in inconsistently \u2014 some referrals got logged with the doctor&#8217;s name, some with the practice name, some not at all. At the end of the quarter, pulling an accurate list of which referring offices sent the most patients meant manually reading through hundreds of contact notes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After enabling automatic Company creation, every new patient who books using an email from <code>@westsideortho.com<\/code>, <code>@lakeviewsportsmed.com<\/code>, or any other referring practice&#8217;s domain is filed under that practice&#8217;s Company record the moment they sign up \u2014 no front-desk data entry involved. Three months in, the practice manager can open the Companies list, sort by number of linked patients, and see immediately that Westside Ortho is sending twice as many patients as any other source, which made it an easy call on which referring office to visit in person and thank.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The same setup works for a med spa or aesthetics clinic that runs corporate wellness perks \u2014 employees who book using their employer&#8217;s email domain get grouped under that employer&#8217;s account automatically, making it simple to see which corporate partnerships are actually driving bookings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Pairing This With Other OneSystemCRM Features<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"https:\/\/onesystemcrm.com\/help\/docs\/how-to-set-up-custom-objects-to-track-patients-treatments-equipment\/\">Custom Objects to Track Patients, Treatments &amp; Equipment<\/a><\/strong> \u2014 add a custom field to your Company records, like &#8220;referral tier&#8221; or &#8220;specialty,&#8221; so you can filter your referral list beyond just a name and a patient count.<\/li>\n\n\n\n<li><strong><a href=\"https:\/\/onesystemcrm.com\/help\/docs\/patient-record-page-view-every-patient-interaction-in-one-screen\/\">Patient Record Page<\/a><\/strong> \u2014 once a patient is linked to a Company, that referral source shows up right on their record, so front-desk staff can see who referred a patient without leaving the same screen they already use for appointments and messages.<\/li>\n\n\n\n<li><strong><a href=\"https:\/\/onesystemcrm.com\/help\/docs\/how-to-bulk-import-companies-using-a-csv-file\/\">Bulk Import Companies Using a CSV File<\/a><\/strong> \u2014 if you already keep a spreadsheet of referring providers, import it first so those Company records (and their correct domains) exist before you turn on automatic creation. That way, new referrals match your existing list instead of creating fresh duplicate records.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting &amp; FAQ<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>A new patient didn&#8217;t get linked to a Company. Why not?<\/strong>\nCheck the email domain against your exclusion list first \u2014 personal providers like Gmail and Yahoo are excluded by default, and any custom domains you&#8217;ve added to the exclusion list won&#8217;t trigger Company creation either.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Two offices that are really the same practice ended up as separate Company records.<\/strong>\nThis usually means the two offices use different subdomains (for example, <code>frontdesk.clinicname.com<\/code> and <code>clinicname.com<\/code>), which OneSystemCRM treats as distinct domains. Merge the duplicate Company records manually, and future patients from either domain will still route correctly once the domain is saved on the record you keep.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Will this overwrite the referral sources I already entered by hand?<\/strong>\nNo. A domain you&#8217;ve entered manually on a Company record is never overwritten by the automatic backfill, and patients already linked to a Company keep that link \u2014 this feature only fills gaps and catches new referrals going forward.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Can I turn this on for new patients without touching my existing patient list?<\/strong>\nYes. Turning on the &#8220;create companies from a contact&#8217;s email domain&#8221; toggle only affects new signups and updates to a patient&#8217;s email going forward. It doesn&#8217;t retroactively scan or relink your existing patient records.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>How do I actually see which referring practice sends the most patients?<\/strong>\nOpen the Companies list and sort by the number of linked contacts, or open a specific Company record to see every patient tied to it. Pairing this with a custom &#8220;referral tier&#8221; field (see the Custom Objects link above) makes it easy to filter your top sources at a glance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stop manually logging referral sources. OneSystemCRM auto-creates Company records from patient email domains so you always know who sent you each patient.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"doc_category":[84],"doc_tag":[],"class_list":["post-1949","docs","type-docs","status-publish","hentry","doc_category-managing-your-crm-views"],"year_month":"2026-12","word_count":1369,"total_views":"72","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"usamasaeed219","author_nicename":"usamasaeed219","author_url":"https:\/\/onesystemcrm.com\/help\/author\/usamasaeed219\/"},"doc_category_info":[{"term_name":"Managing your CRM Views","term_url":"https:\/\/onesystemcrm.com\/help\/docs-category\/managing-your-crm-views\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/docs\/1949","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/comments?post=1949"}],"version-history":[{"count":1,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/docs\/1949\/revisions"}],"predecessor-version":[{"id":1951,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/docs\/1949\/revisions\/1951"}],"wp:attachment":[{"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/media?parent=1949"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/doc_category?post=1949"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/doc_tag?post=1949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}