crowdstart-analytics
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -106,2 +106,3 @@ // Generated by CoffeeScript 1.9.3 | ||
GoogleAnalytics.prototype.page = function(category, name, props, opts, cb) { | ||
var payload; | ||
if (props == null) { | ||
@@ -120,7 +121,14 @@ props = {}; | ||
} | ||
ga('send', 'pageview', { | ||
page: opts.page, | ||
title: opts.title, | ||
location: opts.location | ||
}); | ||
payload = {}; | ||
if (opts.page != null) { | ||
payload.page = opts.page; | ||
} | ||
if (opts.title != null) { | ||
payload.title = opts.title; | ||
} | ||
ga('set', payload); | ||
if (opts.location != null) { | ||
payload.location = opts.location; | ||
} | ||
ga('send', 'pageview', payload); | ||
return cb(null); | ||
@@ -127,0 +135,0 @@ }; |
{ | ||
"name": "crowdstart-analytics", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"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
149564
1947