📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Added trackViews 'ignore' param docs
Blue Mouse78f06e7fcafb
diff --git a/src/pages/Docs/Docs.jsx b/src/pages/Docs/Docs.jsxindex 9997ba202..bdd22b5e0 100644--- a/src/pages/Docs/Docs.jsx+++ b/src/pages/Docs/Docs.jsx@@ -184,19 +184,14 @@ const Docs = () => {<hr className='mt-10 mb-4' /><p className='text-lg text-gray-900 tracking-tight'>- <i>Last updated: August 19, 2021.</i><br />+ <i>Last updated: October 15, 2021.</i><br /><div>- Added - <span className='text-gray-700'>unique</span>+ <span className='text-gray-700'>ignore</span> param to <a className='hover:underline text-gray-700' href='#docs-tv'>trackViews</a> method.</div>- <div>- - Added documentation for using swetrix.js as an - <a className='hover:underline text-gray-700' href='#docs-npm'>NPM Package</a>- .- </div></p></div></div>diff --git a/src/pages/Docs/examples.js b/src/pages/Docs/examples.jsindex b5560d8aa..51d8e2d8e 100644--- a/src/pages/Docs/examples.js+++ b/src/pages/Docs/examples.js@@ -1,3 +1,5 @@+/* eslint-disable no-useless-escape */+export const umdBuildExample = `<!-- Put this at the end of the <head> tag --><script src="https://cdn.jsdelivr.net/gh/Swetrix/swetrix-js@main/dist/swetrix.js" defer></script>@@ -63,4 +65,10 @@ export const trackPVAPI = `swetrix.trackViews({// If true, only unique events will be saved.// This param is useful when tracking single-page landing websites.unique: false,++ // A list of regular expressions or string pathes to ignore+ // for example: ['/dashboard', /^\/projects/i] setting will force+ // script to ignore all pathes which start with /projects or equal to /dashboard+ // Please pay attention, that the pathes always start with /+ ignore: [],})`