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!

fixed docs example

Blue Mouse43b288d0f071
diff --git a/src/pages/Docs/examples.js b/src/pages/Docs/examples.js
index 9392efa25..d0bf6ad95 100644
--- a/src/pages/Docs/examples.js
+++ b/src/pages/Docs/examples.js
@@ -75,11 +75,11 @@ export const trackPVAPI = `swetrix.trackViews({
// Do not send Heartbeat requests to the server.
// By setting this to true you will not be able to see the realtime amount of
// users on your website.
- noHeartbeat?: boolean
+ noHeartbeat: false,
// Send Heartbeat requests when the website tab is not active in the browser.
// Setting this to true means that users who opened your website in inactive
// browser tab or window will not be counted into users realtime statistics.
// Setting this to true is usually useful for services like Spotify or Youtube
- heartbeatOnBackground?: boolean
+ heartbeatOnBackground: false,
})`