From d2e780dda275312fa0c03be8ca4c47b1125c99b3 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 6 Aug 2019 09:36:22 -0700 Subject: [PATCH] Better track pageview --- cast/src/html/launcher.html.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cast/src/html/launcher.html.template b/cast/src/html/launcher.html.template index 8822bdb8cc..25b2eba1a5 100644 --- a/cast/src/html/launcher.html.template +++ b/cast/src/html/launcher.html.template @@ -48,7 +48,7 @@ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-57927901-9', 'auto'); - ga('send', 'pageview', '/'); + ga('send', 'pageview', location.pathname.includes("auth_callback") === -1 ? location.pathname : "/");