Skip to content

Commit

Permalink
feat(docs): added google analytics scripts to docs site
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdowdle committed Jun 26, 2023
1 parent 27735b9 commit e406367
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<template>
<div>
<NuxtPage />
</div>
</template>

<script setup lang="ts">
useHead({
script: [
{
tagPosition: 'bodyClose',
src: 'https://www.googletagmanager.com/gtag/js?id=G-JHL6XDTXK0',
async: true
},
{
tagPosition: 'bodyClose',
innerHTML: `window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-JHL6XDTXK0');`
}
]
})
</script>

0 comments on commit e406367

Please sign in to comment.