mirror of https://github.com/status-im/consul.git
17 lines
427 B
JavaScript
17 lines
427 B
JavaScript
document.addEventListener('turbolinks:load', function() {
|
|
analytics.page()
|
|
|
|
track('.downloads .download .details li a', function(el) {
|
|
var m = el.href.match(/consul_(.*?)_(.*?)_(.*?)\.zip/)
|
|
return {
|
|
event: 'Download',
|
|
category: 'Button',
|
|
label: 'Consul | v' + m[1] + ' | ' + m[2] + ' | ' + m[3],
|
|
version: m[1],
|
|
os: m[2],
|
|
architecture: m[3],
|
|
product: 'consul'
|
|
}
|
|
})
|
|
})
|