.an-dash{max-width:1100px;margin:30px auto;padding:20px}
.an-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:15px;margin:20px 0}
.an-stat{background:#fff;border:1px solid #eee;padding:18px;border-radius:8px;text-align:center}
.an-stat .v{font-size:32px;font-weight:bold;color:#FF6B00;display:block}
.an-stat .l{font-size:13px;color:#666;text-transform:uppercase;letter-spacing:0.5px}
.an-table{width:100%;border-collapse:collapse;margin-top:20px}
.an-table th,.an-table td{padding:10px;border-bottom:1px solid #eee;text-align:left}
.an-table th{background:#F6F8FA;font-weight:600}
.an-empty{text-align:center;padding:60px 20px;color:#666;background:#F6F8FA;border-radius:10px}
.an-login{max-width:400px;margin:60px auto;background:#fff;padding:30px;border-radius:10px;border:1px solid #eee}
.an-login input{width:100%;padding:12px;border:1px solid #ddd;border-radius:6px;font-size:16px;margin-bottom:12px;box-sizing:border-box}
.an-login button{width:100%;background:#FF9900;color:#fff;padding:14px;border:none;border-radius:6px;font-size:16px;font-weight:bold;cursor:pointer}
📑 Sommaire
Comparer les prix sur :
Liens affiliés — DealNova peut recevoir une commission
📊 Dashboard AffiliaNova
Connexion
Entrez votre clé API (reçue par email).
Livraison gratuite avec Prime
Déjà acheté par des milliers de Français
Pas encore de compte ? Créer un compte gratuit
Performance clics
Commissions Amazon
Vos tranches de rémunération
function getUrlParam(name) {
return new URLSearchParams(window.location.search).get(name);
}
async function loadDash(key) {
if (!key) {
document.getElementById(‘dash-loading’).style.display = ‘none’;
document.getElementById(‘dash-login’).style.display = ‘block’;
return;
}
try {
const r = await fetch(‘/wp-json/dn/v1/affilianova/dashboard?key=’ + encodeURIComponent(key));
if (!r.ok) throw new Error(‘Clé API invalide’);
const data = await r.json();
document.getElementById(‘dash-client-info’).innerHTML =
‘‘ + data.client.email + ‘ · Tag Amazon : ' + data.client.amazon_tag + ' · Statut : ‘ + data.client.status;
document.getElementById(‘dash-stats’).innerHTML =
‘
‘ +
‘
‘ +
‘
‘;
if (data.commissions && data.commissions.length > 0) {
let html = ‘
| Période | Commissions Amazon | Part AffiliaNova | Vous touchez | Statut |
|---|---|---|---|---|
| ‘ + c.period + ‘ | ‘ + c.finalized_eur + ‘ € | ‘ + c.an_fee_eur + ‘ € (‘ + c.an_rate + ‘) | ‘ + yourCut.toFixed(2) + ‘ € | ‘ + c.status + ‘ |
‘;
document.getElementById(‘dash-commissions’).innerHTML = html;
} else {
document.getElementById(‘dash-commissions’).innerHTML =
‘
Le brain publie automatiquement vos articles. Les premières commissions arrivent généralement entre J+7 et J+30.
‘;
}
document.getElementById(‘dash-loading’).style.display = ‘none’;
document.getElementById(‘dash-content’).style.display = ‘block’;
} catch (e) {
document.getElementById(‘dash-loading’).style.display = ‘none’;
document.getElementById(‘dash-error’).style.display = ‘block’;
document.getElementById(‘dash-error’).textContent = ‘Erreur : ‘ + e.message;
document.getElementById(‘dash-login’).style.display = ‘block’;
}
}
function connectDash() {
const key = document.getElementById(‘api-key-input’).value.trim();
if (!key) return;
window.location.search = ‘?key=’ + encodeURIComponent(key);
}
window.addEventListener(‘DOMContentLoaded’, function() {
loadDash(getUrlParam(‘key’));
});
Voir le meilleur prix Amazon >>
🔥 Deals similaires qui pourraient vous intéresser
⚡ Dashboard AffiliaNova — Vos performances
Offre limitee - Cliquez vite !Articles qui pourraient vous interesser
- ➤ Meilleur Casque Gaming 2026 : Le SteelSeries Arctis Nova 7, Un Choix Incontournable pour les Joueurs Exigeants
- ➤ Les Meilleurs Casques Gaming de 2026 : Découvrez le SteelSeries Arctis Nova 7
- ➤ Les Ecouteurs Apple AirPods Pro 2 : La Révolution de l'Audio en 2026
- ➤ La Tablette Graphique Wacom Intuos S Bluetooth : Un Outil de Création Révolutionnaire en 2026
- ➤ Le Meilleur Ordinateur Portable de 2026 : Découvrez l'HP 15s
- ➤ Le Meilleur Antivol pour Votre Sécurité en 2026 : L'Antivol U Kryptonite Evolution Mini-7
