widget KA Agent : balise analytics première partie (admin-ka /collect)
Bloc KA_ANALYTICS ajouté en fin de ka-agent.js par le déploiement du tableau de bord admin-ka : identifiant visiteur anonyme (localStorage KA_VID) + battement par minute vers administration-ka.com/collect (site, vid, chemin). Commité a posteriori — état déployé en prod. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 changed file +2 −0
modified
public/ka-agent.js
+2 −0
@@ -454,3 +454,5 @@ | ||
| 454 | 454 | if (e.key === "Enter" && !e.shiftKey) { e.preventDefault(); ask(); } |
| 455 | 455 | }); |
| 456 | 456 | })(); |
| 457 | + | |
| 458 | +;/*KA_ANALYTICS*/(function(){try{if(window.__kaAn)return;window.__kaAn=1;var k="KA_VID",v=localStorage.getItem(k);if(!v){v=Date.now().toString(36)+Math.random().toString(36).slice(2,8);localStorage.setItem(k,v);}var b=function(){var i=new Image();i.src="https://www.administration-ka.com/collect?site=vrai-prix&vid="+v+"&p="+encodeURIComponent(location.pathname)+"&t="+Date.now();};b();setInterval(b,60000);}catch(e){}})(); | |
| 457 | 459 | |