docs: position register as the analytics/event-tracking primitive#228
Draft
claude[bot] wants to merge 2 commits into
Draft
docs: position register as the analytics/event-tracking primitive#228claude[bot] wants to merge 2 commits into
claude[bot] wants to merge 2 commits into
Conversation
Adds a section to the Showing Paywalls overview explaining the new fire-and-forget track() method: a thin alias of register/registerPlacement with no paywall handler and no feature closure, for sending Superwall every analytics event uncapped and free and querying it back via the Query API. Clarifies when to use track (pure analytics) vs register (gate a feature or present a paywall). Augments existing register/paywall content; nothing removed.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
superwall-docs | c613dcb | Jun 28 2026, 07:39 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Jake Mor · Slack thread
Before / After
Before: This draft introduced a brand-new
trackmethod as an analytics-only alias ofregister/registerPlacement, plus atrackvs.registersubsection in the Showing Paywalls overview (content/shared/showing-paywalls/feature-gating.mdx).After: That
trackmethod has been dropped. The docs now position the existingregistermethod as Superwall's analytics primitive. No new SDK method is introduced — the page simply explains that everyregistercall you already make is also an analytics event.The new framing:
registercall is an analytics event. Superwall records everyregister, uncapped and free, so the SDK you already have doubles as a full analytics destination with no separate library to install.register("event_name")(optionally with params) and not passing a feature block simply records the event — fire-and-forget. The same call gates a feature or presents a paywall when you pass afeature:closure, so anything you log today can become a paywall moment later without an app update.trackvs.registersubsection is removed (there's onlyregister); it's replaced by a short note that the sameregistercall powers both paywalls and analytics depending on whether you pass a handler/feature closure.How
content/shared/showing-paywalls/feature-gating.mdxto "Everyregistercall is an analytics event", using the page's existing multi-language tabs (:::ios/:::android/:::flutter/:::expo+<CodeGroup>) withSuperwall.shared.register(placement:params:)and the per-platform equivalents.track/trackPlacementmethod.Validation
bun test→ 65 pass, 0 failbun run build→ full prerender succeeded (EXIT 0)bun run check:links:source→ 0 errors (Query API link resolves)🤖 Generated with Claude Code
https://claude.ai/code/session_01UtYgc8YdMSybmCmTPNRZQS