import posthog from 'posthog-js';
const SHOULD_CAPTURE_EVENT = process.env.REACT_APP_STAGE === 'production';
const captureEvent = (event, properties) => {
    if (SHOULD_CAPTURE_EVENT) {
        posthog.capture(event, properties);
    }
};
const setPeople = (properties) => {
    if (SHOULD_CAPTURE_EVENT) {
        posthog.people.set(properties);
    }
};
export default {
    captureEvent,
    SHOULD_CAPTURE_EVENT,
    setPeople,
};
//# sourceMappingURL=analytics.js.map