Update plausible analytics
All checks were successful
Build release image / build (push) Successful in 3m4s

This commit is contained in:
yehor
2025-11-27 22:11:57 +02:00
parent b41276e226
commit 745296a520
2 changed files with 12 additions and 3 deletions

View File

@@ -44,12 +44,15 @@ const config = {
scripts: [ scripts: [
{ {
src: 'https://plausible.nicelycomposed.codes/js/script.outbound-links.js', src: 'https://plausible.nicelycomposed.codes/js/pa-MT46IhokfYZrpmWFXgQq-.js',
defer: 'true', async: true,
'data-domain': 'yevi.org',
}, },
], ],
clientModules: [
require.resolve('./src/components/plausible-analytics/init.js'),
],
presets: [ presets: [
[ [
'classic', 'classic',

View File

@@ -0,0 +1,6 @@
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
if (ExecutionEnvironment.canUseDOM) {
window.plausible = window.plausible || function () { (plausible.q = plausible.q || []).push(arguments) }, plausible.init = plausible.init || function (i) { plausible.o = i || {} };
plausible.init();
}