Socket
Socket
Sign inDemoInstall

@capacitor-community/appcenter-analytics

Package Overview
Dependencies
2
Maintainers
42
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @capacitor-community/appcenter-analytics

Capacitor plugin for AppCenter Analytics


Version published
Weekly downloads
256
decreased by-25.8%
Maintainers
42
Install size
40.0 kB
Created
Weekly downloads
 

Readme

Source


App Center 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.


Maintainers

MaintainerGitHubSocial
John Borgesjohnborges@johnborges

Install

npm install @capacitor-community/appcenter-analytics
npx cap sync

Session and Device Info

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.

Usage

API

setEnabled(...)

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.

ParamType
options{ enable: boolean; }

Since: 0.3.0


isEnabled()

isEnabled() => Promise<{ value: boolean; }>

Check if Analytics is enabled or not.

Returns: Promise<{ value: boolean; }>

Since: 0.0.1


pause()

pause() => Promise<void>

Pause transmission of Analytics logs. While paused, Analytics logs are saved to disk.

Since: 0.1.0


resume()

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(...)

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.

ParamType
optionsAnalyticsEvent

Since: 0.1.0


enableManualSessionTracker()

enableManualSessionTracker() => Promise<void>

Enable manual session tracker. Call this method before Analytics starts.

Since: 2.0.0


startSession()

startSession() => Promise<void>

Start a new session if manual session tracker is enabled, otherwise do nothing.

Since: 2.0.0


Interfaces

AnalyticsEvent
PropTypeDescription
namestring256 character limit
properties{ [key: string]: string; }Only 20 properties allowed per event
flag'normal' | 'critical'

Keywords

FAQs

Last updated on 04 May 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc