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!

updated docs

Blue Mouse123670761c3a
diff --git a/public/locales/en.json b/public/locales/en.json
index 9059d2dd8..0e787a624 100644
--- a/public/locales/en.json
+++ b/public/locales/en.json
@@ -431,7 +431,7 @@
"pg": "the page user currently views (e.g. /hello)."
}
},
- "tvReturn": "The trackViews function returns an object with some methods allowing you to alter the behaviour of page tracking.",
+ "tvReturn": "The trackViews function returns a Promise with an object with some methods allowing you to alter the behaviour of page tracking.",
"contents": "Contents"
},
"notFoundPage": {
diff --git a/src/pages/Docs/Docs.jsx b/src/pages/Docs/Docs.jsx
index af7e3e5b1..e4a256a23 100644
--- a/src/pages/Docs/Docs.jsx
+++ b/src/pages/Docs/Docs.jsx
@@ -264,10 +264,21 @@ const Docs = () => {
<hr className='mt-10 mb-4 border-gray-200 dark:border-gray-600' />
<div className='text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
- <i>Last updated: September 6, 2022.</i><br />
+ <i>Last updated: December 31, 2022.</i><br />
<div>
- - Added Vue, Java SDK and SvelteKit&nbsp;
- <a className='hover:underline text-gray-700 dark:text-gray-300' href='#docs-int'>integration instructions.</a>
+ <br />
+ - The
+ {' '}
+ <a className='hover:underline text-gray-700 dark:text-gray-300' href='#docs-tv'>trackViews</a>
+ {' '}
+ method is now asynchronous and returns a promise. The
+ {' '}
+ <a className='hover:underline text-gray-700 dark:text-gray-300' href='#docs-tv'>trackViews</a>
+ {' '}
+ starts working after the load event fires. It is required for the performance stats to be collected correctly.
+
+ <br />
+ - Now the tracking scripts collects performance stats (like DNS resolution times, TTFB, DOM Loading timing and so on).
</div>
</div>
</div>