Skip to content

feat(tech-detect): Klaviyo from the theme app block and inline loader, Shopify Payments from the shop config #1447 - #1451

Closed
nc9 wants to merge 2 commits into
mainfrom
feat/tech-klaviyo-shopify-payments-1447
Closed

nc9 wants to merge 2 commits into
mainfrom
feat/tech-klaviyo-shopify-payments-1447

Conversation

@nc9

@nc9 nc9 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1447 (acceptance criteria 1, 2, 4, 5; criterion 3 is conditional and not taken, see below)

Change

  • Klaviyo (curated other.ts; the script URL goes through the scriptSrc helper, so it is anchored: a listed script URL or the src of a real script tag, in the static., static-tracking. and per-company /onsite/js/<id>/klaviyo.js forms; a link or code sample is not a script, removed from generated.ts so a regenerate cannot drop the new signals): the existing static.klaviyo.com script and _learnq.push( signals, plus the Shopify theme app block marker shopify://apps/klaviyo-email-marketing-sms/ (found in an HTML comment or an attribute) and the inline onsite loader (window._klOnsite=window._klOnsite||, window.klaviyo=window.klaviyo|| / new Proxy(). The static.klaviyo.com script is injected after load, so the marker and loader are what a local --http audit sees.
  • Shopify Payments: new shopify-payments signature (payment category) from "shopifyPaymentsEnabled":true in the inline shop config. Named "Shopify Payments (enabled in shop config)", confidence medium: it is a merchant setting, not a loaded script.
  • Payment icons (pi-* SVG titles) are not reported: criterion 3 is conditional ("if reported") and an advertised-method marker needs a report field of its own. The docs say so.
  • Signals are written from the issue's own description of the markup; nothing is taken from the GPL Wappalyzer catalog.

Tests

klaviyo-shopify-payments-1447.test.ts (10), with and without script bodies attached: the app block marker in a comment and in an attribute, the inline loader and proxy forms, the existing script and queue; negatives: prose, a link, a similarly named app block, window.klaviyoLike / _klOnsiteX, shopifyPaymentsEnabled:false, a similar key, prose naming the key. All tech-detect suites and the CLI tech-detect parity, limits and fit tests pass.

Real-bundle check: 23 library bundles (22 from the ops harness plus the review's) (react, vue, sentry, clerk, stripe, firebase, ...) inlined and external, with and without bodies, against main with the ops harness: no differences, none added.

Icons: the new slug shopify-payments has no tech icon yet; the icon is not part of this PR and will be queued privately. klaviyo is an existing slug.

Docs: cloud/technologies.mdx (Shopify storefronts). Skill change: none.

nik

Review round: CodeQL missing-anchor fixed by the scriptSrc form, the real onsite embed snippet and the three script forms added as fixtures, rebased on v0.0.151, docs note that a developer blog quoting the marker or loader, or a JSON block carrying the marker, is detected too. generated.ts is not regenerated (the klaviyo entry is deleted by hand, like firebase-hosting in #1450).

Script signature: what changed with scriptSrc

Moving the static.klaviyo.com script signature to the scriptSrc helper anchors it, so it is not semantics-unchanged. Lost, compared with the old unanchored pattern: an unquoted src=, a src after more than 300 characters of other attributes, a loader built in JS (b.src="//static.klaviyo.com/..."), <link rel=preload> and data-src lazy loaders, and a proxied URL in the script list. New false positive: a commented-out <script src=...klaviyo.js> (the html detector reads comments). The inline loader and app block signals cover the common Shopify case; restoring script recall is filed separately.

nc9 added 2 commits November 1, 2026 06:53
…, Shopify Payments from the shop config flag #1447

Signed-off-by: Nik Cubrilovic <[email protected]>
…d), static-tracking and per-company forms, real loader fixture, docs caveat #1447

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9

nc9 commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

Landed in v0.0.152 as 08de3e4d 8712456c via #1461. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.152. Closing this original.

nik

@nc9 nc9 closed this Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tech-detect: Shopify storefront misses Klaviyo and Shopify Payments that the static HTML carries

2 participants