Skip to content

Commit

Permalink
Add GoogleTagManager
Browse files Browse the repository at this point in the history
  • Loading branch information
braddf committed Jul 23, 2024
1 parent 8a376c5 commit 915d408
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/nowcasting-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@auth0/nextjs-auth0": "^1.8.0",
"@headlessui/react": "^1.6.1",
"@heroicons/react": "^1.0.6",
"@next/third-parties": "^14.2.5",
"@react-icons/all-files": "^4.1.0",
"@sentry/nextjs": "^7.102.1",
"@tailwindcss/container-queries": "^0.1.1",
Expand Down
2 changes: 2 additions & 0 deletions apps/nowcasting-app/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { SWRConfig } from "swr";
import { apiErrorMSGS } from "../constant";
import * as Sentry from "@sentry/nextjs";
import { AxiosError } from "axios";
import { GoogleTagManager } from "@next/third-parties/google";

function MyApp({ Component, pageProps }: any) {
return (
Expand Down Expand Up @@ -36,6 +37,7 @@ function MyApp({ Component, pageProps }: any) {
<ToastContainer position="top-left" autoClose={10000} limit={5} hideProgressBar={true} />

<Component {...pageProps} />
<GoogleTagManager gtmId={process.env.NEXT_PUBLIC_GTM_ID || ""} />
</SWRConfig>
</UserProvider>
);
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1982,6 +1982,13 @@
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.1.0.tgz#e561fb330466d41807123d932b365cf3d33ceba2"
integrity sha512-9WEbVRRAqJ3YFVqEZIxUqkiO8l1nool1LmNxygr5HWF8AcSYsEpneUDhmjUVJEzO2A04+oPtZdombzzPPkTtgg==

"@next/third-parties@^14.2.5":
version "14.2.5"
resolved "https://registry.yarnpkg.com/@next/third-parties/-/third-parties-14.2.5.tgz#7161d266547cabfb61b8af9721f83f8b5463a572"
integrity sha512-PDRJm8RZ3rnGNporHKjcdCeZqoW8iJ5uP0clo1Z08TqJiQzuntJ66zrGYCJyqTakx62UJNOp73YsQCFo6kbYYg==
dependencies:
third-party-capital "1.0.20"

"@nicolo-ribaudo/[email protected]":
version "5.1.1-v1"
resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz#dbf733a965ca47b1973177dc0bb6c889edcfb129"
Expand Down Expand Up @@ -11425,6 +11432,11 @@ thenify-all@^1.0.0:
dependencies:
any-promise "^1.0.0"

[email protected]:
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==

throttleit@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-1.0.1.tgz#304ec51631c3b770c65c6c6f76938b384000f4d5"
Expand Down

0 comments on commit 915d408

Please sign in to comment.