Skip to content

docs(web-sdk): note 0.1.12 and last-touch UTM persistence - #182

Open
tashviks wants to merge 1 commit into
mainfrom
tashvik/web-sdk-version-note
Open

docs(web-sdk): note 0.1.12 and last-touch UTM persistence#182
tashviks wants to merge 1 commit into
mainfrom
tashvik/web-sdk-version-note

Conversation

@tashviks

Copy link
Copy Markdown
Contributor

Adds a version note to the Web SDK installation section.

⚠️ Blocked on web-sdk#4

Do not merge before that ships. main and npm are both on 0.1.11 today; 0.1.12 exists only on #4's branch. Merging this early would document a version nobody can install.

Why

0.1.12 mirrors last-touch UTMs into a 24-hour localStorage record so they survive a payment-gateway or 3-D Secure redirect. Previously they lived only in sessionStorage, which a gateway returning the visitor in a fresh tab wipes — the purchase then arrives with the right traffic source (click IDs persist 90 days) but no campaign.

Measured on one production project: 70 of 74 Meta-attributed purchases (95%) had a blank campaign for exactly this reason.

No integration changes are required, so the note covers what changed and the ~24h CDN cache rollover rather than any migration steps.

Two doc bugs found nearby — not fixed here

Both are in the same Installation section and both break copy-paste. Deliberately left out to keep this scoped; happy to fix in a follow-up:

  1. The npm package name is wrong. Docs say npm install @linkrunner/web-sdk; the published package is @linkrunner/web. The documented command fails.
  2. The CDN URL looks wrong. Docs point at https://sdk.linkrunner.io/latest/linkrunner-sdk.min.js, but deploy-cdn.yml publishes to web/v1/lr.js and web/v1/lr.min.js.

0.1.12 mirrors last-touch UTMs into a 24h localStorage record so a purchase
firing on a post-payment return page keeps its campaign. Measured on one
production project, 95% of Meta-attributed purchases (70 of 74) had no
campaign because the gateway returned the visitor in a fresh tab and
sessionStorage was gone.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

1 participant