HubSpot Visitor Routing

Salesforce Duplicate Rules and Matching Rules for Visitor Data

How to configure matching so enrichment merges instead of vanishing.

Cover illustration for “Salesforce Duplicate Rules and Matching Rules for Visitor Data”
Cover illustration for “Salesforce Duplicate Rules and Matching Rules for Visitor Data”

Visitor data tests Salesforce duplicate management at the point where identity matching meets enrichment. The decisive choice is how matching rules interpret email, names, company details, and enrichment fields. A sound configuration identifies the person without discarding new information, while the visitor integration checks for existing records before creating more.

Why visitor-sourced records break standard Salesforce deduplication

A visitor identification tool writes a Contact through the API, but its enriched identity fields do not align with an existing skeleton Contact. Depending on the rules, Salesforce admits another record for the same person or blocks the incoming write and loses the enrichment. Neither outcome serves the sales team well. The underlying problem is the mismatch between sparse CRM records and richer visitor-sourced records.

A manually entered Contact may contain only name, company, and email, while the incoming record also includes title, LinkedIn URL, personal email, phone, traffic source, and an ICP flag. These additional fields make the record actionable, but their presence does not automatically improve duplicate detection. Matching still depends on which fields the rule compares. Salesforce’s duplicate rules documentation also states that API-created or API-edited records override duplicate rule settings, with no alert shown, so the interactive warning-and-save experience does not transfer cleanly to this integration path.

How matching rules and duplicate rules divide the work

A matching rule defines which records count as duplicates by specifying fields and comparison methods, including exact and fuzzy matching. A duplicate rule determines the response when that comparison finds a match, such as blocking a save, warning a user, or reporting the duplicate. A duplicate job performs a different task. It scans records already in Salesforce using a selected matching rule.

Matching precision is set for each field, and there is no global confidence slider. A rule can compare email exactly while allowing variation in a name, which accommodates a formal name arriving against an existing nickname. Salesforce has standard rules for Accounts, Contacts, and Leads, along with matching rules for each. Person Account rules must be turned on after person accounts are enabled.

In Salesforce, an object can have only five active duplicate rules. Each duplicate rule can contain up to three matching rules, with one active matching rule per object within that duplicate rule. Across duplicate rules, an object can have up to five active matching rules.

What visitor data actually carries and which fields can anchor a match

Before configuring a rule, the administrator must distinguish identity anchors from descriptive enrichment. Person-level visitor records can include business and personal email, LinkedIn profile URL, name, company, phone, title, seniority, job function, and region. Traffic source, ad platform, and ICP flags tell more about the visit. They help explain the visitor’s relevance, but they do not establish that two records represent the same person.

Business email is the strongest primary anchor in this use case because it is exact-matchable and identifies the person in a business context. Personal email is another way to identify the person, but it belongs in its own field while business email stays in place. The same person may have given different addresses at different times. LinkedIn URL can bridge that difference where the existing CRM consistently contains it, but requiring a URL absent from older records would create false negatives.

Company name supports a match rather than anchoring it, because “Acme Inc” and “Acme Incorporated” can describe the same organization. Names also need tolerance for variation. First name alone is weak, while last name with email domain gives a stronger signal when there is no business email. Title is less dependable because it changes with employment, and phone is useful as supporting evidence where available.

Designing a matching rule for visitor-sourced Contacts and Leads

In Setup, open Matching Rules and create the visitor-data matching rule for the relevant object. Select Email with an exact comparison as the primary identity condition. An exact email match must still count when the name differs. This allows enrichment to return a formal name without treating the existing nickname as evidence of a different person.

For records without email, configure a fallback using fuzzy Last Name and fuzzy Company Name, supported by normalized Phone where available. Keep this fallback distinct from the email-led path so that additional comparisons do not invalidate the strongest identifier. Fuzzy comparison accommodates spelling differences and company-name variants that exact matching misses. It also warrants closer review because these fields are less decisive than email.

Where LinkedIn URL is already populated consistently, use an exact comparison in a separate matching rule within the available rule budget. Activate matching rules before activating duplicate rules that reference them. For Contacts and Leads, also check cross-object coverage. Salesforce’s standard duplicate rules documentation states that the standard Contact and Lead rules in orgs created in Summer’17 or later include cross-object matching, but the rules must be active and the visitor mapping must align with their fields.

Custom field types can restrict that coverage. Salesforce does not support custom picklist fields in matching rules used by cross-object duplicate rules. A visitor integration’s custom ICP or source field therefore cannot be assumed to work in that comparison simply because it is available on the record.

These additional fields make the record actionable, but their presence does not automatically improve duplicate detection.

Choosing the right duplicate rule action for API-inserted visitor records

Block appears conservative, but it can be the wrong protection for API-inserted visitor enrichment. When a matching incoming record is rejected, Salesforce does not create it, and its additional field data can be lost. The interactive alert is absent from this path. Without integration handling, the administrator and rep may have no visible indication that useful enrichment was discarded.

For this integration pattern, configure Allow + Report deliberately as a chosen action in its own right, with any move to Block considered separately. The incoming record is created, and the detected duplicate is logged to a Duplicate Record Set for review. This preserves the information needed to decide whether to merge or dismiss the match. It accepts a review burden in exchange for avoiding the loss of incoming enrichment.

After validation, the appropriate escalation is an automated merge workflow for confirmed duplicates, retaining enrichment from both records. Block should be considered only if the integration explicitly handles the API behavior. Bulk insertion introduces another gap. Salesforce states that records saved simultaneously are compared only with records already in Salesforce, so duplicates within an incoming batch require a subsequent duplicate job or alternative review.

Running a duplicate job to surface records already in the org before the integration goes live

Before connecting the visitor tool, run a duplicate job on Contacts and Leads using the email-anchored matching rule. Existing form fills, list imports, and earlier integrations may have left skeleton records that will collide with incoming visitor identities. A new duplicate rule does not clean that history. The job collects existing matches into Duplicate Record Sets for review and merging.

Native duplicate jobs are available only in Performance and Unlimited Editions. For Professional or Enterprise, use a Data Loader export with external deduplication or a third-party tool instead. When the dataset exceeds the maximum scannable record count, Salesforce scans the most recently updated records, potentially leaving older skeleton records outside the results.

Review and merge confirmed duplicates before activating the incoming-write duplicate rules and connecting the integration. This preparation separates inherited data problems from problems caused by the new feed. It also makes the subsequent Allow + Report audit more useful, because historical duplication is less likely to obscure whether visitor matching is working.

Where native duplicate management ends and the data gets complicated

Standard cross-object matching covers the Lead–Contact combination, leaving an incoming Contact against an existing Account outside its coverage. The out-of-box rules do not cover custom objects. Custom matching and duplicate rules can address their records at entry time, but that does not extend standard cross-object coverage to every combination.

Exact and fuzzy comparisons can match people in the ways described above, but rules that check both identity and recent visit activity need Apex or a third-party tool. Custom picklist restrictions further constrain cross-object designs.

Reporting is another limit of the native foundation. Standard Salesforce reports do not show duplicate creation rate over time or establish whether that rate improved after a configuration change. Exporting Duplicate Record Set data to external reporting, or using a dedicated tool, supports that assessment. The API behavior remains a separate integration constraint rather than something a more elaborate matching equation resolves.

Data Cloud’s Identity Resolution operates at a different layer, combining information from Salesforce and external sources and selecting values for unified fields. It leaves duplicate records in the Salesforce objects used by sales reps intact, keeping identity unification separate from CRM cleanup. The next source of control is upstream, in what the visitor tool chooses to write.

How the visitor identification tool's write behavior determines how hard the deduplication problem is

A visitor tool makes Salesforce matching easier when it maps business email to the standard Email field, company name to Account Name where appropriate, and LinkedIn URL to a consistent custom field. With non-standard mappings, matching rules have to work with a separate set of fields, which uses up some of the room for configuration. Custom picklists can also obstruct cross-object matching.

The stronger approach checks for an existing person before writing a new record. An API lookup on email or LinkedIn URL allows the integration to update an existing record. This prevents duplication at its source. Salesforce’s rules then provide a safeguard for the remaining writes.

Person-level identification supplies the anchor that makes this approach practical. A company-level record without a person’s email leaves matching dependent on company name, where fuzzy comparison produces more false positives than an email-led rule. Person-level enrichment with CRM-native integration and full field mapping provides a more tractable starting point. It can also expose an “already in CRM” status for rule conditions, while the integration performs the update to the existing record.

A practical configuration sequence for going live without polluting the CRM

First, audit and clean Contacts and Leads before connecting the visitor tool. Use an email-exact matching rule for a duplicate job where the edition supports it, then review and merge confirmed matches. On lower editions, use a Data Loader export and external review.

Next, build the visitor matching configuration with exact Email as the primary path and fuzzy Last Name plus Company as the fallback. Add exact LinkedIn URL matching only where existing field coverage supports it. Activate the matching rules first. Then configure duplicate rules separately for Contacts and Leads with Allow + Report, retaining cross-object coverage where the standard rules and mapping support it.

Before enabling writes, verify the integration user’s read and write access to the fields referenced by the matching rules, including custom LinkedIn URL fields. Salesforce states that a rule does not work as expected when the updating user lacks access to referenced fields. Then connect the visitor integration for a defined review period. Inspect Duplicate Record Sets weekly, assess valid records flagged as duplicates and duplicates missed, and adjust fuzzy matching settings based on those findings.

Once false positives are at an acceptable level, consider a Flow-based process to merge high-confidence duplicates before considering Block. That choice must preserve the enrichment the integration was introduced to supply. Keep exporting Duplicate Record Set data from time to time to track trends, since standard reports do not show how the duplicate rate changes. Keep checking as the number of visitors and the fields they bring change, and adjust rules based on the records that come in.

Sources

  1. Things to Know About Duplicate Rules

    Supplied the points that API-created records override duplicate rule settings and that an object can have five active duplicate rules.

  2. Standard Duplicate Rules

    Supplied the details on standard Account, Contact and Lead rules, including cross-object matching in orgs created in Summer'17 or later.

  3. Duplicate Rules

    Covered how matching rules, duplicate rules and duplicate jobs divide the work, and the limits on rules per object.

Renata Słowik

More in HubSpot Visitor Routing

← Front page