CG
CartGuard SentinelLocal Sandbox

Kestrel Outdoor Gear · $4,200/day ad spend guarded

Incident Evidence & AI Root-Cause Diff

Step-by-step synthetic traces, console/network errors, theme change correlation, and Claude Haiku 5.5 self-healing selector diffs.

CRITICAL42m ago · $175/hr ad spend risk

Mobile Add-to-Cart Blocked by Legacy Upsell Script TypeError

Correlated 6 min after theme edit: Dawn 15.2 — Holiday Promo Banner Edit (+1 legacy ScriptTag upsell-booster-legacy.cdn.example, +164 KB JS)

Plain-English Root-Cause Diagnosis
Deterministic Evidence AnalysisFigures Verified

On MOBILE (Mobile PDP -> Cart Drawer -> Checkout (Flagship Parka)), checkout failed at "Submit Add-to-Cart & Verify /cart/add.js Response" because https://upsell-booster-legacy.cdn.example/cart-intercept.js:418:27 threw "TypeError: Cannot read properties of undefined (reading 'dataset') at interceptCartSubmit (cart-intercept.js:418)" shortly after "Theme edit 'Dawn 15.2 — Holiday Promo Banner Edit' + legacy ScriptTag upsell-booster-legacy.cdn.example (+164 KB) 6 minutes prior". Shoppers clicking Add to Cart had their submission silently aborted.

Culprit: https://upsell-booster-legacy.cdn.example/cart-intercept.js:418:27 — TypeError: Cannot read properties of undefined (reading 'dataset') at interceptCartSubmit (cart-intercept.js:418)
  1. Disable or roll back the third-party script at https://upsell-booster-legacy.cdn.example/cart-intercept.js in Shopify Admin -> Online Store -> Themes -> App Embeds (or legacy ScriptTags).
  2. Inspect the recent theme change (Theme edit 'Dawn 15.2 — Holiday Promo Banner Edit' + legacy ScriptTag upsell-booster-legacy.cdn.example (+164 KB) 6 minutes prior) for removed data attributes or wrapper hooks expected by third-party cart interceptors.
  3. Re-run CartGuard Sentinel's Preview Theme Gate on your unpublished theme draft before publishing to live traffic.
Self-Healing Selector DiffConfidence: HIGH
- form[action="/cart/add"][data-upsell-hook]
+ form[action*="/cart/add"] button[name="add"]

Holiday promo banner edit removed data-upsell-hook on mobile sticky ATC wrapper, causing legacy upsell ScriptTag to throw TypeError on submit.

Synthetic Step Trace

Step 1 · PASSLoad Mobile Product Page (390×844 iPhone 16)

HTTP 200 OK on /products/alpine-ridge-shell-parka — TTFB 186ms.

428ms
Step 2 · PASSSelect Size M Variant & Locate /cart/add Form

In-stock variant 44918204112981 selected cleanly.

174ms
Step 3 · FAILSubmit Add-to-Cart & Verify /cart/add.js Response

Uncaught TypeError in upsell-booster-legacy.cdn.example/cart-intercept.js aborted click handler before /cart/add.js fired. Cart drawer remained empty (0 items).

692ms

Captured Console Errors (1)

https://upsell-booster-legacy.cdn.example/cart-intercept.js:418:27
TypeError: Cannot read properties of undefined (reading 'dataset') at interceptCartSubmit (cart-intercept.js:418)

Failed Network Requests (1)

POST https://kestrel-outdoor-gear.myshopify.com/cart/add.js (HTTP 0)
Form submission prevented by uncaught exception in third-party capture listener.