Desktop, Server: Record which app screen a Joplin Cloud sign-up started from

Adds an optional "source" label to the Joplin Cloud sign-up link (e.g.
"desktop-sync-wizard") so we can see which screens lead people to subscribe.
The label is a fixed string naming the button that was clicked - it carries
no personal or device information. It travels with the checkout as Stripe
metadata and is saved on the subscription record.
This commit is contained in:
Laurent Cozic committed 2026-07-18 16:05:00 +01:00
1 parent fa6d4a259b
commit b5ed2c944e
9 files changed
+60 -8

No files matched your search

@@ -216,6 +216,11 @@
applyPeriod(period);
});
// Keep the ?source= label so it can be sent to Stripe at checkout.
// Only overwrite when the param is present, to preserve an earlier one.
const sourceParam = urlQuery.get('source');
if (sourceParam) localStorage.setItem('source', sourceParam);
setupBetaHandling(urlQuery);
if (urlQuery.get('period') === 'monthly') {
// Nothing - this is the default