Everything you need to understand your website traffic without compromising user privacy
No cookies, no third-party trackers. GDPR compliant analytics that respects user privacy while delivering actionable insights.
Built with Laravel for performance. Sub-50ms response times and real-time data processing for instant insights.
Track multiple websites from a single dashboard. Perfect for agencies and businesses with diverse web properties.
Enterprise-grade security with JWT authentication. Your data stays protected with industry-standard encryption.
RESTful API with comprehensive documentation. Easy integration with any platform or framework you're using.
Get instant insights with real-time tracking. Monitor page views, clicks, sessions, and geolocation data as it happens.
Track analytics across all your domains from one powerful dashboard
This is a plug-and-play analytics tracking system that works for any website. No complex setup. Just copy-paste and start tracking page views, clicks, and session time with detailed analytics.
api_key
Make a POST request to register your site.
POST https://analytics.essentialnews.ng/api/sites
curl -X POST https://analytics.essentialnews.ng/api/sites \
-H "Content-Type: application/json" \
-d '{
"domain": "https://yourwebsite.com",
"name": "My Website"
}'
{
"site": {
"api_key": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
},
"tracking_code": "<script src=\"https://analytics.essentialnews.ng/api/process.js?api_key=xxxxxxxx\"></script>"
}
Paste the script tag just before </body> or in the <head> of your site.
<!-- Add this to all your pages -->
<script src="https://analytics.essentialnews.ng/api/process.js?api_key=xxxxxxxx"></script>
Pro Tip: If your site uses a layout template (e.g. Laravel Blade, React layout, etc.), paste it once in the layout to apply everywhere.
| Event | Trigger | Extra Info Sent |
|---|---|---|
| pageview | On page load | URL, browser, IP |
| click | On any click | element_id (if exists) |
| session_duration | On unload | Seconds spent on page |
No extra setup. Just the script = full tracking. 🚀
Want to track something manually? Use:
window.tracker?.track('click', { element_id: 'my-button' });
window.tracker?.track('pageview', { session_duration: 90 });
To get a full report of views, clicks, top pages, and visitors:
GET https://analytics.essentialnews.ng/api/analytics?api_key=xxxxxxxx
Use this data to build a dashboard or show insights.
Open DevTools in your browser:
/api/track| Issue | Fix |
|---|---|
| Invalid API key | Ensure your script tag has the correct key |
| Validation failed | Missing required fields or wrong format |
| page_url mismatch | Only pages from the registered domain are accepted |
/analytics endpoint
Made with ❤️ using Laravel, JavaScript, and common sense.
Need help? Open an issue or contact the developer - webmasterjdd@gmail.com.