From 8c73ff3c165314a1be5f00bc0b6df4be043fe703 Mon Sep 17 00:00:00 2001 From: Son Nguyen Kim Date: Mon, 24 Oct 2022 16:44:01 +0200 Subject: [PATCH] plausible: use https://simplelogin.io/p.outbound.js (#1364) --- static/js/an.js | 5 +++-- templates/base.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/static/js/an.js b/static/js/an.js index 90e7ac8d..18262cd8 100644 --- a/static/js/an.js +++ b/static/js/an.js @@ -13,12 +13,13 @@ console.log("init Analytics"); // Add Plausible script - // + // var plausibleScript = document.createElement('script'); plausibleScript.defer = 1; plausibleScript.async = 1; + plausibleScript.dataset.api = "https://simplelogin.io/p/api/event"; plausibleScript.dataset.domain = "app.simplelogin.io,everything.simplelogin.com"; - plausibleScript.src = 'https://plausible.simplelogin.io/js/index.js'; + plausibleScript.src = 'https://simplelogin.io/p.outbound.js'; var ins = document.getElementsByTagName('script')[0]; ins.parentNode.insertBefore(plausibleScript, ins); diff --git a/templates/base.html b/templates/base.html index 74e2458c..6c69538e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -181,7 +181,7 @@ - + {% block script %}{% endblock %}