Setup usage metrics

This commit is contained in:
2023-09-12 22:53:32 +01:00
parent 377dfd5d30
commit 6745786e9f
4 changed files with 40 additions and 0 deletions

View File

@ -20,6 +20,12 @@ import QrCode from "Element/QrCode";
import Copy from "Element/Copy";
import { delay } from "SnortUtils";
declare global {
interface Window {
plausible?: (tag: string) => void
}
}
interface ArtworkEntry {
name: string;
pubkey: HexKey;
@ -112,6 +118,7 @@ export default function LoginPage() {
async function makeRandomKey() {
await generateNewLogin();
window.plausible?.("Generate Account")
navigate("/new");
}