Skip to content

📈 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!

added swetrix tracking

Blue Mouse8f03887d7400
diff --git a/docusaurus.config.js b/docusaurus.config.js
index eeddfee8d..8309b958e 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -12,6 +12,14 @@ module.exports = {
organizationName: 'swetrix', // github org name
projectName: 'docs', // github repo name
trailingSlash: 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.js
new file mode 100644
index 000000000..782d069c3
--- /dev/null
+++ b/static/js/setupswetrix.js
@@ -0,0 +1,4 @@
+document.addEventListener('DOMContentLoaded', function () {
+ swetrix.init('gdXQqPERkpMA')
+ swetrix.trackViews()
+})