Skip to content

Commit

Permalink
use /p.outbound.js and /p/api/event on app.sl.io (#1366)
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenkims authored Oct 24, 2022
1 parent 300f8c9 commit 87047b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/js/an.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
console.log("init Analytics");

// Add Plausible script
// <script async defer data-domain="app.simplelogin.io,everything.simplelogin.com" src="https://simplelogin.io/p.outbound.js"></script>
// <script async defer data-domain="app.simplelogin.io,everything.simplelogin.com" src="/p.outbound.js"></script>
var plausibleScript = document.createElement('script');
plausibleScript.defer = 1;
plausibleScript.async = 1;
plausibleScript.dataset.api = "https://simplelogin.io/p/api/event";
plausibleScript.dataset.api = "/p/api/event";
plausibleScript.dataset.domain = "app.simplelogin.io,everything.simplelogin.com";
plausibleScript.src = 'https://simplelogin.io/p.outbound.js';
plausibleScript.src = '/p.outbound.js';

var ins = document.getElementsByTagName('script')[0];
ins.parentNode.insertBefore(plausibleScript, ins);
Expand Down

0 comments on commit 87047b3

Please sign in to comment.