Update: [project] 移除 @nuxt/gtm 套件,並加上 package-lock.json
| | |
| | | '@nuxtjs/axios', |
| | | '@nuxtjs/style-resources', |
| | | ['@nuxtjs/dotenv', { filename: '.env.' + process.env.ENV }], |
| | | // '@nuxtjs/gtm', |
| | | ], |
| | | |
| | | // gtm: { |
| | | // enabled: true, /* see below */ |
| | | // debug: false, |
| | | // |
| | | // id: process.env.ENV === 'prod' |
| | | // ? 'GTM-TFKVGTH' |
| | | // : process.env.ENV === 'uat' ? 'GTM-W2XMVJZT' : 'GTM_XXXXXXX', |
| | | // layer: 'dataLayer', |
| | | // variables: {}, |
| | | // |
| | | // pageTracking: true, |
| | | // pageViewEventName: 'nuxtRoute', |
| | | // |
| | | // autoInit: true, |
| | | // respectDoNotTrack: true, |
| | | // |
| | | // scriptId: 'gtm-script', |
| | | // scriptDefer: false, |
| | | // scriptURL: 'https://www.googletagmanager.com/gtm.js', |
| | | // crossOrigin: false, |
| | | // |
| | | // noscript: true, |
| | | // noscriptId: 'gtm-noscript', |
| | | // noscriptURL: 'https://www.googletagmanager.com/ns.html' |
| | | // }, |
| | | // |
| | | // publicRuntimeConfig: { |
| | | // gtm: { |
| | | // id: process.env.GOOGLE_TAG_MANAGER_ID |
| | | // } |
| | | // }, |
| | | |
| | | // Build Configuration: https://go.nuxtjs.dev/config-build |
| | | build: { |
| | |
| | | }, |
| | | "dependencies": { |
| | | "@nuxtjs/axios": "^5.13.6", |
| | | "@nuxtjs/gtm": "^2.4.0", |
| | | "@nuxtjs/style-resources": "^1.2.1", |
| | | "@types/swiper": "^5.4.3", |
| | | "core-js": "^3.18.3", |