From c686ced77f41da1e1620712a5cfdd8a2e20b971b Mon Sep 17 00:00:00 2001 From: David Russell Date: Tue, 24 Oct 2017 15:10:28 +0700 Subject: [PATCH] Update Google analytics token handling. --- app/com/gitpitch/views/frags/GoogleAnalytics.scala.html | 7 ++++++- .../views/frags/SlideshowGoogleAnalytics.scala.html | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/com/gitpitch/views/frags/GoogleAnalytics.scala.html b/app/com/gitpitch/views/frags/GoogleAnalytics.scala.html index 4fcccec..ce5344b 100644 --- a/app/com/gitpitch/views/frags/GoogleAnalytics.scala.html +++ b/app/com/gitpitch/views/frags/GoogleAnalytics.scala.html @@ -1,11 +1,16 @@ -@(gaToken: String) +@(gaToken: String, gpu: Boolean) @if(gaToken != null) { } diff --git a/app/com/gitpitch/views/frags/SlideshowGoogleAnalytics.scala.html b/app/com/gitpitch/views/frags/SlideshowGoogleAnalytics.scala.html index 13e30dc..db2d8b7 100644 --- a/app/com/gitpitch/views/frags/SlideshowGoogleAnalytics.scala.html +++ b/app/com/gitpitch/views/frags/SlideshowGoogleAnalytics.scala.html @@ -2,10 +2,10 @@ @if(!offline) { @if(!serverPrinting) { @if(gpToken) { - @GoogleAnalytics(gpToken) + @GoogleAnalytics(gpToken, false) } @if(ssm.hasGAToken()) { - @GoogleAnalytics(ssm.fetchGAToken()) + @GoogleAnalytics(ssm.fetchGAToken(), true) } } }