Skip to content

Commit 6e53676

Browse files
committed
ga4
1 parent b11eff1 commit 6e53676

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

website/docs/.vuepress/config.js

+16-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ module.exports = {
1919
['link', { rel: 'icon', href: `/favicon.ico` }],
2020
['link', { rel: "apple-touch-icon", sizes: "180x180", href: "https://jbaysolutions.github.io/vue-grid-layout/assets/favicon/apple-touch-icon.png"}],
2121
// ['script', { src: 'https://cdn.jsdelivr.net/npm/vue-grid-layout@2.3.9/dist/vue-grid-layout.umd.min.js' }]
22+
[
23+
'script',
24+
{
25+
async: true,
26+
src: 'https://www.googletagmanager.com/gtag/js?id=G-9JZJJHRV8R',
27+
},
28+
],
29+
[
30+
'script',
31+
{},
32+
[
33+
"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-9JZJJHRV8R');",
34+
],
35+
],
2236
],
2337
port: 8081,
2438
theme: '@vuepress/vue',
@@ -127,9 +141,9 @@ module.exports = {
127141
},
128142
plugins: [
129143
'@vuepress/back-to-top',
130-
['@vuepress/google-analytics', {
144+
/*['@vuepress/google-analytics', {
131145
ga: 'UA-37288388-24' // UA-00000000-0
132-
}],
146+
}],*/
133147
['seo', {
134148
title: $page => `${$page.title} — Vue Grid Layout`,
135149
// image: () => 'https://jbaysolutions.github.io/vue-grid-layout/assets/img/og.jpg',

0 commit comments

Comments
 (0)