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!

[analytics] Ignoring some pathes to track

Blue Mouse271686aa6ac2
diff --git a/src/index.js b/src/index.js
index 9b01d17b5..5229ee9e7 100644
--- a/src/index.js
+++ b/src/index.js
@@ -16,11 +16,14 @@ import App from './App'
import i18next from './i18next'
import './index.css'
-console.log('%cWelcome, hacker, glad you opened your console, you seem serious about your craft and will go a long way!\nP.S. All the bugs, feature requests can be sent to [email protected]', 'color: #818cf8;background: #1f2937;font-size: 20px;text-shadow: 2px 2px black')
+const SWETRIX_PID = 'STEzHcB1rALV'
-Swetrix.init('STEzHcB1rALV')
+console.log('%cWelcome, hacker, glad you opened your console, you seem serious about your craft and will go a long way!\nP.S. All the bugs, feature requests can be sent to [email protected]', 'color: #818cf8;background: #1f2937;font-size: 20px;text-shadow: 2px 2px black')
-Swetrix.trackViews()
+Swetrix.init(SWETRIX_PID)
+Swetrix.trackViews({
+ ignore: [/^\/projects/i, /^\/verify/i],
+})
Sentry.init({
dsn: 'https://[email protected]/5865898',