Skip to content

Commit

Permalink
Enable GOV.UK analytics tracker configuration
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
boffbowsh committed Apr 26, 2017
1 parent a0e4fd7 commit 4408116
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/assets/javascripts/analytics/init.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4408116

Please sign in to comment.