Why Are We Collecting Telemetry?
OnchainKit has quickly become a go-to full‑stack component library for integrating essential onchain functionality (like<Wallet />
, <Transaction />
, and <Swap />
) in minutes. Until now, our usage insights have been limited to public npm download counts and API endpoint usage. By collecting telemetry data, we can:
- Gauge Component Usage: Understand which components (and their variants) are most popular
- Data-Informed Improvements: Help our data science team generate insights that drive future enhancements and refactoring decisions
- Proactive Monitoring: Quickly detect issues with new releases or API changes through a dedicated error event stream (with alerts to oncall engineers)
What Data Will Be Collected?
Telemetry data is completely anonymous and designed to provide aggregated insights. Specifically, we collect:- Command Details: Which commands (or component events) are being invoked (e.g. walletConnection, swapSuccess)
- Version & App Info: The OnchainKit version, app name (from window.top.document.title), and origin (the app URL)
- Usage Metrics: Information such as the number of unique wallets, transactions, or contracts interacting with OnchainKit
- Error Events: Generic error events along with component context to help us triage any issues
How Does It Work?
Telemetry is integrated directly into each applicable component via our newsendAnalytics
function. When a component event occurs (e.g. a successful transaction or a wallet connection), this function automatically fires (provided analytics is enabled in your OnchainKit config).
For example, a telemetry event might be sent as follows:
How Do I Opt Out?
By default, telemetry is opt‑out starting with version 0.37.0. If you’d like to disable telemetry, simply set theanalytics
flag to false
in your OnchainKit configuration:
true
.
We believe that this telemetry initiative will help us make OnchainKit even better for all developers—by focusing our improvements on the most used features and catching issues early. If you have any questions or feedback, please reach out to the OnchainKit team.
Happy building!
— The OnchainKit core team