From b5fd15ce68e518eb8f0fd3e308ebf87800b6d7f3 Mon Sep 17 00:00:00 2001 From: Noah Berman Date: Mon, 10 Jun 2019 12:05:10 -0400 Subject: [PATCH 1/3] Added framework for URL-change condition for virtualPage call --- lib/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 6b2f59e..e40ea67 100644 --- a/lib/index.js +++ b/lib/index.js @@ -8,6 +8,9 @@ var defaults = require('@ndhoule/defaults'); var integration = require('@segment/analytics.js-integration'); var onBody = require('on-body'); +/** TO-DO: connect urlChanged to Segment URL-change event **/ +var urlChanged = true; + /** * Expose `Chartbeat` integration. */ @@ -20,6 +23,7 @@ var Chartbeat = module.exports = integration('Chartbeat') .option('uid', null) .option('video', false) .option('sendNameAndCategoryAsTitle', false) + .option('trackGalleryClicksAsPageviews', false) .option('subscriberEngagementKeys', []) .tag('