Quickstart
Get up and running with JustAnalytics in under 5 minutes.
Create Your Account#
Sign up at justanalytics.app using Google OAuth or email/password. Once logged in, you'll be taken to your dashboard.
Add Your First Site#
- Navigate to Settings in the left sidebar
- Click Add Site
- Enter your website domain (e.g.,
example.com) - Copy the generated Site ID
Install the Tracking Script#
Add the following snippet to the <head> of every page on your site:
<script
defer
src="https://justanalytics.app/tracker.js"
data-site-id="YOUR_SITE_ID"
></script>
That's it! Within seconds, you'll start seeing real-time data on your dashboard.
Add Error Tracking & Session Replay (Optional)#
Add the monitoring script for JavaScript errors, Web Vitals, session replay, and distributed tracing. All features are enabled by default:
<!-- Everything is ON by default: error tracking, session replay (10% sample),
tracing, and frustration signals -->
<script
defer
src="https://justanalytics.app/monitor.js"
data-site-id="YOUR_SITE_ID"
></script>
To disable specific features, opt out with data attributes:
<script
defer
src="https://justanalytics.app/monitor.js"
data-site-id="YOUR_SITE_ID"
data-replay="false"
data-tracing="false"
></script>
Add Server-Side Tracing (Optional)#
Install the Node.js SDK for distributed tracing, error tracking, and log aggregation:
npm install @justanalyticsapp/node
Initialize it in your application entry point:
import JA from '@justanalyticsapp/node';
JA.init({
siteId: 'YOUR_SITE_ID',
apiKey: 'YOUR_API_KEY',
serviceName: 'my-api-server',
environment: 'production',
});
What's Next?#
- Installation - Detailed installation options for different frameworks
- Core Concepts - Understand how JustAnalytics works
- Web Analytics - Deep dive into the tracking script
- SDKs - Full SDK reference for Node.js and other languages