📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
added swetrix tracking
Blue Mouse8f03887d7400
diff --git a/docusaurus.config.js b/docusaurus.config.jsindex eeddfee8d..8309b958e 100644--- a/docusaurus.config.js+++ b/docusaurus.config.js@@ -12,6 +12,14 @@ module.exports = {organizationName: 'swetrix', // github org nameprojectName: 'docs', // github repo nametrailingSlash: false,+ scripts: [+ {+ src: 'https://swetrix.org/swetrix.js', defer: true,+ },+ {+ src: 'js/setupswetrix.js', defer: true,+ }+ ],themeConfig: {colorMode: {respectPrefersColorScheme: true,diff --git a/static/js/setupswetrix.js b/static/js/setupswetrix.jsnew file mode 100644index 000000000..782d069c3--- /dev/null+++ b/static/js/setupswetrix.js@@ -0,0 +1,4 @@+document.addEventListener('DOMContentLoaded', function () {+ swetrix.init('gdXQqPERkpMA')+ swetrix.trackViews()+})