methodFactory = function(type) {
      return function() {
        window.heap.push([type].concat(Array.prototype.slice.call(arguments, 0)));
      };
    }
Initialize.

https://heapanalytics.com/docs/installation#web

@api public