mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-22 22:02:38 +03:00
12 lines
294 B
TypeScript
12 lines
294 B
TypeScript
import type Plausible from 'plausible-tracker';
|
|
|
|
export { createTrackerService };
|
|
|
|
function createTrackerService({ plausible }: { plausible: ReturnType<typeof Plausible> }) {
|
|
return {
|
|
trackEvent({ eventName }: { eventName: string }) {
|
|
plausible.trackEvent(eventName);
|
|
},
|
|
};
|
|
}
|