Skip to content

Commit

Permalink
[vuepress] google analytics 4 적용 방법으로 config를 수정한다
Browse files Browse the repository at this point in the history
  • Loading branch information
heumsi committed Jan 26, 2022
1 parent 83d32ed commit ec986b6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ module.exports = {
['meta', { name: 'theme-color', content: '#3eaf7c' }],
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }],
['meta', { name: 'google-site-verification', content: 'wjX_mSoZBgO9SZMvjr96yOjo6n3_7pS8xNdmzDl1ESw'}],
['meta', { name: 'google-site-verification', content: 'wjX_mSoZBgO9SZMvjr96yOjo6n3_7pS8xNdmzDl1ESw' }],
[
"script",
{
async: true,
src: "https://www.googletagmanager.com/gtag/js?id=G-SNPCYHY4R2",
},
],
["script", {}, ["window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-SNPCYHY4R2');"]],
],

/**
Expand Down Expand Up @@ -72,6 +80,5 @@ module.exports = {
'@vuepress/plugin-medium-zoom',
["sitemap", { hostname: "https://soogoonsoogoonpythonists.github.io/sqlalchemy-for-pythonist/" }],
["@vuepress/last-updated"],
['@vuepress/google-analytics', {'ga': 'G-SNPCYHY4R2'}],
]
}

0 comments on commit ec986b6

Please sign in to comment.