Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

Commit

Permalink
Merge pull request #21 from Daaiki/feature/#19_add_google_analytics
Browse files Browse the repository at this point in the history
feat: ✨ add g-tag
  • Loading branch information
k1tikurisu authored Feb 19, 2021
2 parents 98edfdc + d95c0ac commit f5d9de7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
11 changes: 11 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { NuxtConfig } from '@nuxt/types'
require('dotenv').config()

const config: NuxtConfig = {
// Target: https://go.nuxtjs.dev/config-target
Expand Down Expand Up @@ -98,6 +99,16 @@ const config: NuxtConfig = {
'@nuxtjs/axios',
// https://go.nuxtjs.dev/content
'@nuxt/content',
// https://github.com/nuxt-community/dotenv-module
'@nuxtjs/dotenv',
// https://github.com/nuxt-community/google-gtag
[
'@nuxtjs/google-gtag',
{
id: process.env.GOOGLE_ANALYTICS_ID,
debug: true
}
]
],

// Axios module configuration: https://go.nuxtjs.dev/config-axios
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@
"devDependencies": {
"@nuxt/types": "^2.14.12",
"@nuxt/typescript-build": "^2.0.4",
"@nuxtjs/dotenv": "^1.4.1",
"@nuxtjs/eslint-config-typescript": "^5.0.0",
"@nuxtjs/eslint-module": "^3.0.2",
"@nuxtjs/google-fonts": "^1.2.0",
"@nuxtjs/google-gtag": "^1.0.4",
"@nuxtjs/stylelint-module": "^4.0.0",
"@nuxtjs/tailwindcss": "^3.4.2",
"@vue/test-utils": "^1.1.2",
Expand Down
20 changes: 19 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1733,6 +1733,14 @@
consola "^2.15.0"
defu "^3.2.2"

"@nuxtjs/dotenv@^1.4.1":
version "1.4.1"
resolved "https://registry.yarnpkg.com/@nuxtjs/dotenv/-/dotenv-1.4.1.tgz#dd5abb98e22cc7ae27139d3aa606151034293128"
integrity sha512-DpdObsvRwC8d89I9mzz6pBg6e/PEXHazDM57DOI1mmML2ZjHfQ/DvkjlSzUL7T+TnW3b/a4Ks5wQx08DqFBmeQ==
dependencies:
consola "^2.10.1"
dotenv "^8.1.0"

"@nuxtjs/eslint-config-typescript@^5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@nuxtjs/eslint-config-typescript/-/eslint-config-typescript-5.0.0.tgz#060c1402e559b1df78c8c19b2f5a873eac53cab2"
Expand Down Expand Up @@ -1772,6 +1780,11 @@
consola "^2.15.0"
google-fonts-helper "^1.1.1"

"@nuxtjs/google-gtag@^1.0.4":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@nuxtjs/google-gtag/-/google-gtag-1.0.4.tgz#57562d8ec4c7694573e77edf72097da4a34b0d68"
integrity sha512-0Xgbx1uQ9pKeV2QdU9xoxJVdgH66qyGQJ0l8pzVxz5X476qvJunj6fbcjWk0gT+MEX/VOAhfT/zw0Z1z9q9oNg==

"@nuxtjs/proxy@^2.1.0":
version "2.1.0"
resolved "https://registry.yarnpkg.com/@nuxtjs/proxy/-/proxy-2.1.0.tgz#fa7715a11d237fa1273503c4e9e137dd1bf5575b"
Expand Down Expand Up @@ -4329,6 +4342,11 @@ consola@^2.10.0, consola@^2.15.0, consola@^2.6.0, consola@^2.9.0:
resolved "https://registry.yarnpkg.com/consola/-/consola-2.15.0.tgz#40fc4eefa4d2f8ef2e2806147f056ea207fcc0e9"
integrity sha512-vlcSGgdYS26mPf7qNi+dCisbhiyDnrN1zaRbw3CSuc2wGOMEGGPsp46PdRG5gqXwgtJfjxDkxRNAgRPr1B77vQ==

consola@^2.10.1:
version "2.15.3"
resolved "https://registry.yarnpkg.com/consola/-/consola-2.15.3.tgz#2e11f98d6a4be71ff72e0bdf07bd23e12cb61550"
integrity sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==

consola@^2.12.1:
version "2.15.2"
resolved "https://registry.yarnpkg.com/consola/-/consola-2.15.2.tgz#c858f1fe36ab97d256c6ebc791905ee923495602"
Expand Down Expand Up @@ -5428,7 +5446,7 @@ dot-prop@^5.1.0, dot-prop@^5.2.0:
dependencies:
is-obj "^2.0.0"

dotenv@^8.2.0:
dotenv@^8.1.0, dotenv@^8.2.0:
version "8.2.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a"
integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==
Expand Down

1 comment on commit f5d9de7

@vercel
Copy link

@vercel vercel bot commented on f5d9de7 Feb 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

Please sign in to comment.