const track = function track({ action, category, label, value = '' }) {
    if (process.env.NODE_ENV === 'development') {
        console.debug('Track event', ...arguments);
    }
    if (window.heap && window.heap.track) {
        window.heap.track(category + ':' + action, { label, value });
    }
    if (window.ga) {
        window.ga('event', category, action, label, value);
    }
};
export default track;
//# sourceMappingURL=tracking.js.map