1(function () { 2 // only enable on prod 3 if (!window.location.host.endsWith('simplelogin.io')) { 4 console.log("Analytics should only be enabled in prod"); 5 return; 6 } 7 8 if (store.get('analytics-ignore') === 't') { 9 console.log("Analytics is disabled"); 10 return; 11 } 12 13 console.log("init Analytics"); 14 15 // Add Plausible script 16 // <script async defer data-domain="app.simplelogin.io,everything.simplelogin.com" src="/p.outbound.js"></script> 17 var plausibleScript = document.createElement('script'); 18 plausibleScript.defer = 1; 19 plausibleScript.async = 1; 20 plausibleScript.dataset.api = "/p/api/event"; 21 plausibleScript.dataset.domain = "app.simplelogin.io,everything.simplelogin.com"; 22 plausibleScript.src = '/p.outbound.js'; 23 24 var ins = document.getElementsByTagName('script')[0]; 25 ins.parentNode.insertBefore(plausibleScript, ins); 26 27 // allow custom event 28 window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) } 29 30})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.