Update trackPageView integrations call

Based on feedback from segment.io support.  Was unclear from
documentation how to provide only name and options object.
This commit is contained in:
Matt Lott 2014-12-01 13:58:18 -08:00
parent ffcfec0a6a
commit 35adea61e0

View file

@ -31,7 +31,7 @@ module.exports = class Tracker
options = integrations: {'All': false}
for integration in includeIntegrations
options.integrations[integration] = true
analytics.page null, "/#{name}", null, options
analytics.page "/#{name}", {}, options
else
analytics.page "/#{name}"