
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@exodus/analytics
Advanced tools
This Exodus SDK feature enables you to generate client-side analytics.
This Exodus SDK feature enables you to generate client-side analytics.
yarn add @exodus/analytics
This feature is designed to be used together with @exodus/headless
. See using the sdk.
import createExodus from '@exodus/headless'
import analytics from '@exodus/analytics'
const container = createExodus({ adapters, config, debug })
container.use(
analytics({
segmentConfig: {
apiKey: '<get this from segment.io>',
},
})
)
[!IMPORTANT] Note: this feature defaults to using event payload validation using
@exodus/analytics-validation
. If you want to skip client-side validation (don't do it, it's dangerous), you can inject an alternativevalidateAnalyticsEvent
dependency via the IOC.
await exodus.analytics.track({ event: 'AppSession' })
in the Dev Tools Console.See using the sdk for more details on how features plug into the SDK and the API interface in the type declaration.
Property name | Description |
---|---|
track | Track an event. To track events before a wallet primary seed is known, e.g. during onboarding, call track({ force: true, ...rest }) . To throttle tracked events, use track({ sample }) with sample ranging from 0-1, e.g. track({ sample: 0.2, ...rest }) will pass through 20% of events. |
trackInstall | Track an install event. |
identify | Used to set global "traits". Should be used sparingly -- e.g. on seed import or seed create. |
setDefaultEventProperties | Sets persistent properties to be sent with every track call. |
requireDefaultEventProperties | If called, will postpone track calls until the provided properties are set via setDefaultEventProperties . |
getUserId | Gets the permanent user id, derived from the wallet's primary seed |
This feature doesn't provide any selectors, so use the API directly from the UI, as described above.
FAQs
This Exodus SDK feature enables you to generate client-side analytics.
The npm package @exodus/analytics receives a total of 1,884 weekly downloads. As such, @exodus/analytics popularity was classified as popular.
We found that @exodus/analytics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.