Jerni Analytics Documentation
Everything you need to implement and use Jerni Analytics on your website. Simple, privacy-first tracking that gives you powerful insights.
Quick Start
Get Jerni Analytics running on your website in under 5 minutes
1. Add the Tracking Script
Add this script to your website's <head> section:
<script src="https://yourdomain.com/embed.js" data-tracking-id="your-tracking-id" defer></script>
2. Get Your Tracking ID
Create a project in your Jerni dashboard to get your unique tracking ID. This ID connects your website data to your analytics dashboard.
Example tracking ID: jerni_abc123def456
3. Verify Installation
Visit your website and check your Jerni dashboard. You should see page views appearing within a few minutes.
✅ Page views are tracked automatically
✅ Sessions are created with 30-minute expiration
✅ No cookie consent required
What Jerni Tracks
Comprehensive analytics without invading user privacy
Page Views
Automatic tracking of every page visit with URL, referrer, user agent, and timestamp.
User Journeys
Track how users navigate through your site with detailed path analysis and conversion funnels.
Drop-off Analysis
Identify exactly where and why users leave your site with detailed drop-off tracking.
Custom Events
Track specific user actions like button clicks, form submissions, and conversions.
Implementation Guide
Detailed instructions for advanced features and customization
Custom Events
Track specific user interactions beyond page views. Custom events help you understand user behavior and conversion patterns.
Basic Custom Event
// Track a button click
window.jerni.track('button_click', {
button_id: 'signup_button',
page: 'homepage'
});
Form Submission Tracking
// Track form submissions
document.getElementById('contact-form').addEventListener('submit', function() {
window.jerni.track('form_submit', {
form_type: 'contact',
page: window.location.pathname
});
});
E-commerce Tracking
// Track purchases
window.jerni.track('purchase', {
order_id: '12345',
value: 99.99,
currency: 'USD',
items: ['product-a', 'product-b']
});
Goals and Conversions
Set up conversion goals to track important user actions and measure your site's effectiveness.
Setting Up Goals
Goals are user actions that indicate successful engagement or conversion. Track these actions to measure your site's effectiveness:
Form Submissions
- Contact form submissions
- Newsletter sign-ups
- Lead generation forms
- Support ticket submissions
Button Clicks
- Sign-up button clicks
- Purchase button clicks
- Download button clicks
- Demo request clicks
Page Actions
- Reaching thank you pages
- Completing checkout flows
- Viewing key content pages
- Spending time on important pages
Tip: Use custom events to track specific user actions, then set up goals in your dashboard to monitor conversion rates and optimize your user experience.
URL Tags
Organize your pages with custom tags for better analysis and reporting.
Creating URL Tags
Tag your pages in the dashboard to group related content and understand user behavior patterns:
Signpost Pages
Pages designed to move users to a destination or another page. These are intermediate pages in your user journey.
- Landing pages: /, /about, /pricing
- Navigation pages: /features, /docs, /api
- Funnel pages: /signup, /contact, /demo
Destination Pages
Pages you don't mind people dropping off from as they've achieved a personal goal. These are successful conversion endpoints.
- Thank you pages: /thank-you, /confirmation
- Completion pages: /signup-complete, /purchase-complete
- Goal pages: /download, /contact-sent
API Reference
Complete reference for the Jerni Analytics JavaScript API
Available Methods
window.jerni.track(eventName, data)
Track a custom event with optional data
window.jerni.getSessionId()
Get the current session ID
Event Data Structure
{
event_name: 'button_click',
event_data: {
button_id: 'signup',
page: '/homepage',
value: 99.99
}
}
Privacy & Compliance
Jerni is built with privacy-first principles
No Personal Data
Jerni never collects personal information like names, emails, or IP addresses. All tracking is anonymous by design.
No Cookies Required
Jerni uses localStorage for session management, eliminating the need for cookie consent banners.
GDPR Compliant
Built to comply with GDPR and other privacy regulations without requiring complex consent management.
Lightweight Script
At just ~1.7KB gzipped, Jerni has minimal impact on your site's performance and SEO.
Ready to Get Started?
Join thousands of websites using Jerni Analytics to understand their users better.