Shopify Duplicate Product & Cannibalization Audit
Pricing
from $20.00 / 1,000 audit completeds
Shopify Duplicate Product & Cannibalization Audit
One store URL in: severity-ranked clusters of near-duplicate Shopify listings with merge, redirect or differentiate advice, plus change tracking against your last run.
Pricing
from $20.00 / 1,000 audit completeds
Rating
0.0
(0)
Developer
Practical AI Lab
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
6 days ago
Last modified
Categories
Features
Share
Large Shopify catalogs often hold near-duplicate listings: the same item created twice, copy-style handles (-1, -copy), or bundles and variants split across several products. Those listings compete with each other for search rank, reviews and ad spend, and staff usually notice only a few by eye.
This Actor takes one store URL, reads the store's public product feed, groups look-alike listings into clusters, scores each cluster for cannibalization risk, and tells you what to do with each one: merge, redirect or differentiate. It also stores a baseline so that later runs show which clusters grew, merged, were split or were resolved.
Status: this is a private build. Nothing here has been published, and no pricing plan is configured.
Quick start (one URL, nothing else)
- Paste your store URL, for example
https://your-store.com. That is the only required input. No CSV, no JSON upload, no second snapshot. - Run the Actor. The first run ends with
runStatus: "BASELINE_CREATED". You get the full first audit (clusters, recommendations, CSV) and the baseline is stored for that store domain. - Run it again later with the same URL. The dataset then contains every changed cluster, every resolved cluster, and a small sample of unchanged clusters (default 5) so you can see what stayed the same.
Copyable input:
{"storeUrl": "https://your-store.com","maxPages": 3,"similarityThreshold": 70,"maxClusters": 100,"unchangedSampleSize": 5,"resetBaseline": false}
The prefilled value https://your-store.example is a placeholder. Replace it with a real store domain; the placeholder cannot be resolved.
Scheduling later runs
The Actor does not schedule itself and sends no alerts. To compare over time:
- Save the input above as an Apify Task.
- In Apify Console open Schedules, create a schedule (for example weekly), and attach that Task.
- Each scheduled run compares against the previous run's snapshot for the same store domain. Open the run's dataset or the
CLUSTER_MEMBERS.csvfile to read the changes.
Baselines are kept in a named key-value store (pal-catalog-cluster-audit-state) in your Apify account, one snapshot per store domain, capped at 25 domains (the least recently updated is evicted) and 300 clusters x 60 members per snapshot. Set resetBaseline to true for one run to start over.
What you get
All outputs are joined by clusterId and ranked by risk.
| Output | Where | What it answers |
|---|---|---|
Run summary record (recordType: "run_summary") | Dataset (first row), also RUN_SUMMARY in the key-value store | Run status, products analyzed, severity and action counts, vendor and product-type hotspots, sample-size confidence, warnings, limitations |
Cluster records (recordType: "cluster") | Dataset | Severity-ranked clusters with members, signals, a recommended action, a canonical listing, a redirect map and change status |
Resolved records (recordType: "resolved_cluster") | Dataset, repeat runs only | Previously flagged clusters that are gone, and whether listings were removed or simply no longer look alike |
CLUSTER_MEMBERS.csv | Key-value store | One row per member listing with rank, severity, action, role, redirect paths and canonical id, ready for a spreadsheet |
Four buyer outcomes
- Cleanup priority list. Clusters are ranked by a 0-100 risk score and banded
critical(80+),high(65+),medium(50+) andlow. Each carries one action:MERGE_LISTINGS,REDIRECT_DUPLICATESorDIFFERENTIATE, with a rationale and ordered steps. - Canonical and redirect plan. Every cluster names a canonical listing (it avoids copy-style handles, then prefers more variants, more images and the older listing). Non-canonical members of merge and redirect clusters get
redirectFromPathandredirectToPath. - Drift since your last run. Each cluster carries
changeStatus:NEW,GREW,SHRUNK,MERGED(two or more earlier clusters combined),SPLIT,MEMBERS_CHANGED,UNCHANGED, plusRESOLVEDrecords. Added and removed product ids and the risk delta are included. - Where to start.
hotspotsin the summary ranks vendors and product types by how many clustered listings they hold.
How clusters are formed
Two listings are linked when a weighted similarity of at least similarityThreshold (default 70) is reached and their titles overlap meaningfully:
| Signal | Weight |
|---|---|
| Normalized title tokens (colors, sizes, units and filler words removed) | 40 |
Handle base (trailing -1, -copy and similar stripped) | 15 |
| Image fingerprint: shared normalized image file name from public image URLs | 15 |
| Option structure (option names such as Color / Size) | 10 |
| Vendor | 10 |
| Price proximity (minimum variant price) | 10 |
Signals missing on either listing (no images, no vendor, no price) are left out and the remaining weights are rescaled. Links are merged into clusters with a cap of 60 listings per cluster.
Cluster risk score = 0.40 x cohesion + 0.20 x size + 0.15 x image overlap + 0.10 x price tightness + 0.15 x option-structure match. Components are included in each record as riskComponents.
Action rules:
REDIRECT_DUPLICATESif titles are identical and a member looks like a copy (handle suffix next to a sibling handle, or a "copy" or "duplicate" marker) with shared images or identical options; or if titles are identical or very close, images are shared and prices are within 15%.MERGE_LISTINGSif titles, option structures and price band (within 15%) all match.DIFFERENTIATEotherwise.
Safety and politeness
- Only the single HTTPS origin you provide is contacted. No logins, cookies, proxies or contact data collection.
- Only
/products.json?limit=250&page=Nand/robots.txtare requested.robots.txtis checked (with wildcard and longest-match rules, user-agent tokenPALCatalogAuditBot) before every storefront request. If robots.txt cannot be read (anything except HTTP 200, 404 or 410), the run stops. If it disallows the feed, the run stops withROBOTS_DENIEDand fetches nothing. - SSRF protection: HTTPS only, no credentials in URLs, no custom ports, no IP-literal or local hostnames, and every resolved address must be public. Connections are pinned to the validated IP while TLS is verified for the hostname. Redirects are followed manually (max 3) and every hop is revalidated and robots-checked.
- Bounded work: at most 10 feed pages (default 3), a request budget, 15 s request timeouts, a 150 s total fetch budget and capped response sizes. No retries.
- Image comparison uses URL file names only. No images are downloaded.
Pricing
The code defines one billable event, audit-completed, charged at most once per run and only after a full audit succeeded, results were written and the baseline was saved. Failed runs (invalid input, robots denial, unsafe host, fewer than 10 products, fetch errors) are never charged. No payable plan or price is configured in this project.
Limitations and sample-size caveats
- Only products in the public
/products.jsonfeed are seen. Stores that disable the feed, hide products from it, or sit behind a password page cannot be audited. - With fewer than 50 products the summary reports
confidence.level: "low": clusters and risk scores are leads to check by hand, not conclusions. At 50-299 products confidence ismedium; 300 or more ishigh, which still does not make the heuristics exact. - Similarity is heuristic. Titles that describe the same item with different words, or different items sharing generic wording, can be missed or wrongly linked. Legitimate bundles and variants can look like duplicates, so review before acting.
- The
-1/-2handle rule can flag products whose names legitimately end in a small number. - Risk scores rank overlap likelihood. They do not use traffic, sales, Search Console or ad data and do not measure lost revenue.
- Catalogs larger than
maxPagesx 250 products are analyzed only up to that limit (catalogPossiblyTruncatedis set). ChangingmaxPagesorsimilarityThresholdbetween runs can create false changes; the run adds a warning when it notices. - Cross-run tracking uses product ids. Deleted and re-created products can appear as
RESOLVEDplusNEW. - Very large look-alike groups hit internal comparison limits; the run reports this in
warnings. - The Actor never edits your store. Redirect and merge steps are suggestions.
Illustrative record shape (synthetic, not a real run)
{"recordType": "cluster","priorityRank": 1,"severity": "critical","riskScore": 88.0,"changeStatus": "BASELINE","memberCount": 2,"recommendedAction": "MERGE_LISTINGS","canonicalHandle": "example-cotton-tee","members": [{ "handle": "example-cotton-tee", "role": "canonical" },{"handle": "example-cotton-tee-1","role": "merge_variants_into_canonical","redirectFromPath": "/products/example-cotton-tee-1","redirectToPath": "/products/example-cotton-tee"}]}
Development
Tests are fully offline (mocked DNS, HTTP and storage) and use only the standard library:
python -m unittest discover -s tests -t .
Layout: src/validation.py (input), src/safety.py (SSRF, robots, fetcher), src/parsing.py and src/normalize.py (feed parsing and fingerprints), src/clustering.py, src/scoring.py, src/recommend.py, src/changes.py, src/state.py, src/report.py, src/service.py (run flow) and src/main.py (Apify SDK entry point).