From 17b5d167ddcc07c98bf05ec1157ea020443c8147 Mon Sep 17 00:00:00 2001 From: Kyle VanderBeek Date: Sat, 2 Aug 2025 16:28:35 -0700 Subject: [PATCH 1/3] Config universal app_name param. --- index.html | 2 +- src/ga.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/index.html b/index.html index efbbb86..d8cfa5b 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); - gtag('config', 'G-T8GEX2GPTP'); + gtag('config', 'G-T8GEX2GPTP', {"app_name": "pen"}); diff --git a/src/ga.js b/src/ga.js index 6509e01..453559a 100644 --- a/src/ga.js +++ b/src/ga.js @@ -4,7 +4,6 @@ import { reaction } from "mobx"; export const gtagEvent = (action, params) => { if (window.gtag) { window.gtag("event", action, { - app_name: "pen", ...params, }); } else { From 5a5db1b9071a4fe28ff084480b7dfd59c17733d6 Mon Sep 17 00:00:00 2001 From: Kyle VanderBeek Date: Sat, 2 Aug 2025 16:29:00 -0700 Subject: [PATCH 2/3] Bump to latest for convenience. --- eslint.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index dd582c2..e0d34c6 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -14,7 +14,7 @@ export default defineConfig([ reactRefresh.configs.vite, ], languageOptions: { - ecmaVersion: 2020, + ecmaVersion: "latest", globals: globals.browser, parserOptions: { ecmaVersion: 'latest', From e86cc15811efafb5f04967810447394d12e78ee0 Mon Sep 17 00:00:00 2001 From: Kyle VanderBeek Date: Sat, 2 Aug 2025 16:30:47 -0700 Subject: [PATCH 3/3] Get prettier ready. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index e3276e3..3a2c3fc 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "dev": "vite", "build": "vite build", "lint": "eslint .", + "format": "prettier --write .", "preview": "vite preview", "test": "vitest" },