Ver código fonte

Merge branch 'master' into dev_1.1.7_by_nft

nieyuge 2 anos atrás
pai
commit
5b6bceb5d7
1 arquivos alterados com 15 adições e 0 exclusões
  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' }],
 		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