From b2a679c25da42c4665059965830858da4f0ec238 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Tue, 15 Sep 2015 18:59:14 -0700 Subject: PLT-93 cleaing up client side configs --- web/templates/head.html | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) (limited to 'web/templates/head.html') diff --git a/web/templates/head.html b/web/templates/head.html index b70ddd311..6fea62067 100644 --- a/web/templates/head.html +++ b/web/templates/head.html @@ -3,14 +3,14 @@ - {{ .Title }} + {{ .Props.Title }} - - + + @@ -18,6 +18,11 @@ + + + @@ -35,9 +40,7 @@ - - - - @@ -89,7 +82,7 @@ n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","//d1fc8wv8zag5ca.cloudfront.net/2.4.2/sp.js","snowplow")); window.snowplow('newTracker', 'cf', '{{ .Props.AnalyticsUrl }}', { - appId: '{{ .SiteName }}' + appId: window.config.SiteName }); var user = window.UserStore.getCurrentUser(true); @@ -100,7 +93,6 @@ window.snowplow('trackPageView'); } else { window.snowplow = function(){}; - console.warn("config.json missing AnalyticsUrl, Snowplow analytics is not tracking"); } -- cgit v1.2.3-1-g7c22