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', 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/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" }, 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 {