1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/frontend/src/contexts/PlausibleContext.ts
Tymoteusz Czech 10eb500360
Custom event tracking (#2151)
* add plausible custom event tracking

* refactor: better comments for analytics tracking
2022-10-10 14:06:44 +02:00

7 lines
179 B
TypeScript

import { createContext } from 'react';
import Plausible from 'plausible-tracker';
export const PlausibleContext = createContext<ReturnType<
typeof Plausible
> | null>(null);