crowdstart-analytics
Advanced tools
Comparing version 0.0.10 to 0.1.0
@@ -15,8 +15,4 @@ // Generated by CoffeeScript 1.9.3 | ||
function FacebookAudiences(opts) { | ||
var k, v; | ||
for (k in opts) { | ||
v = opts[k]; | ||
this[k] = v; | ||
} | ||
function FacebookAudiences(opts1) { | ||
this.opts = opts1; | ||
} | ||
@@ -43,3 +39,3 @@ | ||
fbq.queue = []; | ||
fbq('init', this.id); | ||
fbq('init', this.opts.id); | ||
return fbq('track', 'PageView'); | ||
@@ -46,0 +42,0 @@ }; |
@@ -15,8 +15,4 @@ // Generated by CoffeeScript 1.9.3 | ||
function FacebookConversions(opts) { | ||
var k, v; | ||
for (k in opts) { | ||
v = opts[k]; | ||
this[k] = v; | ||
} | ||
function FacebookConversions(opts1) { | ||
this.opts = opts1; | ||
} | ||
@@ -51,9 +47,9 @@ | ||
} | ||
if (event !== this.event) { | ||
if (event !== this.opts.event) { | ||
return; | ||
} | ||
this.log('FacebookConversions.track', arguments); | ||
id = this.id; | ||
value = (ref = (ref1 = props.value) != null ? ref1 : this.value) != null ? ref : '0.00'; | ||
currency = (ref2 = (ref3 = props.currency) != null ? ref3 : this.currency) != null ? ref2 : 'USD'; | ||
id = this.opts.id; | ||
value = (ref = (ref1 = props.value) != null ? ref1 : this.opts.value) != null ? ref : '0.00'; | ||
currency = (ref2 = (ref3 = props.currency) != null ? ref3 : this.opts.currency) != null ? ref2 : 'USD'; | ||
return _fbq.push([ | ||
@@ -60,0 +56,0 @@ 'track', id, { |
@@ -15,8 +15,4 @@ // Generated by CoffeeScript 1.9.3 | ||
function GoogleAdWords(opts) { | ||
var k, v; | ||
for (k in opts) { | ||
v = opts[k]; | ||
this[k] = v; | ||
} | ||
function GoogleAdWords(opts1) { | ||
this.opts = opts1; | ||
this.queue = []; | ||
@@ -63,3 +59,3 @@ } | ||
} | ||
if (name !== this.event) { | ||
if (name !== this.opts.event) { | ||
return; | ||
@@ -69,3 +65,3 @@ } | ||
google_trackConversion({ | ||
google_conversion_id: this.id, | ||
google_conversion_id: this.opts.id, | ||
google_custom_params: props, | ||
@@ -81,3 +77,3 @@ google_remarketing_only: true | ||
} | ||
if (event !== this.event) { | ||
if (event !== this.opts.event) { | ||
return; | ||
@@ -87,3 +83,3 @@ } | ||
google_trackConversion({ | ||
google_conversion_id: this.id, | ||
google_conversion_id: this.opts.id, | ||
google_custom_params: props, | ||
@@ -90,0 +86,0 @@ google_conversion_language: 'en', |
@@ -15,8 +15,4 @@ // Generated by CoffeeScript 1.9.3 | ||
function GoogleAnalytics(opts) { | ||
var k, v; | ||
for (k in opts) { | ||
v = opts[k]; | ||
this[k] = v; | ||
} | ||
function GoogleAnalytics(opts1) { | ||
this.opts = opts1; | ||
} | ||
@@ -38,3 +34,3 @@ | ||
window.ga = ga; | ||
return ga('create', this.id, 'auto'); | ||
return ga('create', this.opts.id, 'auto'); | ||
}; | ||
@@ -41,0 +37,0 @@ |
{ | ||
"name": "crowdstart-analytics", | ||
"version": "0.0.10", | ||
"version": "0.1.0", | ||
"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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
138330
1797