From 7cebfc1ff12c12ed5f8954ae2d3a66822e49d75d Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Sun, 28 May 2017 13:19:03 +0100 Subject: [PATCH] change analytics to set custom url rather than custom title this way exit/entry/page transition will work better Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/Analytics.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Analytics.js b/src/Analytics.js index a39fc7250b..f33138bc95 100644 --- a/src/Analytics.js +++ b/src/Analytics.js @@ -34,7 +34,8 @@ class Analytics { async trackPageChange() { if (!this.tracker) return; - this.tracker.trackPageView(redact(window.location.hash)); + this.tracker.setCustomUrl(redact(window.location.href)); + this.tracker.trackPageView(); } async trackEvent(category, action, name) {