Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit c1700fe

Browse files
committed
analytics: move to plausible
1 parent 44f83b0 commit c1700fe

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

apps/client/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
name="description"
1414
content="Timetabl is a blazing fast, offline-enabled, installable timetable app for SBHS. It allows you to access your periods for the day, scan your student barcode, and view your Daily Notices."
1515
/>
16+
<script defer data-domain="timetabl.app" src="https://plausible.io/js/script.js"></script>
1617
</head>
1718
<body>
1819
<div id="root"></div>

apps/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "client",
3-
"version": "1.7.0-beta",
3+
"version": "1.7.1-beta",
44
"scripts": {
55
"dev": "npm-run-all --parallel dev:*",
66
"dev:run": "FORCE_COLOR=1 vite",

apps/client/src/main.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
88
import { PersistQueryClientProvider } from "@tanstack/react-query-persist-client";
99
import reportWebVitals from "./reportWebVitals";
1010
import { sendToVercelAnalytics } from "./vitals";
11-
import { inject } from "@vercel/analytics";
1211
import { log } from "./utils/log";
1312
import { ToastContainer } from "./toast";
1413
import "@fontsource/poppins";
@@ -70,14 +69,6 @@ registerSW();
7069
// eslint-disable-next-line @typescript-eslint/no-explicit-any
7170
(reportWebVitals as any)(sendToVercelAnalytics);
7271

73-
// Inject analytics
74-
inject({
75-
beforeSend: (event) => ({
76-
...event,
77-
url: window.location.origin + window.location.pathname,
78-
}),
79-
});
80-
8172
// Render welcome message for devs
8273
log(
8374
"%cWelcome to Timetabl",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "timetabl",
3-
"version": "1.7.0-beta",
3+
"version": "1.7.1-beta",
44
"author": "Hamzah Ahmed",
55
"license": "MIT",
66
"bugs": {

0 commit comments

Comments
 (0)