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!

Use v1 logging endpoint

Blue Mouse45e91489f4a4
diff --git a/web/app/modals/TrackingSnippet.tsx b/web/app/modals/TrackingSnippet.tsx
index 8b5eed5d2..5e1344380 100644
--- a/web/app/modals/TrackingSnippet.tsx
+++ b/web/app/modals/TrackingSnippet.tsx
@@ -21,7 +21,7 @@ export const getSnippet = (pid: string) => {
<script>
document.addEventListener('DOMContentLoaded', function() {
swetrix.init('${pid}', {
- apiURL: '${API_URL_WITHOUT_TRAILING_SLASH}/log',
+ apiURL: '${API_URL_WITHOUT_TRAILING_SLASH}/v1/log',
})
swetrix.trackViews()
})