Sha256: bf08fa815c3777ba1ee87823a8e9dc951c5dfc6780dbdebd814b2239ba71a7de
Contents?: true
Size: 816 Bytes
Versions: 10
Compression:
Stored size: 816 Bytes
Contents
//= require jquery //= require jquery_ujs //= require jquery.cookie //= require lodash //= require is //= require bootstrap //= require rails.validations //= require rails.validations.simple_form // //= require_tree ./init // //= require_self var is = require('is') var _ = require('lodash') track = function(event, attributes, fn){ console.log("Track: " + event + " " + JSON.stringify(attributes)) if (is.fn(attributes)) fn = attributes, attributes = null; if (is.undefined(attributes)) { attributes = {} } if ($.cookie('invisible') == "true") { if (!is.undefined(fn)) { fn() } return } if (typeof(analytics) == 'undefined') { return } attrs = _.extend({ iteration: '<%= MVP::Iteration.version %>' }, attributes) analytics.track(event, attrs, fn) } window.track = track;
Version data entries
10 entries across 9 versions & 2 rubygems