mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-22 20:28:45 +08:00
Feature - Google Analytics - Addressing PR Comments.
This commit is contained in:
0
src/languages/en.js
Normal file
0
src/languages/en.js
Normal 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>
|
||||
|
||||
|
Reference in New Issue
Block a user