Browse Source

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

pull/4941/head
cybrwshl 2 years ago
committed by GitHub
parent
commit
802dbd96c3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions
  1. 2
      server/modules/analytics/plausible/code.yml
  2. 6
      server/modules/analytics/plausible/definition.yml

2
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
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
Loading…
Cancel
Save