From 155f937dfe9ff93f44d5b9fd8952b854a7b24953 Mon Sep 17 00:00:00 2001 From: Carl Thorner Date: Wed, 3 Jun 2015 21:40:44 -0700 Subject: [PATCH] Update with valid Scratch-it Analytics library and add page tracking --- lib/scratch-it/index.js | 37 ++++++++++++++++++++++--------------- lib/scratch-it/test.js | 38 +++++++++++++++++++++++++++++++------- 2 files changed, 53 insertions(+), 22 deletions(-) diff --git a/lib/scratch-it/index.js b/lib/scratch-it/index.js index 21afb86c..ec9d99fe 100644 --- a/lib/scratch-it/index.js +++ b/lib/scratch-it/index.js @@ -12,25 +12,23 @@ var del = require('obj-case').del; */ var ScratchIt = module.exports = integration('Scratch-it Analytics') - .global('ScratchIt') + .global('_ScratchIt') + .global('ScratchItAnalytics') .option('trkId', '') + .option('url', 'http://trk.scratch-it.com/trk') + .option('ajax', { get: function(){} }) .tag('