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: [
{
src: 'https://plausible.nicelycomposed.codes/js/script.outbound-links.js',
defer: 'true',
'data-domain': 'yevi.org',
src: 'https://plausible.nicelycomposed.codes/js/pa-MT46IhokfYZrpmWFXgQq-.js',
async: true,
},
],
clientModules: [
require.resolve('./src/components/plausible-analytics/init.js'),
],
presets: [
[
'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();
}