Skip to content

feat: Web SDK update for version 28.2.0-rc.7 - #186

Merged
lohanidamodar merged 1 commit into
mainfrom
dev
Oct 8, 2026
Merged

lohanidamodar merged 1 commit into
mainfrom
dev

Conversation

@lohanidamodar

Copy link
Copy Markdown
Member

Generated with sdk-generator 5.5.4.

What's Changed

  • Added: Analytics service and the Tracking auto-tracking helper, which were missing from 28.2.0-rc.5 and rc.6
  • Changed: Tracking takes new Analytics(client) and a property id instead of an emitter callback; the adapter to createEvent now lives inside the SDK
  • Changed: enableAllAutoTracking() is now start()
  • Removed: AnalyticsEventEmitter; the option types are now TrackingEventOptions and TrackingOptions
const tracking = new Tracking(new Analytics(client), '<PROPERTY_ID>')
tracking.start()

Why analytics went missing

The analytics surface has dropped out of four consecutive prereleases — 28.2.0-rc.2, rc.3, rc.5, rc.6 — because it only ever existed on short-lived RC branches that were never merged. Anything cut from main lost it.

This release goes through dev → main so the surface finally lands where everyone generates from, which is what stops it recurring.

Verification

npm run build produces cjs, esm and iife bundles. No deletions.

Breaking only for the 28.2.0-rc.* prereleases that ship the old AnalyticsTracking; latest (28.1.0) is unaffected.

@hansi-codes

hansi-codes Bot commented Oct 8, 2026

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

No actionable defects found in the changed behavior.

Adds the Analytics service and exported Tracking helper for browser event collection, and updates OAuth2 session/token APIs to accept an optional state value. The release metadata and examples now target 28.2.0-rc.7 and document the added APIs.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 12
File Change
CHANGELOG.md Documents the rc.7 analytics and tracking API changes.
README.md Updates the CDN example to rc.7.
docs/examples/account/create-o-auth-2-session.md Shows the optional OAuth2 state parameter.
docs/examples/account/create-o-auth-2-token.md Shows the optional OAuth2 state parameter.
docs/examples/analytics/create-event.md Adds an Analytics.createEvent usage example.
package.json Updates the package version to 28.2.0-rc.7.
package-lock.json Updates the lockfile package version to 28.2.0-rc.7.
src/client.ts Updates the SDK version header.
src/index.ts Exports Analytics, Tracking, and tracking option types.
src/services/account.ts Adds state support to OAuth2 session and token methods.
src/services/analytics-tracking.ts Adds pageview, outbound link, download, scroll-depth, and engagement tracking helpers.
src/services/analytics.ts Adds the Analytics event creation endpoint wrapper.

Reviewed 27d2cf7 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@hansi-codes hansi-codes Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@lohanidamodar
lohanidamodar merged commit 3157646 into main Oct 8, 2026
2 checks passed
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