FEATURE: added posthog as new analytics tool
This commit is contained in:
parent
0c374aba48
commit
2e111aa13a
10 changed files with 109 additions and 3 deletions
|
@ -2,11 +2,14 @@ import { get, writable } from "svelte/store";
|
|||
import Timeout = NodeJS.Timeout;
|
||||
import { userIsAdminStore } from "./GameStore";
|
||||
import { CONTACT_URL } from "../Enum/EnvironmentVariable";
|
||||
import {analyticsClient} from "../Administration/AnalyticsClient";
|
||||
|
||||
export const menuIconVisiblilityStore = writable(false);
|
||||
export const menuVisiblilityStore = writable(false);
|
||||
menuVisiblilityStore.subscribe((value) => {
|
||||
if (value) analyticsClient.openedMenu();
|
||||
})
|
||||
export const menuInputFocusStore = writable(false);
|
||||
export const loginUrlStore = writable(false);
|
||||
export const userIsConnected = writable(false);
|
||||
|
||||
let warningContainerTimeout: Timeout | null = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue