📈 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
updated docs
Blue Mouseb6f7980a3e0c
diff --git a/src/pages/Docs/Docs.jsx b/src/pages/Docs/Docs.jsxindex dc55de333..dc11baa60 100644--- a/src/pages/Docs/Docs.jsx+++ b/src/pages/Docs/Docs.jsx@@ -184,11 +184,10 @@ const Docs = () => {<hr className='mt-10 mb-4' /><div className='text-lg text-gray-900 dark:text-gray-50 tracking-tight'>- <i>Last updated: December 11, 2021. (v1.3.0)</i><br />+ <i>Last updated: February 9, 2022.</i><br /><div>- - Added ability to specify the - <a className='hover:underline text-gray-700 dark:text-gray-300' href='#docs-init'>custom API URL</a>- parameter.+ - Updated custom events validation rules.<br/>+ Now custom events has to start with an English letter and cannot contain dashes in it anymore.</div></div></div>diff --git a/src/pages/Docs/examples.js b/src/pages/Docs/examples.jsindex 7f2a894f5..ba5d8a79c 100644--- a/src/pages/Docs/examples.js+++ b/src/pages/Docs/examples.js@@ -27,9 +27,10 @@ export const trackPageView = `swetrix.trackViews()`export const track = `swetrix.track({// The event identifier you want to track.// This has to be a string, which:- // - only contains English letters (a-Z A-Z), numbers (0-9), underscores (_),- // dashes (-) and dots (.).+ // - only contains English letters (a-Z A-Z), numbers (0-9),+ // underscores (_) and dots (.).// - is fewer than 64 characters.+ // - starts with an English letter.ev: 'YOUR_EVENT_NAME',// If true, only 1 event with the same ID will be saved per user session.