Analytics Dashboard Overview
IP analytics transforms raw visitor data into actionable business intelligence. Learn how to create dashboards that reveal visitor patterns, geographic trends, and behavioral insights.
15,847
Total Visitors
+2% this month
89
Countries
Global reach
94.3%
Unique Visitors
Low return rate
2.4s
Avg Load Time
Good speed
Custom Analytics Implementation
JavaScript Analytics Code
Implement custom tracking with enhanced data collection:
// Advanced IP Analytics Tracker
class IPAnalytics {
constructor(apiKey, trackingUrl) {
this.apiKey = apiKey;
this.trackingUrl = trackingUrl;
this.sessionId = this.generateSessionId();
this.startTime = Date.now();
}
// Collect comprehensive visitor data
collectVisitorData() {
return {
sessionId: this.sessionId,
timestamp: new Date().toISOString(),
url: window.location.href,
referrer: document.referrer,
userAgent: navigator.userAgent,
screen: {
width: screen.width,
height: screen.height,
colorDepth: screen.colorDepth
},
viewport: {
width: window.innerWidth,
height: window.innerHeight
},
language: navigator.language,
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
platform: navigator.platform,
cookieEnabled: navigator.cookieEnabled,
onlineStatus: navigator.onLine
};
}
// Track page views with analytics
trackPageView(customData = {}) {
const data = {
...this.collectVisitorData(),
type: 'pageview',
customData
};
this.sendData(data);
}
// Track events with detailed context
trackEvent(eventName, eventData = {}) {
const data = {
...this.collectVisitorData(),
type: 'event',
eventName,
eventData,
sessionDuration: Date.now() - this.startTime
};
this.sendData(data);
}
// Send data to analytics endpoint
async sendData(data) {
try {
await fetch(this.trackingUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${this.apiKey}`
},
body: JSON.stringify(data)
});
} catch (error) {
console.error('Analytics tracking failed:', error);
}
}
generateSessionId() {
return Date.now().toString(36) + Math.random().toString(36).substr(2);
}
}
// Initialize analytics
const analytics = new IPAnalytics('your-api-key', 'https://api.iplogger.icu/track');
// Track page load
analytics.trackPageView();
// Track user interactions
document.addEventListener('click', (e) => {
if (e.target.tagName === 'A') {
analytics.trackEvent('link_click', {
href: e.target.href,
text: e.target.textContent
});
}
});
Start Advanced Analytics Today
Transform your IP tracking data into powerful business insights with our advanced analytics platform.