Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

epic-snitchy

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

epic-snitchy

Wrapper for Google Analytics

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Snitchy

"Wrapper" for analyticsjs-boilerplate (!!! WIP, pre-alpha !!!)

Getting started

Installation

npm i -S epic-snitchy

Usage

<!-- Loads analytics.js and custom tracking code asynchronously -->
<script async src="https://www.google-analytics.com/analytics.js"></script>
<script async src="/path/to/tracking.min.js"></script>
import Snitchy from 'epic-snitchy'

// Set ga and/or sentry configurations.
const trackers = {
  test: 'UA-12345-1',
  prod: 'UA-12345-2',
}

new Snitchy(trackers, process.env.NODE_ENV) // production or anything, provided by Gulp + envify

Based on the GREAT work of @philipwalton

Keywords

epic

FAQs

Package last updated on 13 Apr 2017

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