Skip to content

Commit

Permalink
Merge pull request #98 from kogepanh/main
Browse files Browse the repository at this point in the history
#97 add g-analytics
  • Loading branch information
kogepanh authored Jul 30, 2021
2 parents 20ff307 + 15c4e3b commit 524663d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ export default {
content: 'summary_large_image',
},
],
script: [
{
async: true,
src: 'https://www.googletagmanager.com/gtag/js?id=G-NDLRBPBQJZ',
},
{
innerHTML: `window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-NDLRBPBQJZ');`,
},
],
__dangerouslyDisableSanitizers: ['script'],
link: [
{
rel: 'stylesheet',
Expand Down

0 comments on commit 524663d

Please sign in to comment.