Repository navigation
Closed
Closed
tech-detect: Shopify storefront misses Klaviyo and Shopify Payments that the static HTML carries#1447
Feature
Copy link
Labels
Description
Summary
On a logged-out Shopify storefront, local tech detection (v0.0.150, --http) misses technologies whose evidence is in the static HTML.
Repro
squirrel audit https://www.alpensattel.de --http --passive -m 1 --refresh --no-publish -f json -o out.json
jq '[.technologies.items[].name]' out.json
v0.0.150 reports: Shopify, Plausible, Microsoft Clarity, Cloudflare, reCAPTCHA, hCaptcha, Microsoft Advertising UET, Firebase Hosting, Vite, Cloudflare.
Missing, with static evidence in the homepage HTML
- Klaviyo: theme app block
shopify://apps/klaviyo-email-marketing-sms/blocks/klaviyo-onsite-embed/...and an inlinewindow.klaviyo/window._klOnsiteloader. - Shopify Payments / Shop Pay:
"shopifyPaymentsEnabled":truein the inline shop config. - Accepted payment methods (PayPal, Klarna, ...): Shopify payment icons
<svg ... aria-labelledby="pi-cd1-paypal"><title>PayPal</title>. These show what the shop advertises, not a loaded SDK, so a lower confidence (or a separate "advertised" marker) would fit.
GA4, Meta Pixel and GTM run on the same shop through Shopify web pixels (only a gtag_events config is inline), so we don't expect HTTP-only detection to find them.
Expected
Klaviyo and Shopify Payments detected from the markup above; payment icons optionally listed as advertised payment methods.
Context
We compare squirrel's technologies with our own Wappalyzer-based inventory (browser-based) on Shopify, Shopware and Storyblok sites. This is the largest Shopify gap.
Acceptance Criteria
- A Shopify storefront whose static HTML carries the Klaviyo theme app block (
shopify://apps/klaviyo-email-marketing-sms/...) or an inlinewindow.klaviyo/window._klOnsiteloader reports Klaviyo, in the local HTTP-only path -
"shopifyPaymentsEnabled":truein the inline shop config reports Shopify Payments (name it so it does not read as a loaded SDK) - Payment icons (
pi-*SVG titles) are, if reported, marked as advertised payment methods at lower confidence and are not counted as loaded technologies - Each new signature has a fixture test with a positive and a negative (a page that only mentions the vendor in prose or a link is not detected) and no new false positives on the real-bundle set
- Docs list the new signatures; the agent skill needs no change or a private issue is filed
Activity
deniskern commentedon Oct 31, 2026
Here is how our inventory finds these, in case it helps. Our engine renders the page in a browser, so JS globals are available to us. The first three signals below are also in the static HTML, so an HTTP-only pass can use them.
1. Shopify payment icons (static). Shopify themes render the accepted methods as inline SVGs whose
<title>id followspi-<method>, sometimes with a prefix likepi-cd1-paypal. The Wappalyzer-format catalog we use (enthec/webappanalyzer, GPL-3.0) keys on DOM selectors:[aria-labelledby='pi-paypal'],pi-klarna,pi-apple_pay,pi-shopify_pay. Because of prefixes likecd1-, a suffix match is safer (aria-labelledby$='-paypal'/^pi-.*paypal). Our engine also opens/cartand readsimg[alt]/svg titleagainst a short list (visa, mastercard, amex, paypal, klarna, apple pay, google pay, maestro, sofort, giropay, sepa, ideal …). We mark these as advertised, not confirmed, because an icon is not a loaded SDK.2. Shopify app inventory from theme app extensions (static). App-embed assets come from
cdn.shopify.com/extensions/<uuid>/<app-slug>-<version>/…. The regexcdn\.shopify\.com\/extensions\/[0-9a-f-]+\/([a-z0-9_.-]+?)(?:-\d+)?\/yields the app slug (on alpensattel.de:gdpr-cookie-consent). The theme'sshopify://apps/<app-handle>/blocks/...markers name the app even when its JS loads later. That is the Klaviyo case:shopify://apps/klaviyo-email-marketing-sms/blocks/klaviyo-onsite-embed/....3. Klaviyo (static plus runtime). Catalog signals:
scriptSrc: klaviyo\.com, globalsklaviyo/KlaviyoSubscribe. In HTTP-only mode the inline onsite loader (window._klOnsite,window.klaviyo=new Proxy(...)) plus the app block above are enough. Thestatic.klaviyo.comscript is injected later and isn't in the HTML.4. Shop Pay / Shopify Payments. Catalog:
scriptSrc: cdn\.shopify\.com/shopifycloud/shopify_pay/, globalsShopPay/ShopifyPay.apiHost, DOMul[data-shopify-buttoncontainer] liwith textShopPay. Statically, the inline shop config also carries"shopifyPaymentsEnabled":true.Note on licensing: the catalog signatures above are GPL-3.0, so please treat them as pointers, not as copy-ready data. Items 1–4 describe the signals, and the cart-icon list and app-slug regex are ours to share.
nc9 commentedon Oct 31, 2026
Thanks for the clear repro and the evidence, this is very useful. We added acceptance criteria to the issue and queued it; we will confirm the cause of the signal here before changing the detection.
nik
feat(tech-detect): Klaviyo from the theme app block and inline loader…
fix(tech-detect): klaviyo script signature through scriptSrc (anchore…
feat(tech-detect): Klaviyo from the theme app block and inline loader…
fix(tech-detect): klaviyo script signature through scriptSrc (anchore…
nc9 commentedon Oct 31, 2026
Verified against main after v0.0.152 (Klaviyo and Shopify Payments from static HTML). Met and ticked: criteria 1 to 3 (Klaviyo from the theme app block and the inline loader, Shopify Payments named as a shop-config flag at medium confidence, no payment icons reported). Open: criterion 4 (every new signature has a positive and a negative fixture, but there is no recorded run on a real-bundle set, and the docs state the known false positive when a page quotes the markers in a
<pre>or JSON block) and criterion 5 (docs are done; the agent skill statement is a process item). Leaving this open for those.nik
nc9 commentedon Oct 31, 2026
Evidence, recorded for the open criteria (a 622-site sample, v0.0.152 against v0.0.151): Klaviyo goes from 4 detections to 24 with none lost, and Shopify Payments from 0 to 24, all of them Shopify storefronts. The 23-bundle comparison and 19 real pages show 0 diffs (no new matches), and all 17 tech-detect test files pass. The documented false positive stays: a page that quotes the Klaviyo markers inside a
<pre>or JSON block is detected; the loader recall and its false-positive limits are followed in #1457. The docs are updated, and the agent skill needs no change for this.With that, every acceptance criterion is met. Shipped in v0.0.152 (
08de3e4d8712456c), verified against main. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.152nik