@lukulent/svelte-umami
Version:
[](https://madewithsvelte.com/p/svelte-umami/shield-link)
24 lines (23 loc) • 985 B
TypeScript
import { SvelteComponent } from "svelte";
declare const __propDef: {
props: Record<string, never>;
events: {
[evt: string]: CustomEvent<any>;
};
slots: {};
exports?: {} | undefined;
bindings?: string | undefined;
};
export type UmamiAnalyticsEnvProps = typeof __propDef.props;
export type UmamiAnalyticsEnvEvents = typeof __propDef.events;
export type UmamiAnalyticsEnvSlots = typeof __propDef.slots;
/**
* Add this component to your SvelteKit app to track user interactions with Umami Analytics.
*
* - The easiest way to use this component is to add it to the root +layout.svelte of your app.
* - It will automatically add the Umami Analytics script to the head of your app.
* - The srcURL and websiteID are set in the .env file by the variables PUBLIC_UMAMI_SRC and PUBLIC_UMAMI_WEBSITE_ID.
*/
export default class UmamiAnalyticsEnv extends SvelteComponent<UmamiAnalyticsEnvProps, UmamiAnalyticsEnvEvents, UmamiAnalyticsEnvSlots> {
}
export {};