From 4408116e69006e4d9b42da70f8f6ee5789f55e25 Mon Sep 17 00:00:00 2001 From: Paul Bowsher Date: Mon, 24 Apr 2017 09:03:03 +0100 Subject: [PATCH] Enable GOV.UK analytics tracker configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The configuration variable is misnamed and will be changed once this is proven to work. The endpoint is now served entirely by Fastly, and returns an empty 200 response. We only call the endpoint using `$.get()` and ignore the response so its Content-Type doesn’t matter. --- app/assets/javascripts/analytics/init.js.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/analytics/init.js.erb b/app/assets/javascripts/analytics/init.js.erb index 5159c8862..968cb2054 100644 --- a/app/assets/javascripts/analytics/init.js.erb +++ b/app/assets/javascripts/analytics/init.js.erb @@ -15,6 +15,8 @@ universalId: universalId, cookieDomain: cookieDomain, allowLinker: true, + // This is served by Fastly in production, and returns an empty 200 response + govukTrackerGifUrl: '<%= asset_path "/static/a" %>', }); // Make interface public for virtual pageviews and events