Add google analytics

This commit is contained in:
khatabwedaa 2021-02-15 11:09:00 +02:00
parent 4273fd2b4f
commit d1de2b3428
2 changed files with 7 additions and 1 deletions

View file

@ -5,6 +5,10 @@ export default {
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
googleAnalytics: {
id: "UA-167213766-1"
},
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: 'Meraki UI Tailwindcss Components',
@ -52,7 +56,8 @@ export default {
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
'@nuxtjs/tailwindcss'
'@nuxtjs/tailwindcss',
'@nuxtjs/google-analytics'
],
// Modules: https://go.nuxtjs.dev/config-modules

View file

@ -9,6 +9,7 @@
"generate": "nuxt generate"
},
"dependencies": {
"@nuxtjs/google-analytics": "^2.4.0",
"core-js": "^3.8.3",
"nuxt": "^2.14.12"
},