From 2d23bfa10c27eb49bb39515a114b21521171ce49 Mon Sep 17 00:00:00 2001 From: Dora Noda Date: Fri, 29 Mar 2024 14:24:35 -0700 Subject: [PATCH] update gtag --- frontend-v2/package.json | 1 + frontend-v2/pages/_app.tsx | 2 ++ frontend-v2/yarn.lock | 12 ++++++++++++ 3 files changed, 15 insertions(+) diff --git a/frontend-v2/package.json b/frontend-v2/package.json index c9c96fa..3994263 100644 --- a/frontend-v2/package.json +++ b/frontend-v2/package.json @@ -14,6 +14,7 @@ "dependencies": { "@apollo/client": "^3.7.1", "@fortawesome/fontawesome-free": "^6.2.1", + "@next/third-parties": "^14.1.4", "@types/node": "18.11.9", "@types/react": "18.0.25", "@types/react-dom": "18.0.9", diff --git a/frontend-v2/pages/_app.tsx b/frontend-v2/pages/_app.tsx index af74585..3f45e80 100644 --- a/frontend-v2/pages/_app.tsx +++ b/frontend-v2/pages/_app.tsx @@ -9,6 +9,7 @@ import { appWithTranslation } from "next-i18next"; import { ApolloProvider } from "@apollo/client"; import { apolloClient } from "@/shared/common/apollo-client"; import nextI18NextConfig from "../next-i18next.config.js"; +import { GoogleAnalytics } from "@next/third-parties/google"; export default appWithTranslation(function App({ Component, @@ -18,6 +19,7 @@ export default appWithTranslation(function App({ + diff --git a/frontend-v2/yarn.lock b/frontend-v2/yarn.lock index c71e2ea..8d4702a 100644 --- a/frontend-v2/yarn.lock +++ b/frontend-v2/yarn.lock @@ -148,6 +148,13 @@ resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.1.4.tgz#bccf5beccfde66d6c66fa4e2509118c796385eda" integrity sha512-4Rto21sPfw555sZ/XNLqfxDUNeLhNYGO2dlPqsnuCg8N8a2a9u1ltqBOPQ4vj1Gf7eJC0W2hHG2eYUHuiXgY2w== +"@next/third-parties@^14.1.4": + version "14.1.4" + resolved "https://registry.yarnpkg.com/@next/third-parties/-/third-parties-14.1.4.tgz#a7d8243b7b55cf452630e5d42fc79d35d51f2ff5" + integrity sha512-e/kpEFq5/ZPhHkxpJkvhMfLp3OC6KCBou0/BV8BvgjXAPgEo6sa0ZXe0l4ZEb3wcA7NIEHIpqCmjU5Z7QAHcKQ== + dependencies: + third-party-capital "1.0.20" + "@nodelib/fs.scandir@2.1.5": version "2.1.5" resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" @@ -3092,6 +3099,11 @@ text-table@^0.2.0: resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== +third-party-capital@1.0.20: + version "1.0.20" + resolved "https://registry.yarnpkg.com/third-party-capital/-/third-party-capital-1.0.20.tgz#e218a929a35bf4d2245da9addb8ab978d2f41685" + integrity sha512-oB7yIimd8SuGptespDAZnNkzIz+NWaJCu2RMsbs4Wmp9zSDUM8Nhi3s2OOcqYuv3mN4hitXc8DVx+LyUmbUDiA== + tiny-glob@^0.2.9: version "0.2.9" resolved "https://registry.yarnpkg.com/tiny-glob/-/tiny-glob-0.2.9.tgz#2212d441ac17928033b110f8b3640683129d31e2"