How to use the amplitude.com function in amplitude

To help you get started, we’ve selected a few amplitude examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rocketshipapps / adblockfast / opera / chrome / scripts / background.js View on Github external
localStorage.firstBuild = BUILD;
  localStorage.whitelist = JSON.stringify({});
  spawn(PATH + 'markup/firstrun.html');
}

if (!PREVIOUS_BUILD || PREVIOUS_BUILD < 5)
    localStorage.uids = JSON.stringify([]);

if (!PREVIOUS_BUILD || PREVIOUS_BUILD < 7) {
  WHITELIST['buy.buysellads.com'] = true;
  WHITELIST['gs.statcounter.com'] = true;
  localStorage.whitelist = JSON.stringify(WHITELIST);
}

if (IS_UPDATING_TO_CURRENT) {
  WHITELIST['amplitude.com'] = true;
  WHITELIST['analytics.amplitude.com'] = true;
  WHITELIST['sumo.com'] = true;
  WHITELIST['www.cnet.com'] = true;
  WHITELIST['www.stitcher.com'] = true;
  localStorage.whitelist = JSON.stringify(WHITELIST);
  localStorage.build = BUILD;
}

firebase.initializeApp({
  apiKey: 'AIzaSyAEyH0_n6vGCimJnyGjuGXXsfYwhAqzm8Q',
  appId: '1:109831748909:web:ce760a23eb8a204d7de7a4',
  authDomain: 'adblock-fast.firebaseapp.com',
  databaseURL: 'https://adblock-fast.firebaseio.com',
  messagingSenderId: '109831748909',
  projectId: 'adblock-fast',
  storageBucket: 'adblock-fast.appspot.com'

amplitude

A node wrapper for Amplitude analytics http api

ISC
Latest version published 3 years ago

Package Health Score

44 / 100
Full package analysis

Popular amplitude functions