Browse Source

feat: extends plausible analytics to support self hosted installations (#4824)

cybrwshl 3 years ago
parent
commit
802dbd96c3

+ 1 - 1
server/modules/analytics/plausible/code.yml

@@ -1,2 +1,2 @@
 head: |
-  <script defer data-domain="{{domain}}" src="https://plausible.io/js/plausible.js"></script>
+  <script defer data-domain="{{domain}}" src="{{plausibleJsSrc}}"></script>

+ 6 - 0
server/modules/analytics/plausible/definition.yml

@@ -11,3 +11,9 @@ props:
     title: Domain
     hint: The value of the data-domain property
     order: 1
+  plausibleJsSrc:
+    type: String
+    default: https://plausible.io/js/plausible.js
+    title: Plausible JS Script source
+    hint: The URL of Plausbile Script (only needed when using a self hosted installation)
+    order: 2