var track = function track(_ref) {
    var action = _ref.action,
        category = _ref.category,
        label = _ref.label,
        _ref$value = _ref.value,
        value = _ref$value === undefined ? '' : _ref$value;

    if (process.env.NODE_ENV === 'development') {
        var _console;

        (_console = console).debug.apply(_console, ['Track event'].concat(Array.prototype.slice.call(arguments)));
    }
    if (window.heap && window.heap.track) {
        window.heap.track(category + ':' + action, { label: label, value: value });
    }
    if (window.ga) {
        window.ga('event', category, action, label, value);
    }
};
export default track;
//# sourceMappingURL=tracking.js.map