diff --git a/pages/downloads.ftl b/pages/downloads.ftl index 29ed0008..4593b2b6 100644 --- a/pages/downloads.ftl +++ b/pages/downloads.ftl @@ -18,6 +18,9 @@

Archived releases | Nightly release

+ \ No newline at end of file diff --git a/resources/js/downloads.js b/resources/js/downloads.js index 5fe504d6..5f4b27fe 100644 --- a/resources/js/downloads.js +++ b/resources/js/downloads.js @@ -1,6 +1,6 @@ -var version = '${version.version}'; +dataLayer.push({'kc_version': window.kc_version}); function dl(category, label) { - dataLayer.push({'event':category, 'version': version}); - dataLayer.push({'event':category + '-' + label, 'version': version}); - dataLayer.push({'event':category + '-' + label + '-' + version}); + dataLayer.push({'event':category}); + dataLayer.push({'event':category + '-' + label}); + dataLayer.push({'event':category + '-' + label + "-" + window.kc_version}); } \ No newline at end of file