瀏覽代碼

Merge branch 'pre' of DeNet/de-net-official into master

zhangwei 2 年之前
父節點
當前提交
a1e6b24470
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      nuxt.config.js

+ 15 - 0
nuxt.config.js

@@ -9,6 +9,21 @@ export default {
 		},
 		},
 		meta: [{ charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { hid: 'description', name: 'description', content: '' }, { name: 'format-detection', content: 'telephone=no' }],
 		meta: [{ charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { hid: 'description', name: 'description', content: '' }, { name: 'format-detection', content: 'telephone=no' }],
 		link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
 		link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
+		script: [
+			{
+				src: 'https://www.googletagmanager.com/gtag/js?id=G-S376V42WBS',
+				async: true,
+			},
+			{
+				type: 'text/javascript',
+				charset: 'utf-8',
+				innerHTML: `window.dataLayer = window.dataLayer || [];
+			  function gtag() { dataLayer.push(arguments); }
+			  gtag('js', new Date());
+			  gtag('config', 'G-S376V42WBS');`,
+			},
+		],
+		__dangerouslyDisableSanitizers: ['script'],
 	},
 	},
 
 
 	// Global CSS: https://go.nuxtjs.dev/config-css
 	// Global CSS: https://go.nuxtjs.dev/config-css