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

@compilorama/statorama

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@compilorama/statorama

Analytics wrapper for Umami

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
115
decreased by-3.36%
Maintainers
1
Weekly downloads
 
Created
Source

Statorama

Analytics wrapper for Umami

CircleCI Coverage Status

Installation

npm install @compilorama/statorama --save

Usage

Analytics wrapper that adds a couple of functionalities on top of Umami SDK:

  • Diasables tracking when a search param analytics=disabled is set.
  • Diasables tracking when a local storage item with key/value analytics=disabled is found.
  • Disables tracking when user agent is considered a bot.
import statorama from '@compilorama/statorama';

statorama.init({
  // Source where Umami SDK is requested from (required)
  src: String,
  // Umami Website ID (required)
  id: String,
  // Enable/Diasable tracking arbitrarily (required)
  enabled: Boolean,
})

Contributing

  1. Install Node. Download the "Recommend for Most Users" version.

  2. Clone the repo:

git clone git@github.com:compilorama/statorama.git
  1. Go to the project directory:
cd statorama
  1. Install the project dependencies:
npm install
  1. Build the project:
npm run build

Tests

Ensure that all code that you have added is covered with unit tests:

npm run test -- --coverage

Keywords

FAQs

Package last updated on 14 Jun 2024

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc