 });
        }

        function displayDeviceAnalytics(data) {
            const loading = document.getElementById('deviceAnalyticsLoading');
            const dataDiv = document.getElementById('deviceAnalyticsData');
            
            loading.style.display = 'none';
            dataDiv.style.display = 'block';

            // Update device info header
            document.getElementById('deviceName').textContent = `${data.deviceInfo.productName || 'Device'} Analytics`;
            document.getEleme