Add Plausible support

This commit is contained in:
Celestora 2021-09-20 15:59:55 +03:00
parent 07b8de9ea1
commit ab6824b223
2 changed files with 12 additions and 0 deletions

View file

@ -264,6 +264,10 @@
<script n:if="OPENVK_ROOT_CONF['openvk']['preferences']['bellsAndWhistles']['fartscroll']"> <script n:if="OPENVK_ROOT_CONF['openvk']['preferences']['bellsAndWhistles']['fartscroll']">
fartscroll(400); fartscroll(400);
</script> </script>
<script n:if="OPENVK_ROOT_CONF['openvk']['telemetry']['plausible']['enable']"
async defer data-domain="{OPENVK_ROOT_CONF['openvk']['telemetry']['plausible']['domain']}"
src="{OPENVK_ROOT_CONF['openvk']['telemetry']['plausible']['server']}js/plausible.js"></script>
</body> </body>
</html> </html>

View file

@ -3,6 +3,7 @@ openvk:
appearance: appearance:
name: "OpenVK" name: "OpenVK"
motd: "Yet another OpenVK instance" motd: "Yet another OpenVK instance"
preferences: preferences:
femaleGenderPriority: true femaleGenderPriority: true
uploads: uploads:
@ -47,6 +48,13 @@ openvk:
bellsAndWhistles: bellsAndWhistles:
fartscroll: false fartscroll: false
testLabel: false testLabel: false
telemetry:
plausible:
enable: false
domain: ""
server: ""
credentials: credentials:
smsc: smsc:
enable: false enable: false