package.cjs.utils.captureAnalyticsEvent.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.captureAnalyticsEvent = void 0;
var _mixpanelBrowser = _interopRequireDefault(require("mixpanel-browser"));
var captureAnalyticsEvent = exports.captureAnalyticsEvent = function captureAnalyticsEvent(name) {
var properties = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
return _mixpanelBrowser["default"].track(name, properties);
};
//# sourceMappingURL=captureAnalyticsEvent.js.map