Score Actual
-

Score General

-
Puntuación del sitio

Recomendaciones

-
Pendientes de implementar

Mejoras Aplicadas

-
En los últimos 30 días

Último Análisis

-
Días atrás

Recomendaciones Prioritarias

Cargando recomendaciones...

Todas las Recomendaciones

Cargando recomendaciones...

Historial de Análisis

Cargando historial...

Performance

-
Score de performance

SEO

-
Score de SEO

UX

-
Score de UX

Accesibilidad

-
Score de accesibilidad

🔑 API de Tracking

Instala este código en tu sitio web para seguimiento automático de visitantes, páginas vistas y eventos.

Configuración de Cuenta

Seguridad

Protege tu cuenta con autenticación de dos factores

Configurar Seguridad
`; document.getElementById('script-code').value = scriptCode; document.getElementById('script-code-section').style.display = 'block'; } else { document.getElementById('api-key-empty').style.display = 'block'; document.getElementById('api-key-display').style.display = 'none'; } } } catch (error) { console.error('Error cargando API key:', error); document.getElementById('api-key-empty').style.display = 'block'; } } async function generateApiKey() { const btn = event.target; btn.disabled = true; btn.textContent = 'Generando...'; try { const response = await fetch('/api/api-keys/generate', { method: 'POST', headers: { 'Content-Type': 'application/json' } }); if (response.ok) { const data = await response.json(); if (data.success) { await loadApiKey(); } else { alert('Error: ' + (data.error || 'No se pudo generar la API key')); } } else { alert('Error generando API key'); } } catch (error) { console.error('Error:', error); alert('Error generando API key'); } finally { btn.disabled = false; btn.textContent = 'Generar API Key'; } } function copyApiKey() { const apiKey = document.getElementById('api-key-value').textContent; navigator.clipboard.writeText(apiKey).then(() => { alert('API Key copiada al portapapeles'); }); } function copyScript() { const scriptCode = document.getElementById('script-code').value; navigator.clipboard.writeText(scriptCode).then(() => { alert('Código copiado al portapapeles'); }); } // Cargar API key cuando se abre el tab de settings const originalSwitchTab = window.switchTab; window.switchTab = function(tabName) { if (originalSwitchTab) originalSwitchTab(tabName); if (tabName === 'settings') { loadApiKey(); } };