Data Quality

Deduping Visitor-ID Records Across HubSpot and Salesforce

How to stop duplicate visitor records from breaking your HubSpot-Salesforce sync.

Cover illustration for “Deduping Visitor-ID Records Across HubSpot and Salesforce”
Cover illustration for “Deduping Visitor-ID Records Across HubSpot and Salesforce”

Deduplicating visitor-ID records across HubSpot and Salesforce is an integration task. Reliable results depend on clean identity fields upstream, matching rules in both platforms, and a merge sequence that preserves the Salesforce ID link. Unsynced contacts should be cleaned in HubSpot before handoff. After sync, Salesforce must govern merges and deletions.

Why duplicate records in a dual-CRM stack are a different problem than duplicates in a single system

Broken handoffs, double outreach, and corrupted pipeline data are the operational costs of duplicates in a dual-CRM stack. Activity history ends up spread across records, field values that clash cause sync failures, and leads go to the wrong record at handoff. Automations can also fire twice when both records meet the conditions for a trigger. These failures extend beyond a single database.

A duplicate in one platform can replicate into the other during the next sync cycle, depending on object type and configuration. The integration also creates duplicates of its own. It can create HubSpot records without giving HubSpot’s native deduplication logic an opportunity to intercept them. Consequently, single-platform cleanup can leave the source of duplication intact.

How HubSpot and Salesforce each deduplicate records natively, and where their logic diverges

HubSpot automatically deduplicates contacts by email and companies by domain for manual entry, forms, and imports, with API or third-party sync creation excluded from this automatic deduplication. The response depends on the entry method. A duplicate is blocked when a record is created by hand, while forms update the record already there. Imports update an existing record only when the file includes email, domain, Record ID, or a custom unique-value property. When a form is submitted with a secondary email, it overwrites the existing primary email, which may change the downstream matching key.

HubSpot’s deduplication documentation identifies API-created companies and companies created through the Salesforce integration as exceptions to domain-based deduplication. HubSpot also supports deduplication using Record IDs and custom unique-value properties across contacts, companies, deals, tickets, products, and custom objects. These mechanisms do not make every creation path equivalent.

Salesforce requires explicit administrator configuration of Matching Rules, which identify duplicates, and Duplicate Rules, which block, warn, or report. Standard rules exist for Leads, Contacts, and Accounts, but often require customization. Contacts alone do not provide sufficient coverage. Leads and Contacts are separate objects that can represent the same person at different funnel stages without either system flagging duplication.

The integration matches Salesforce leads and contacts to HubSpot by email. If Salesforce records share an email, initial creation uses whichever Salesforce returns first, in no particular order. Later syncs use the record that was updated last. Completeness does not determine which record supplies the data. Company matching instead uses the Salesforce Account ID of a previously synced contact or, with new company sync enabled, an exact configured field match such as domain.

Where the sync boundary breaks deduplication

Two Salesforce records with different emails become separate HubSpot contacts because the integration cannot reconcile their identity. Conversely, two HubSpot contacts with different emails corresponding to one Salesforce record require deliberate HubSpot consolidation. Contacts without email and accounts without domain values can come through as new records on one sync cycle after another because they lack the identifier used for matching.

Salesforce accounts that share a domain may be for a parent, subsidiaries, regional entities, or separate business units. Domain-based importing can collapse them into one HubSpot company, while Account ID matching can preserve them as separate companies. A missing domain or a formatting difference can also defeat an exact match and create another company.

Cleanup itself can introduce another boundary failure. Deleting or merging a HubSpot record without corresponding Salesforce action may cause the integration to recreate it or produce a sync error requiring manual intervention. These problems can occur even when the health dashboard looks clean. Slightly different emails, companies predating their Salesforce accounts, and list-imported leads can escape its view while affecting pipeline data.

Why Salesforce must be the master system for all post-sync merges

Once records have synced, initiate their merges and deletions in Salesforce to preserve the integration’s ID chain. A Salesforce merge preserves the link only when the record currently syncing with HubSpot survives as the master. Choosing a more complete but non-syncing record can break that link.

HubSpot’s Salesforce sync documentation instructs practitioners to identify the current partner through the HubSpot contact’s Salesforce Lead ID or Salesforce Contact ID property. That Salesforce record should be the primary. Salesforce’s account and contact hierarchy handling also better supports complex enterprise and multi-entity merge decisions than HubSpot’s flatter model. Data completeness informs consolidation, but it cannot override the existing sync relationship.

The exception is contact data not yet synced. Pre-MQL records from forms, website activity, or campaigns should be deduplicated in HubSpot before reaching the sync threshold. That is a separate, mandatory preparation step. It keeps duplicates on the marketing side from becoming linked records that must be dealt with in Salesforce.

Upstream enrichment and its effect on downstream deduplication

Visitor identification turns anonymous sessions into identity records containing fields such as name, work email, company, job title, LinkedIn URL, and behavioral signals. It brings in a large number of contacts under different entry conditions from those for forms or manual creation. Missing or mismatched email and domain values from enrichment can leave neither CRM able to deduplicate the record automatically.

Person-level identification resolves a named individual with a verified email, providing a reliable contact-level key. Company-level identification through reverse IP lookup produces an account-level record without an associated contact email, so it cannot automatically match an existing contact. Treating these enrichment levels as interchangeable moves an unresolved identity problem into the CRM.

A tool that does not separate AI agents and crawlers from human sessions can introduce phantom company-level visitors with no real contact behind them. Records may appear deduplicated while still representing fictional contacts that require downstream cleanup.

A duplicate in one platform can replicate into the other during the next sync cycle, depending on object type and configuration.

Configuring HubSpot and Salesforce before running any deduplication

Configure prevention before cleaning the existing record population. In HubSpot, disable “Create and associate companies with contacts” before sync goes live or before an import. Otherwise, a contact’s email domain can generate a company even when a matching Salesforce account exists. For contact matching, email is already the integration’s fixed built-in key. There is no separate “Match by Email” setting to enable.

In Salesforce, configure Matching Rules and Duplicate Rules for Leads, Contacts, and Accounts. Do not stop at contact-level rules alone. Add validation rules to block entries with missing values or values that clash, especially when the email or domain is missing. These gaps otherwise remove the identifiers needed to distinguish an existing record from a new one.

For companies, deals, tickets, activities, and custom objects, configure field-mapping deduplication in HubSpot. Go to Settings > Integrations > Connected Apps > Salesforce > Data sync, choose the object, click Sync rules, and choose the field mapping. The field must be single-line text in both systems, with exactly matching values. Deals need extra care because they have no natural identifier such as email, so field mapping is the available way to deduplicate them.

These changes do not repair historical duplicates. HubSpot’s sync documentation states that field-mapping deduplication applies only to records syncing after the configuration change. Pre-existing duplicates still need separate resolution. For complex deal structures, fields must therefore be chosen with care, and earlier deal duplicates must be cleaned up by hand.

Finding existing duplicates in both systems before any merge work begins

In HubSpot, use Manage Duplicates to find flagged contacts and companies. Add Create Date, Salesforce Contact ID, and Salesforce Lead ID as visible properties. These distinguish synced records from unsynced records and reveal the current Salesforce partner.

In Salesforce, build Duplicate Record Item reports for Leads, Contacts, and Accounts and set them to run on a schedule. Include cross-object review in the audit as well. Standard duplicate reports omit an unconverted Lead for someone already stored as a Contact.

Use an export-and-audit approach with Record IDs and domain values for cases the integration health tab does not surface. For higher volumes or more complex matching, Insycle’s HubSpot tooling and cross-system workflow support rules beyond native capabilities. These can help identify contacts with different emails but a shared phone number or company.

The merge sequence for resolving duplicates without breaking the sync

First, identify the record intended to survive and inspect its Salesforce linkage before acting. In HubSpot, open Actions > View all properties and search for Salesforce Lead ID or Salesforce Contact ID. A Salesforce-backed record takes precedence over an unsynced duplicate. When both records have IDs, compare completeness and recent relevant activity, but preserve the current syncing Salesforce record as primary.

If neither contact has synced, consolidate in HubSpot before handoff. If only one has a Salesforce ID, merge the unsynced duplicate into the Salesforce-backed HubSpot primary. The distinction is important because this mixed-state consolidation is not permission to delete a synced record on the HubSpot side.

If both records have Salesforce IDs, merge in Salesforce first. Before executing that merge or removing any record, transfer linked assets, including contacts, attachments, deals, notes, meeting logs, and open tasks. Also inspect any setting that deletes HubSpot contacts when corresponding Salesforce records are deleted. Confirm that the secondary Salesforce record is the non-syncing record, because its corresponding HubSpot contact will be deleted when it merges into the primary.

Choose the Salesforce record currently syncing with HubSpot as primary, then execute the merge. With the correct integration settings enabled, Salesforce updates the corresponding HubSpot record automatically. Verify the sync after the merge completes. HubSpot’s sync documentation warns that choosing a non-syncing primary causes the contact to show that it is no longer syncing. Click Resync on the Salesforce Sync card to restore that connection.

For an active cross-system workflow, keep the tool’s documented behavior separate from the case where only one record has synced. Insycle’s cross-system documentation assumes both records exist in Salesforce and recommends Salesforce-first merging. A mapped custom field such as “Deduplication Master Record” provides a durable audit trail of surviving and retired records. For Selective Sync users, limiting which contacts pass from Salesforce to HubSpot can also reduce the population exposed to boundary duplication.

Preventing duplicate re-accumulation after the initial cleanup

Imports, forms, manual entry, and third-party integrations continue to introduce records after cleanup. Prevention must cover each of those entry paths. Require visitor identification tools, enrichment providers, and other connected apps to honor the configured matching fields. Standardize picklists, lifecycle stages, and required fields across both platforms so inconsistent values do not make the same entity appear different.

Maverick’s real-time CRM status flag can support this intake workflow by distinguishing known contacts, new prospects, and existing customers. Route records flagged as already in CRM toward updates to existing records. This connects visitor enrichment to the existing record population. It cuts down on needless new records, while the matching rules and merge process are still needed.

Assign a named operations or administration owner to maintain the process. Schedule Salesforce duplicate reports and HubSpot Manage Duplicates reviews weekly or monthly. Track the duplicates caught in each period and changes in data completeness scores so leadership can keep checking data quality.

Priya Subramaniam

More in Data Quality

← Front page