Match Rules on Shopify#

A match rule is a named set of field comparisons that describe one kind of duplicate. Dedupify scores pairs of customers against each rule that is on, and a pair that clears the rule’s review threshold goes to the review queue. Thresholds are covered in Review Thresholds and Auto-Merge.

Dedupify’s screens on Shopify call properties fields. These pages say property.

What a rule holds#

  • Name: the label Dedupify lists the rule under.
  • Object: the kind of record it compares. A rule never compares different objects.
  • On or off: a rule that is off runs no scans and finds no matches.
  • Field rules: the properties it compares, and how it compares each.

Dedupify on Shopify works on customers only, so every rule compares them.

Field rules#

A field rule pairs a property with a recipe: the comparison Dedupify uses for that kind of value, such as an email address or a company name. Dedupify picks the recipe from the property’s type. Match Recipes lists every recipe and its options.

Each field answers three questions, and a sentence under the field’s name sums up the answers as you change them: what counts as the same, what happens when the values differ, and what happens when one record is blank. Blank values and conflicts covers the last two.

New rule lists the properties Dedupify matches on by default for the object, each with its recipe. Tick the ones you want, and change a field’s options in the field’s card below the list. A rule’s card offers Edit fields (Add field while it has none), Edit thresholds, Turn on and Turn off. In the field editor, Add field lists the other properties of the object, up to 5 fields in all. Only an admin can create or change rules.

A rule that is off saves its fields with Save fields. Discard drops the edits, and Close leaves the editor and drops any that are unsaved. Saving fields on a rule that is on re-checks its pairs: see Change a rule that is on.

To create a rule, turn it on and follow its first scan, step through it:

Create a match ruleIn Dedupify, select Match rules. Select New rule. Under Object, choose Customers. Give the rule a name you will recognize. Under Fields to match on, tick the fields that point to the same customer: Last name… …and Phone. Each ticked field opens a card below the list. A field's card asks what counts as the same, what happens when values differ, and when one is blank. Select Create rule. It is saved turned off, set to review only. Select Turn on. The rule is On. Its first scan is queued, and a scan can take up to 2 minutes to start. Select Scan status to follow the scan. It can take a moment for the scan to show up here. Starting: the scan is queued, waiting for a worker. This page refreshes on its own. Now it is Scanning. The count shows how many records Dedupify has indexed so far. The count rises as Dedupify reads your customers. Nothing to do here: the scan keeps going on its own, and you can leave the page. Two fifths of the records are indexed. Half of the records are indexed. Three fifths are indexed. Seven tenths are indexed. Four fifths are indexed. Nine tenths: nearly all of the records are indexed. Complete: the scan found 9 pairs in 1m 40s, and they wait in the review queue.Shopify admin › Apps › DedupifyMatch rulesScan statusPlan and billingReview queueMatch rulesMatch rulesPausing stops new automatic merges for this account. Matches go to the review queue, and your rules stayas they are. A merge already being sent may still finish.Pause auto-mergeAutomatic merges0 automatic merges in the last 7 daysNo automatic merges yet. Pairs a rule merges automatically are listed here.Rules decide which records Dedupify treats as possible duplicates.New ruleRules decide which records Dedupify treats as possible duplicates.New match ruleStart from the fields Dedupify matches on by default for the object. The rule is created turned off and reviewonly.ObjectCustomersRule nameFields to match onPick up to5.EmailMatch by EmailFirst nameMatch by First NameLast nameMatch by Last NamePhoneMatch by Phone NumberField to addChoose a fieldAdd fieldCreate ruleCancelRefresh the listShopify setup guideBy using Dedupify you agree to theTerms of Serviceand acknowledge thePrivacy Policy.Last nameRemovelastNameMatch by Last Name. Near matches count. A different last name does not rule the pair out. A blanklast name is skipped.What counts as the sameFuzzy matchOn: near-matches count, scored by similarity. Off: only exact matches count.When the values differA differentlast namerules the pair outVeto on conflict requires Exact match style.When one record is blankSkip this fieldA blank value doesn't block the pair; if the records merge, the known value is kept.Rule out the matchPhoneRemovephoneMatch by Phone Number. Different forms of the same number count. A different phone does not rulethe pair out. A blank phone is skipped.What counts as the sameMulti-step matchOn: matches international, national, and partial forms of the same number. Off: only the exact valuecounts.When the values differA differentphonerules the pair outVeto on conflict requires Exact match style.When one record is blankSkip this fieldA blank value doesn't block the pair; if the records merge, the known value is kept.Rule out the matchField to addChoose a fieldAdd fieldCreate ruleCancelRefresh the listShopify setup guideBy using Dedupify you agree to theTerms of Serviceand acknowledge thePrivacy Policy.CustomersName and phoneReview at 65%, review onlylastName(Match by Last Name)phone(Match by Phone Number)Edit fieldsEdit thresholdsRenameRefresh the listShopify setup guideBy using Dedupify you agree to theTerms of Serviceand acknowledge thePrivacy Policy.OnScan statusScan statusScan status forcustomersName and phoneScanningReview queueReview queueDuplicate pairs waiting for your review. Open a pair to compare the records and merge them, or select pairs to merge several at once.Customers(0)Turn on a match rule to find duplicatesDedupify only checks objects that have a match rule activated.Go to match rulesScan status forcustomersNo match rules for this object yet, so nothing is being scanned.No match rules yetCreate a rule, then turn it on to start finding duplicates.Refresh the listShopify setup guideBy using Dedupify you agree to theTerms of Serviceand acknowledge thePrivacy Policy.Field to addChoose a fieldAdd fieldCreate ruleCancelRefresh the listShopify setup guideBy using Dedupify you agree to theTerms of Serviceand acknowledge thePrivacy Policy.Name and phoneOffCreated. Turn it on when it's ready.Turn onTurned on.Turn offStartingStarting a scan can take up to 2 minutes.620 of 6,200 records indexed1:25 since turning on1,240 of 6,200 records indexed1:35 since turning on1,860 of 6,200 records indexed1:45 since turning on2,480 of 6,200 records indexed1:55 since turning on3,100 of 6,200 records indexed2:05 since turning on3,720 of 6,200 records indexed2:15 since turning on4,340 of 6,200 records indexed2:25 since turning on4,960 of 6,200 records indexed2:35 since turning on5,580 of 6,200 records indexed2:45 since turning onCompleteFound 9 pairs in 1m 40s2:55 since turning onIn Dedupify, select Match rules.Select New rule.Under Object, choose Customers.Give the rule a name you will recognize.Under Fields to match on, tick the fields that point to the same customer: Last name……and Phone. Each ticked field opens a card below the list.A field's card asks what counts as the same, what happens when values differ, and when one is blank.Select Create rule. It is saved turned off, set to review only.Select Turn on.The rule is On. Its first scan is queued, and a scan can take up to 2 minutes to start.Select Scan status to follow the scan. It can take a moment for the scan to show up here.Starting: the scan is queued, waiting for a worker. This page refreshes on its own.Now it is Scanning. The count shows how many records Dedupify has indexed so far.The count rises as Dedupify reads your customers.Nothing to do here: the scan keeps going on its own, and you can leave the page.Two fifths of the records are indexed.Half of the records are indexed.Three fifths are indexed.Seven tenths are indexed.Four fifths are indexed.Nine tenths: nearly all of the records are indexed.Complete: the scan found 9 pairs in 1m 40s, and they wait in the review queue.

  1. Open Match rulesGo to Apps, Dedupify and select Match rules.
  2. Start a new ruleSelect New rule, then choose Customers as the object the rule checks.
  3. Name it and pick a fieldName the rule, then tick up to five of the fields Dedupify suggests for the object. Records that match on them become possible duplicates.
  4. Tick more fields and check each cardA ticked field opens a card below the list, with a sentence that sums up how it is compared. What counts as the same lists the field's options, When the values differ offers a veto, and When one record is blank is Skip this field or Rule out the match. Remove drops the field, and Add field adds another field that has a recipe.
  5. Save the ruleCreate rule saves it turned off, set to review only.
  6. Turn it onTurning the rule on queues its first scan of your customers. The rule shows On straight away, but it can take a moment for the scan to show up on Scan status.
  7. Watch the scanScan status shows Starting for up to 2 minutes while the scan waits for a worker, then Scanning, with a count of the records indexed so far. Scanning takes a few minutes to tens of minutes, depending on how many records you have, and it runs in the background, so you can leave the page; here it is sped up to follow it in steps of ten seconds. When it shows Complete, with the number of pairs it found, they are in the review queue.

Dedupify reads a customer’s email, phone, first and last name, note, locale, tags, created and updated dates, and default address. Shopify metafields aren’t read, so a store’s custom data can’t be matched on.

Why a name alone is risky#

See why a name alone fails:

Why name-only rules are riskyTwo different people can share a name and a company. A rule on name and company flags the pair, and cannot tell them apart. Add a phone or an email and a difference between the records lowers the pair's score.Record 1NameAlex MorganCompanySummit Outdoor CoEmailalex.morgan@summitoutdoor.comPhone+1 303 555 0136Record 2NameAlex MorganCompanySummit Outdoor CoEmailamorgan.boulder@outlook.comPhone+1 303 555 0175Two people, one nameA rule on name and company flags themRule: First name, Last name, CompanyPossible duplicateEvery property it compares matches, so the pair reaches your review queue.A rule with no strong identifier can never auto-merge. Every shared name still becomes a pair to review.Add a phone and the difference showsRule: First name, Last name, Company, PhonePhones differThe pair now disagrees on a property that identifies a person, so it scores lower.Two different people can share a name and a company.A rule on name and company flags the pair, and cannot tell them apart.Add a phone or an email and a difference between the records lowers the pair's score.

  1. See the lookalikesTwo people can have the same name at the same company.
  2. Spot the riskA rule on names and company alone flags both as duplicates, and it can only send pairs to review.
  3. Add an identifierA differing email or phone number lowers the pair's score, so it can drop below your review threshold. Veto on conflict rules the pair out.

A rule on names alone flags every pair that shares them and can never auto-merge. Add an email or a phone number.

Blank values and conflicts#

  • When one record is blank: Skip this field (default) leaves it out of the score, and the pair can still match. Rule out the match means a record with no value there can never match under this rule, including for review.
  • When the values differ: A different email rules the pair out, with the field’s own name in place of “email”. Off by default, it rules a pair out when both records have a value and the values differ, even if every other field matches. It ignores blanks and applies only when the property is compared exactly: while the match style is fuzzy, the card says Veto on conflict requires Exact match style. A rule on an external ID always has it on.

See a blank phone value:

Blank valuesOne record has no value in a property the rule compares. Skip this property leaves it out of the score, and the pair can still match. Rule out the match means a record with no value there can never match.Record 1NameRobert ChenCompanyHarbor LogisticsPhone+1 415 555 0142Record 2NameBob ChenCompanyHarbor LogisticsPhoneNo valueOne record has no phoneBlank values: Skip this propertyCan still matchPhone is left out of the score. The pair is scored on the properties both records have.The default. A pair still needs enough values on both records to compare.Blank values: Rule out the matchRuled outRecord 2 has no phone, so this pair can never match under this rule, not even for review.Use it when a value must be present to trust a match.One record has no value in a property the rule compares.Skip this property leaves it out of the score, and the pair can still match.Rule out the match means a record with no value there can never match.

  1. Find the gapRecords are often missing a phone number or an email.
  2. Skip the propertyThe default. The blank property is left out and the pair is scored on the values both records have.
  3. Or rule the pair outWhere a rule offers it, a record with no value in the property never matches under that rule, even for review.

See a veto on conflict:

Required matches and veto on conflictMost of a pair can match while one value says they are different people. Veto on conflict rules the pair out when both records have a value and the values differ. Rule out the match requires a value, and a blank is never a conflict.Record 1NameAlex MorganCompanySummit Outdoor CoPhone+1 303 555 0136Record 2NameAlex MorganCompanySummit Outdoor CoPhone+1 303 555 0175Name and company match, phones do notNo vetoThe phones lower the score, but the matching name and company can still carry the pair into review.Veto on conflict on PhoneRuled outBoth records have a phone, the phones differ, and Phone is compared exactly. The pair never reachesyour queue.A rule on an external ID always has it on. Turn it on elsewhere only for a property that should never differ within one person.Two settings, two triggersVeto on conflictFires whenbothrecords have a value and the valuesdiffer.A blank is never a difference. It works only when theproperty is compared exactly.Blank values: Rule out the matchFires wheneitherrecord has no value. For exampleBobChen, who has no phone.Records without a value never match under this rule,including for review.Most of a pair can match while one value says they are different people.Veto on conflict rules the pair out when both records have a value and the values differ.Rule out the match requires a value, and a blank is never a conflict.

  1. Spot the conflictTwo records can agree on a name and a company and still differ on a phone number.
  2. Veto on conflictA property compared exactly can rule a pair out when both records have a value and the values differ.
  3. Require a valueBlank values set to Rule out the match keeps a record with no value in the property from matching at all.

You change both on the field’s card. The guides show the same choices made in HubSpot’s rule editor.

Limits#

ConstraintLimit
Field rules in one rule5
The same property twice in one enabled ruleNot allowed
Rules turned on at onceSet by your plan; see Plans and billing

A rule that is off doesn’t count toward the plan limit, so you can keep drafts.

Several rules on one object#

Each rule is scored on its own against its own thresholds, and a pair is surfaced when it clears any rule that is on. Use one rule per kind of duplicate: one on email, another on phone plus company name. Two rules may use the same properties.

Turn a rule on#

A new rule is off, so nothing changes until you turn it on. It turns on only for an object that is activated for Dedupify, on a started plan or free trial. Plans and billing covers what activation costs.

  1. On the rule, select Turn on.
  2. If the rule says it isn’t activated for Dedupify yet, select Activate … to turn this on.
  3. Check the record count and the charge Dedupify shows, then select Activate … and turn this on. The object activates, the rule turns on and a scan starts.

Without a started plan, Dedupify asks you to start one first.

A store with more than 25,000 customers can’t be activated yet. Shopify stops cursor pagination of a customer list at that size, and Dedupify refuses rather than scan only part of it. Write to support@artifactapps.com if you need it.

Turning a rule off stops its scans and dismisses its pending matches from the review queue. Dedupify shows how many before you confirm.

Change a rule that is on#

A rule that is on stays on while you change its fields.

Select Edit fields, make the change, and select Save changes: a confirmation opens first, with Save changes and Keep editing.

The confirmation says:

  • Dedupify re-checks the rule’s pairs in the background.
  • The pairs waiting for review, with their number, stay until the re-check replaces them.
  • With auto-merge on, auto-merge for this rule waits until the re-check finishes.
  • A re-check that is already running or paused starts over from the beginning.
  • Merged records stay merged.

Pairs you already reviewed or dismissed stay as they are, and other rules keep auto-merging.

The re-check is a scan of the rule, so it counts against API limits like one: see How Scanning Works. Until it finishes, the pairs in your queue were found under the old fields, and auto-merge is not acting on them.

After the save, the card says Saved. Dedupify is re-checking this rule’s pairs., and with auto-merge on, Auto-merge for this rule waits until it finishes.

If the re-check fails, the rule shows the error and

Retry scan in Scan status. If an admin cancelled it, Start a new scan runs it again.

Auto-merge for the rule keeps waiting until a scan of it completes: see How auto-merge runs.

Thresholds are separate: Save thresholds on a rule that is on changes them at once and starts no re-check.

Try a change on your pending pairs#

While you edit a rule that is on, Try it on your pending pairs shows how a sample of its waiting pairs would score with your change, before you save. It covers changes to a field’s options and blank handling. When you add a field, remove one or change a field’s comparison, there is nothing to sample until you undo that. Dedupify reads the sampled records from Shopify as it does for a review, saves nothing, and shows the values only on the screen. A rule with no waiting pairs shows No pairs to sample yet.

If a change can’t be saved#

Dedupify refuses these before it writes anything, so a refusal changes nothing and your edits stay in the editor:

  • Your plan doesn’t allow re-checking pairs right now, so the change wasn’t saved. Check Plans and billing.
  • Scans aren’t available for your CRM yet, so changes to this rule’s fields can’t be saved until they are.
  • A rule with auto-merge on needs a field that identifies a record, such as an email. A change that removes the last one is refused.

    The message ends To save this change, turn auto-merge off in Edit thresholds first, then make the change again. Closing the field editor discards it.

If Shopify doesn’t answer clearly, Dedupify reloads the rule and says The change may not have been saved, so the rule was reloaded. Its fields show which happened.

Scan status#

Turning a rule on starts a scan of every record of its object. See How Scanning Works.

Scan status shows each rule’s scan progress and history, with Retry scan after a failure and Start a new scan after a cancellation.

A large store scans more slowly, because Dedupify paces its reads to the store’s request allowance.