lexi add gtag

This commit is contained in:
alirezakarari 2023-09-17 17:01:47 +03:30
parent 89c4336641
commit 9848186504
2 changed files with 8 additions and 1 deletions

View File

@ -9,8 +9,14 @@
<script>
export default {
name: 'DefaultLayout',
mounted() {
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-10780603837');
}
}
</script>
<style scoped>
</style>
</style>

View File

@ -20,6 +20,7 @@ export default {
],
script: [
{ src: 'https://unpkg.com/scrollreveal' },
{ src: 'https://www.googletagmanager.com/gtag/js?id=AW-10780603837', body: true },
],
},