crowdstart-analytics
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -32,13 +32,10 @@ // Generated by CoffeeScript 1.9.3 | ||
GoogleAnalytics.prototype.init = function() { | ||
(function(i, s, o, g, r, a, m) { | ||
i['GoogleAnalyticsObject'] = r; | ||
i[r] = i[r] || function() { | ||
(i[r].q = i[r].q || []).push(arguments); | ||
}; | ||
return i[r].l = 1 * new Date; | ||
})(window, document, '', '', 'ga'); | ||
window.GoogleAnalyticsObject = 'ga'; | ||
if (window.ga == null) { | ||
window.ga = function() { | ||
var base; | ||
if ((base = window.ga).q == null) { | ||
base.q = []; | ||
} | ||
window.ga.q.push(arguments); | ||
}; | ||
} | ||
ga.l = 1 * new Date(); | ||
return ga('create', this.opts.id, 'auto'); | ||
@@ -194,3 +191,3 @@ }; | ||
GoogleAnalytics.prototype.completedOrder = function(event, props, opts, cb) { | ||
var i, len, product, ref, ref1; | ||
var j, len, product, ref, ref1; | ||
if (cb == null) { | ||
@@ -205,4 +202,4 @@ cb = function() {}; | ||
ref = props.products; | ||
for (i = 0, len = ref.length; i < len; i++) { | ||
product = ref[i]; | ||
for (j = 0, len = ref.length; j < len; j++) { | ||
product = ref[j]; | ||
this.addProduct(product); | ||
@@ -209,0 +206,0 @@ } |
{ | ||
"name": "crowdstart-analytics", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Analytics support for Crowdstart.", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
148947
1939