github.com/outbrain/consul@v1.4.5/website/source/assets/javascripts/analytics.js (about)

     1  document.addEventListener('turbolinks:load', function() {
     2    analytics.page()
     3  
     4    track('.downloads .download .details li a', function(el) {
     5      var m = el.href.match(/consul_(.*?)_(.*?)_(.*?)\.zip/)
     6      return {
     7        event: 'Download',
     8        category: 'Button',
     9        label: 'Consul | v' + m[1] + ' | ' + m[2] + ' | ' + m[3],
    10        version: m[1],
    11        os: m[2],
    12        architecture: m[3],
    13        product: 'consul'
    14      }
    15    })
    16  })