Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@capacitor-community/appcenter-analytics
Advanced tools
Capacitor plugin for AppCenter Analytics
@capacitor-community/appcenter-analytics
App Center Analytics helps you understand user behavior and customer engagement to improve your app. The SDK automatically captures session count and device properties like model, OS version, etc. You can define your own custom events to measure things that matter to you. All the information captured is available in the App Center portal for you to analyze the data.
Maintainer | GitHub | Social |
---|---|---|
John Borges | johnborges | @johnborges |
npm install @capacitor-community/appcenter-analytics
npx cap sync
Once you add App Center Analytics to your app and the SDK is started, it will automatically track sessions and device properties like OS Version, model, etc. You don’t need to write any additional code.
setEnabled(...)
isEnabled()
pause()
resume()
trackEvent(...)
enableManualSessionTracker()
startSession()
setEnabled(options: { enable: boolean; }) => Promise<void>
You can enable and disable App Center Analytics at runtime. If you disable it, the SDK won't collect any more analytics information for the app.
Param | Type |
---|---|
options | { enable: boolean; } |
Since: 0.3.0
isEnabled() => Promise<{ value: boolean; }>
Check if Analytics is enabled or not.
Returns: Promise<{ value: boolean; }>
Since: 0.0.1
pause() => Promise<void>
Pause transmission of Analytics logs. While paused, Analytics logs are saved to disk.
Since: 0.1.0
resume() => Promise<void>
Resume transmission of Analytics logs. Any Analytics logs that accumulated on disk while paused are sent to the server.
Since: 0.1.0
trackEvent(options: AnalyticsEvent) => Promise<void>
Track an event with optional custom properties to know what's happening in your app, understand user actions, and see the aggregates in the App Center portal.
Param | Type |
---|---|
options | AnalyticsEvent |
Since: 0.1.0
enableManualSessionTracker() => Promise<void>
Enable manual session tracker. Call this method before Analytics starts.
Since: 2.0.0
startSession() => Promise<void>
Start a new session if manual session tracker is enabled, otherwise do nothing.
Since: 2.0.0
Prop | Type | Description |
---|---|---|
name | string | 256 character limit |
properties | { [key: string]: string; } | Only 20 properties allowed per event |
flag | 'normal' | 'critical' |
FAQs
Capacitor plugin for AppCenter Analytics
The npm package @capacitor-community/appcenter-analytics receives a total of 87 weekly downloads. As such, @capacitor-community/appcenter-analytics popularity was classified as not popular.
We found that @capacitor-community/appcenter-analytics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 42 open source maintainers 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.