๐ŸŽฏ Trace Analytics

Your lightweight web tracking system is up and running!

๐Ÿ“‹ Quick Start

Embed this script on your website:

๐Ÿš€ Smart Auto-Detection (Recommended)

<script> // Automatically use trace.js for localhost, trace.min.js for production const script = document.createElement('script'); script.src = window.location.hostname === 'localhost' ? '/latest/trace.js' : '/latest/trace.min.js'; document.head.appendChild(script); </script>

Smart: Automatically chooses the right version

๐ŸŽฏ Manual Selection

Development:<script src="/latest/trace.js"></script>

Readable, debuggable

Production:<script src="/latest/trace.min.js"></script>

51.6% smaller, faster

๐Ÿ’ก Pro Tip: Replace with your full domain URL when deploying to production

๐Ÿงช Test & Analyze

Test the tracking and visualize the data:

๐Ÿงช Test Page๐Ÿ”ฅ Click Heatmap๐Ÿ“Š Data Viewer

๐Ÿ“Š What Gets Tracked

๐Ÿ”ง API Endpoints

๐Ÿ’ก Pro Tip: Open your browser's DevTools โ†’ Network tab when testing to see the tracking requests.