feat: analytics modules backend + admin panel
This commit is contained in:
23
server/modules/analytics/google/definition.yml
Normal file
23
server/modules/analytics/google/definition.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
key: google
|
||||
title: Google Analytics
|
||||
description: Google specializes in Internet-related services and products, which include online advertising technologies, search engine, cloud computing, software, and hardware.
|
||||
author: requarks.io
|
||||
logo: https://static.requarks.io/logo/google-analytics.svg
|
||||
website: https://analytics.google.com/
|
||||
isAvailable: true
|
||||
props:
|
||||
propertyTrackingId:
|
||||
type: String
|
||||
title: Property Tracking ID
|
||||
hint: UA-XXXXXXX-X
|
||||
order: 1
|
||||
codeHead: |
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{propertyTrackingId}}"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', '{{propertyTrackingId}}');
|
||||
</script>
|
Reference in New Issue
Block a user