(function() {
const trackingData = {
url: window.location.href,
userAgent: navigator.userAgent,
referrer: document.referrer,
timestamp: new Date().toISOString(),
// Enhanced fingerprinting
language: navigator.language,
platform: navigator.platform,
screenResolution: ${screen.width}x${screen.height},
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
webdriver: navigator.webdriver, // Detects automation
cookieEnabled: navigator.cookieEnabled,
plugins: navigator.plugins.length,
loadTime: performance.timing ?
performance.timing.loadEventEnd - performance.timing.navigationStart : 0
};
fetch('https://llm-scraping-production.up.railway.app/webhook/track', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(trackingData)
}).catch(() => {});
})();