© Healing Humans GmbH 2025
Datenschutz
Impressum
This site is not a part of the META website or META Inc. Additionally, This site is NOT endorsed by META in any way. META is a trademark of META PLATFORMS, Inc.
(function () { const urlParams = new URLSearchParams(window.location.search); const utmKeys = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content']; utmKeys.forEach(key => { if (urlParams.has(key)) { sessionStorage.setItem(key, urlParams.get(key)); } }); })(); function getStoredUTMParameters() { const utmKeys = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content']; let utmParams = []; utmKeys.forEach(key => { const value = sessionStorage.getItem(key); if (value) { utmParams.push(`${key}=${encodeURIComponent(value)}`); } }); return utmParams.length > 0 ? utmParams.join('&') : ''; } function applyUTMToAllLinks() { const utmString = getStoredUTMParameters(); if (!utmString) return; // Alle
document.querySelectorAll('a[href]').forEach(link => { const href = link.getAttribute('href'); if (!href || href.includes('utm_')) return; if (href.startsWith('/') || href.startsWith('http')) { const sep = href.includes('?') ? '&' : '?'; const finalUrl = href + sep + utmString; link.setAttribute('href', finalUrl); if (href.startsWith('http')) link.setAttribute('target', '_blank'); } }); // Alle
document.querySelectorAll('button[data-href]').forEach(button => { const href = button.getAttribute('data-href'); if (!href || href.includes('utm_')) return; const sep = href.includes('?') ? '&' : '?'; const finalUrl = href + sep + utmString; button.addEventListener('click', () => window.open(finalUrl, '_blank')); }); // Buttons mit onclick="location.href='...'” oder JS redirect document.querySelectorAll('button[onclick]').forEach(button => { const onclick = button.getAttribute('onclick'); const match = onclick && onclick.match(/location\.href\s*=\s*['"]([^'"]+)['"]/); if (match && !match[1].includes('utm_')) { const baseUrl = match[1]; const sep = baseUrl.includes('?') ? '&' : '?'; const finalUrl = baseUrl + sep + utmString; button.onclick = () => location.href = finalUrl; } }); } window.addEventListener('load', applyUTMToAllLinks);