Skip to content
MergeGuard

    Start with

    Explainer

    When you merge customers in Shopify’s admin, the email you keep decides which profile remains. If only one profile has an email, it stays; if both do, the profile tied to the kept email stays; if neither does, the profile you selected stays. The API gives no guarantee about the first customer ID.

    By MergeGuard team

    3 min read

    Many people expect Shopify to keep the profile with the most orders, or the oldest one. Shopify’s published rules mention neither. They follow the email address.

    Key insight

    The kept email, not the order count, decides which profile survives in Shopify.

    The admin rule

    In Shopify’s admin, the email address decides which profile remains, and the help page for merging customers gives three cases:

    4 words used here
    Kept emailThe email address the merged customer ends up with. It decides which profile remains.
    Merged customer sectionThe screen in the admin that shows what the merge combines and what it drops.
    APIThe way apps and developers send instructions to Shopify.
    Email marketing consentWhether a person agreed to receive marketing email.
    Situation Profile that remains
    Only one has an email That profile
    Both have an email The profile tied to the email address kept on the merged record
    Neither has an email The profile you selected under “Find a customer to merge with”
    Input: Profile A, Has a phone number, no email address. Input: Profile B, Has an email address. Only one profile has an email, Shopify keeps that profile.. Profile B stays.Profile AHas a phonenumber, noemail addressProfile BHas an emailaddressOnly one profile has an emailShopify keeps that profile.Profile B stays
    The email decides which profile remains. The order counts do not enter into it.

    MergeGuard recommends a profile to keep in each group it finds and shows why. Finding duplicate groups and every review view (Strong, Needs your judgment, New, All open) work on every plan, Free included.

    What happens to the other profile’s data

    When two profiles merge, Shopify combines the listed information into one profile: orders, draft orders, addresses, email address, phone number, name, notes, tags, tax settings, timeline events, credit cards, customer accounts, gift cards and discounts. The “Merged customer” section shows what will be merged and what will be discarded, and you can adjust the contact information before you confirm.

    Profile 1OrdersAddressesEmail and phone number
    Profile 2OrdersAddressesEmail and phone number
    Merge
    One customerOrders from bothcombinedAddressescombinedEmail and phone numberyou choose

    A merge is permanent, so check the pair before you confirm.

    What happens to each profile’s information

    Orders do not move one by one, so the merge is the only way the orders of two profiles come together.

    “Orders are permanently associated with the customer account that placed them.”

    Shopify Help Center: Merging customer profiles, checked

    After the merge, “you can’t reverse the process”.

    The API rule ladder

    Apps send a merge to Shopify through its API, and the API picks the kept customer with an ordered list of rules.

    For developers: the merge request and its rules

    Shopify’s Admin GraphQL API is how apps send a merge to Shopify. Its customerMerge instruction, the API instruction that merges two customers, picks the kept customer with an ordered list of rules, which is the “ladder”. It needs the write_customer_merge access scope, the permission an app must hold.

    The first customer ID you pass in (customerOneId) “isn’t guaranteed to be kept”. The second (customerTwoId) is kept when neither customer has an email address.

    The page lists the rules in order:

    1. If an override email to keep is given and valid, that customer is kept.
    2. If exactly one customer has an email address, that customer is kept.
    3. If both have an email address, account state and email marketing consent decide, with an enabled account winning over other account states. If none of these prefers either customer, the second customer ID (customerTwoId) is kept.
    4. If neither customer has an email address, customerTwoId is kept.
    Only one has an emailAdmin rule: That profile stays.API ladder: That customer is kept, unless a valid override email is given.
    Both have an emailAdmin rule: The profile tied to the kept email stays.API ladder: Account state and consent decide. If neither prefers a customer, the second customer ID passed in is kept.
    Neither has an emailAdmin rule: The profile you selected under “Find a customer to merge with” stays.API ladder: The second customer ID passed in is kept.
    The same pair of profiles under each rule

    The two rules agree on the first and second cases. In the third case the API adds account state and consent. The page also recommends a merge preview before you merge, and describes the resulting customer ID as authoritative.

    Choosing the email on purpose

    Choose the kept email on purpose in every merge, because it decides which profile survives:

    • Pick the address the person uses. Usually that is the one with recent orders or opens.
    • Fix a typo first. If the typo address stays, it can be the one you keep. See email typos in Shopify.
    • Check consent. If either profile is subscribed to email or SMS marketing, the merged profile is subscribed.

    The rule only helps when the two profiles are one person. If you are unsure, leave the pair unmerged, because you can’t reverse the process.

    The safe merge checklist puts these in order. For the whole procedure, read how to merge customers in Shopify.

    Which customer profile does Shopify keep in a merge?

    In Shopify’s admin, the email you keep decides it: a lone email keeps its own profile, two emails keep the profile tied to the one you choose, and with none the profile you selected remains. MergeGuard for Shopify recommends a profile to keep by your merge rule, and in each group’s review you choose the details the merged customer keeps.

    Question about this chapter? Email support@mergeguard.store.

    Keep reading (9 links: 1 Guide, 1 Explainer, 2 Help, 1 Term, 2 Features, 2 Sources)

    0 of 10 readSaved in this browser only.