diff --git a/website/source/assets/javascripts/analytics.js b/website/source/assets/javascripts/analytics.js index c9e0d801a..e565c5417 100644 --- a/website/source/assets/javascripts/analytics.js +++ b/website/source/assets/javascripts/analytics.js @@ -1,4 +1,6 @@ -document.addEventListener('DOMContentLoaded', function() { +document.addEventListener('turbolinks:load', function() { + analytics.page() + track('.downloads .download .details li a', function(el) { var m = el.href.match(/vagrant_(.*?)_(.*?)_(.*?)\.zip/) return { diff --git a/website/source/layouts/layout.erb b/website/source/layouts/layout.erb index 5926471d3..5e0120a88 100644 --- a/website/source/layouts/layout.erb +++ b/website/source/layouts/layout.erb @@ -27,16 +27,18 @@