Skip to content

Commit 09fd034

Browse files
authored
Remove gtag id (#249)
1 parent e8e705a commit 09fd034

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ jobs:
6161
run: yarn
6262

6363
- name: Build
64-
run: yarn build
64+
env: # Or as an environment variable
65+
GTAG_ID: ${{ secrets.GTAG_ID }}
66+
run: NEXT_PUBLIC_GTAG_ID="$GTAG_ID" yarn build
6567

6668
- name: Setup Pages
6769
uses: actions/configure-pages@v3

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"eslint-config-react-app": "^7.0.1",
5454
"jest": "^29.7.0",
5555
"jest-environment-jsdom": "^29.7.0",
56-
"postcss": "^8.4.31",
57-
"tailwindcss": "^3.3.5"
56+
"postcss": "^8.4.33",
57+
"tailwindcss": "^3.4.1"
5858
}
5959
}

src/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ export default function RootLayout({
9090
function gtag(){dataLayer.push(arguments);}
9191
gtag('js', new Date());
9292
93-
gtag('config', 'G-T24M4ZNYKM');
93+
gtag('config', '${process.env.NEXT_PUBLIC_GTAG_ID}');
9494
`}
9595
</Script>
9696
<Script
97-
src="https://www.googletagmanager.com/gtag/js?id=G-T24M4ZNYKM"
97+
src={`https://www.googletagmanager.com/gtag/js?id=${process.env.NEXT_PUBLIC_GTAG_ID}`}
9898
strategy="afterInteractive"
9999
/>
100100
</body>

yarn.lock

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5811,6 +5811,11 @@ nanoid@^3.3.6:
58115811
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.6.tgz#443380c856d6e9f9824267d960b4236ad583ea4c"
58125812
integrity sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==
58135813

5814+
nanoid@^3.3.7:
5815+
version "3.3.7"
5816+
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8"
5817+
integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==
5818+
58145819
natural-compare-lite@^1.4.0:
58155820
version "1.4.0"
58165821
resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4"
@@ -6204,7 +6209,7 @@ postcss-value-parser@^4.0.0, postcss-value-parser@^4.2.0:
62046209
resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"
62056210
integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
62066211

6207-
[email protected], postcss@^8.4.23, postcss@^8.4.31:
6212+
[email protected], postcss@^8.4.23:
62086213
version "8.4.31"
62096214
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.31.tgz#92b451050a9f914da6755af352bdc0192508656d"
62106215
integrity sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==
@@ -6213,6 +6218,15 @@ [email protected], postcss@^8.4.23, postcss@^8.4.31:
62136218
picocolors "^1.0.0"
62146219
source-map-js "^1.0.2"
62156220

6221+
postcss@^8.4.33:
6222+
version "8.4.33"
6223+
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.33.tgz#1378e859c9f69bf6f638b990a0212f43e2aaa742"
6224+
integrity sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg==
6225+
dependencies:
6226+
nanoid "^3.3.7"
6227+
picocolors "^1.0.0"
6228+
source-map-js "^1.0.2"
6229+
62166230
prelude-ls@^1.2.1:
62176231
version "1.2.1"
62186232
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
@@ -6928,10 +6942,10 @@ synckit@^0.8.5:
69286942
"@pkgr/utils" "^2.3.1"
69296943
tslib "^2.5.0"
69306944

6931-
tailwindcss@^3.3.5:
6932-
version "3.3.5"
6933-
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.3.5.tgz#22a59e2fbe0ecb6660809d9cc5f3976b077be3b8"
6934-
integrity sha512-5SEZU4J7pxZgSkv7FP1zY8i2TIAOooNZ1e/OGtxIEv6GltpoiXUqWvLy89+a10qYTB1N5Ifkuw9lqQkN9sscvA==
6945+
tailwindcss@^3.4.1:
6946+
version "3.4.1"
6947+
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.4.1.tgz#f512ca5d1dd4c9503c7d3d28a968f1ad8f5c839d"
6948+
integrity sha512-qAYmXRfk3ENzuPBakNK0SRrUDipP8NQnEY6772uDhflcQz5EhRdD7JNZxyrFHVQNCwULPBn6FNPp9brpO7ctcA==
69356949
dependencies:
69366950
"@alloc/quick-lru" "^5.2.0"
69376951
arg "^5.0.2"

0 commit comments

Comments
 (0)