Built files from Bizgaze WebServer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sammy.kissmetrics-0.7.6.min.js 847B

12345
  1. // -- Sammy.js -- /plugins/sammy.kissmetrics.js
  2. // http://sammyjs.org
  3. // Version: 0.7.6
  4. // Built: 2014-08-26 10:45:32 +0300
  5. (function(factory){if(typeof define==="function"&&define.amd){define(["jquery","sammy"],factory)}else{(window.Sammy=window.Sammy||{}).JSON=factory(window.jQuery,window.Sammy)}})(function($,Sammy){Sammy.KISSmetrics=function(app){var shouldTrack=true;function disableTracking(){shouldTrack=false}function enableTracking(){shouldTrack=true}this.helpers({doNotTrackKISSmetrics:function(){disableTracking()},trackKISSmetrics:function(path){if(typeof window._kmq!="undefined"&&shouldTrack){this.log("tracking KISSmetrics",path);window._kmq.push(["record",path])}}});this.bind("event-context-after",function(){var path=this.app.last_location[1];if(path){this.trackKISSmetrics(path);enableTracking()}})};return Sammy.KISSmetrics});