1.0.0 • Published 7 years ago

epic-snitchy v1.0.0

Weekly downloads
3
License
SEE LICENSE IN UN...
Repository
github
Last release
7 years ago

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

1.0.0

7 years ago

1.0.0-0

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago