feat: label the product page links with a fixed UTM per button (#525) #528

Merged
maximus merged 4 commits from issue-525-utm-product-links into main 2026-11-04 01:16:57 +00:00

4 commits

Author SHA1 Message Date
le king fu
81937898aa docs: the UTM label in REVIEW.md, CLAUDE.md, architecture and changelogs (#525)
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 3m49s
REVIEW.md, section "Vie privée": a bullet right after the first one says
which fixed UTM label the product page links carry, never a value taken from
the user or the install, and that it is not telemetry (decision of Max,
2026-11-02). The "Niveaux" section is untouched.

CLAUDE.md, "Privacy-first": the no-telemetry bullet names the label.
docs/architecture.md: the purchase link is a contract with the site by its
path, and its query carries the label set by the button.
CHANGELOG.md and CHANGELOG.fr.md: one entry under Changed / Modifié of the
unreleased section.

Resolves #525

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 21:57:46 -05:00
le king fu
97e5bd73fc docs(i18n): the guide names the product page label, no more "100 % local" (#525)
docs.settings.tips[6], in French and English, ends "Aucune télémétrie" /
"No telemetry" with a period, then says that product page links tell the
site they come from the app and from which button, with nothing that
identifies the user; the same French sentence goes to the same tip of
docs/guide-utilisateur.md.

The texts of the app no longer claim a "100 % local" operation: the feedback
consent (feedback.consent.body) and docs.settings.features[8], in both
languages, and the feedback line of the user guide take the exact texts of
the issue. Only the text changes: FeedbackConsentDialog.tsx, openFeedback and
the feedbackConsentAccepted key are untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 21:57:40 -05:00
le king fu
2362117cb5 test: pin the UTM label of each product page button (#525)
purchaseUrl.test.ts: per language, new URL(...) keeps exactly the origin and
the path of the contract; the query holds the four keys and no other, in
their order; utm_content is the label for each of the four; the exact address
is pinned; the language fallbacks stay. A free string, or no label, does not
compile (@ts-expect-error, checked by tsc in npm run build).

UpsellCtas.render.test.tsx: both buttons open the URL with its query
(update-locked for PurchaseButton, update-locked-download for
DownloadLatestButton), PurchaseButton opens the label its caller gives, and
UpsellGate passes locked-module. PurchaseButton takes only its two labels and
DownloadLatestButton none (tsc).

New wiring tests under the shared hook harness: ErrorPage opens the buttons by
a click on the update check (invoke mocked, check_entitlement false), then
renders again; UpdateCard in the notEntitled state; LicenseCard's body, read
from the element the card returns, opens license-card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 21:57:24 -05:00
le king fu
2a2d8f1e72 feat: label the product page links with a fixed UTM per button (#525)
purchaseUrl(language, link) now appends utm_source=app, utm_medium=desktop,
utm_campaign=simpl-resultat and utm_content=<link>, built by URLSearchParams
in that order. `link` is the closed type ProductPageLink: locked-module,
license-card, update-locked, update-locked-download. The path and the choice
of the language do not change: the path stays the contract with the site.

PurchaseButton takes a required `link` ("locked-module" | "update-locked"):
UpsellGate passes locked-module, UpdateCard and ErrorPage update-locked.
DownloadLatestButton takes no label and always opens update-locked-download.
The License card opens license-card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 21:57:15 -05:00