Files
moreminimore-chat/app/javascript/dashboard/helper/AnalyticsHelper/index.js
2026-08-15 23:27:09 +07:00

34 lines
672 B
JavaScript

/* eslint-disable class-methods-use-this */
/**
* Compatibility facade for dashboard analytics callsites.
*
* The community edition deliberately does not initialize a remote analytics
* provider or retain user, account, event, or page data.
*/
export class AnalyticsHelper {
constructor() {
this.analytics = null;
this.user = {};
}
async init() {
return undefined;
}
identify() {
return undefined;
}
track() {
return undefined;
}
page() {
return undefined;
}
}
// Keep the shared object and method signatures for upstream compatibility.
export default new AnalyticsHelper();
/* eslint-enable class-methods-use-this */