New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

app-usage-stats

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

app-usage-stats

app-usage-stats

0.0.0
Source
npm
Version published
Weekly downloads
1.3K
25.29%
Maintainers
1
Weekly downloads
 
Created
Source

view on npm npm module downloads Build Status Dependency Status js-standard-style

app-usage-stats

Example

const UsageStats = require('app-usage-stats')
const stats = new UsageStats('UA-987654321', 'app-name')

AppUsageStats ⏏

Kind: Exported class

new AppUsageStats(tid, appName, [options])
ParamTypeDescription
tidstringGoogle Analytics tracking ID
appNamestringApp name
[options]object
[options.dimensionMap]objectA custom dimension name to ID Map.
[options.metricMap]objectA custom metric name to ID Map.
[options.sendInterval]objectIf specified, stats will be sent no more frequently than this period.

stats.hit(dimensions, metrics)

Track a hit.

Kind: instance method of AppUsageStats

ParamTypeDescription
dimensionsArray.<object>dimension-value maps
metricsArray.<object>metric-value maps

stats.save()

Save stats

Kind: instance method of AppUsageStats

stats.saveSync()

Save stats sync.

Kind: instance method of AppUsageStats

stats.load()

Load stats

Kind: instance method of AppUsageStats

stats.loadSync()

Loads stats sync.

Kind: instance method of AppUsageStats

stats.send()

Send and reset stats.

Kind: instance method of AppUsageStats

© 2016 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.

FAQs

Package last updated on 18 Sep 2016

Did you know?

Socket

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