diff --git a/src/components/ProductCard.astro b/src/components/ProductCard.astro index 382400f..78695a8 100644 --- a/src/components/ProductCard.astro +++ b/src/components/ProductCard.astro @@ -18,8 +18,8 @@ const typeLabel = product.type === 'mobile_split' ? 'Mobile Split' : 'Monoblock'
Score
{product.score}/100
- Verfügbarkeit - Preis prüfen ↗ + Verfügbarkeit + Preis prüfen ↗ Details
diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index ae4bf4c..3e0337e 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -15,6 +15,8 @@ import '../styles/global.css'; {jsonld &&
@@ -24,9 +26,9 @@ import '../styles/global.css'; Rechner Finder Alarm - Pro + Pro Login - Live-Karte + Live-Karte
@@ -48,6 +50,9 @@ import '../styles/global.css'; } document.addEventListener('DOMContentLoaded',wire); wire(); window.kfAnim=wire; + window.track=function(name,data){try{window.umami&&window.umami.track(name,data);}catch(e){}}; + // Auto-Tracking ausgehender Affiliate-/Partner-Links + document.addEventListener('click',function(e){var a=e.target.closest&&e.target.closest('a[href^="http"]');if(!a)return;var rel=(a.getAttribute('rel')||'');var host=(a.hostname||'');if(rel.includes('sponsored')||/amazon|ebay|idealo|mediamarkt|saturn|obi|bauhaus|hornbach|toom|hagebau|globus|klempnerei-stoever|tgasolutions/i.test(host)){window.track&&window.track('outbound_click',{host:host,label:(a.textContent||'').trim().slice(0,40)});}},true); })();