sure
This commit is contained in:
parent
ced0ac56f3
commit
d6a8f898d1
27 changed files with 751 additions and 354 deletions
|
|
@ -4,6 +4,8 @@ import {
|
|||
type PlausibleEventOptions,
|
||||
} from '@plausible-analytics/tracker';
|
||||
|
||||
import type { VibeId } from './vibes';
|
||||
|
||||
let isInitialized = false;
|
||||
|
||||
const track = (eventName: string, options: PlausibleEventOptions = {}) => {
|
||||
|
|
@ -37,7 +39,7 @@ export const trackVibeChange = ({
|
|||
vibeName,
|
||||
source,
|
||||
}: {
|
||||
vibeId: string;
|
||||
vibeId: VibeId;
|
||||
vibeName: string;
|
||||
source: string;
|
||||
}) => {
|
||||
|
|
@ -50,7 +52,7 @@ export const trackVibeChange = ({
|
|||
});
|
||||
};
|
||||
|
||||
export const trackExport = ({ vibeId }: { vibeId: string }) => {
|
||||
export const trackExport = ({ vibeId }: { vibeId: VibeId }) => {
|
||||
track('Export', {
|
||||
props: {
|
||||
format: 'png',
|
||||
|
|
|
|||
Loading…
Reference in a new issue