Skip to content

Commit

Permalink
Merge pull request #37 from kooya3/chore/analytics
Browse files Browse the repository at this point in the history
chore(analytics): add google analytics
  • Loading branch information
suleyunus authored Aug 29, 2024
2 parents 1c194c4 + 5a3a56d commit 3ee6985
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@google-pay/button-react": "^3.1.0",
"@headlessui/react": "^2.1.3",
"@heroicons/react": "^2.1.5",
"@next/third-parties": "^14.2.7",
"@payloadcms/bundler-webpack": "^1.0.0",
"@payloadcms/db-mongodb": "^1.0.0",
"@payloadcms/plugin-cloud": "^3.0.1",
Expand Down
2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react'
import { GoogleAnalytics } from '@next/third-parties/google'
import { Metadata } from 'next'
import { Noto_Sans } from 'next/font/google'

Expand All @@ -24,6 +25,7 @@ export default async function RootLayout({ children }: { children: React.ReactNo
<InitTheme />
<link rel="icon" href="/favicon.ico" sizes="32x32" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<GoogleAnalytics gaId="G-H2E4EWMKTG" />
</head>
<body className={noto.variable}>
<Providers>
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1513,6 +1513,13 @@
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.5.2.tgz#cf8db00763d9219567655b90853b7d484f3fcad6"
integrity sha512-LfTHt+hTL8w7F9hnB3H4nRasCzLD/fP+h4/GUVBTxrkMJOnh/7OZ0XbYDKO/uuWwryJS9kZjhxcruBiYwc5UDw==

"@next/third-parties@^14.2.7":
version "14.2.7"
resolved "https://registry.yarnpkg.com/@next/third-parties/-/third-parties-14.2.7.tgz#542e354cb129e5a4751fa3c28f96d00515a4d3b8"
integrity sha512-cE/1MAvmbKFZ9VCCj+Gvv21rMm/72JRTeLr24QEqCBNe17xuXyCzg9c7cRCXLdbk1VTBSALZCK9o13gbOvSMKA==
dependencies:
third-party-capital "1.0.20"

"@nodelib/fs.scandir@2.1.5":
version "2.1.5"
resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz"
Expand Down Expand Up @@ -9469,6 +9476,11 @@ thenify-all@^1.0.0:
dependencies:
any-promise "^1.0.0"

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==

thread-stream@^2.0.0:
version "2.4.1"
resolved "https://registry.npmjs.org/thread-stream/-/thread-stream-2.4.1.tgz"
Expand Down

0 comments on commit 3ee6985

Please sign in to comment.