Feature - Google Analytics - Addressing PR Comments.

This commit is contained in:
c
2023-01-10 20:25:45 +00:00
parent 29e24e0de9
commit 99c0b8cb71
5 changed files with 21 additions and 12 deletions

0
src/languages/en.js Normal file
View File

View File

@@ -300,15 +300,6 @@
<component is="style" v-if="config.customCSS" type="text/css">
{{ config.customCSS }}
</component>
<component :is="'script'" v-if="config.googleAnalyticsId" async :src="'https://www.googletagmanager.com/gtag/js?id=' + config.googleAnalyticsId" />
<component :is="'script'" v-if="config.googleAnalyticsId">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ config.googleAnalyticsId }}');
</component>
</div>
</template>