(function() { const utmParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content']; const urlParams = new URLSearchParams(window.location.search); let hasParams = false; utmParams.forEach(param => { const value = urlParams.get(param); if (value) { localStorage.setItem(param, value); hasParams = true; } }); if (hasParams) { console.log('%c✅ UTM-метки сохранены в localStorage.', 'color: green; font-weight: bold;'); if (typeof gtag === 'function') { const eventParams = {}; utmParams.forEach(param => { eventParams[param] = localStorage.getItem(param); }); gtag('event', 'utm_parameters_captured', eventParams); console.log('%c📊 UTM-метки отправлены в GA4 как event utm_parameters_captured', 'color: blue; font-weight: bold;'); } } console.log('%c📦 UTM в localStorage:', 'color: orange; font-weight: bold;'); utmParams.forEach(param => { console.log(`${param}: ${localStorage.getItem(param)}`); }); // Навешиваем обработчик на кнопку регистрации const registerButton = document.querySelector('.StylableButton2545352419__container'); if (registerButton) { registerButton.addEventListener('click', function(e) { e.preventDefault(); let link = registerButton.querySelector('a') ? registerButton.querySelector('a').href : null; if (!link) { console.warn('⚠️ Кнопка не содержит ссылку'); return; } const url = new URL(link); utmParams.forEach(param => { const value = localStorage.getItem(param); if (value) { url.searchParams.set(param, value); } }); console.log('%c➡️ Переход на URL с UTM:', 'color: purple; font-weight: bold;', url.toString()); window.location.href = url.toString(); }); } else { console.warn('⚠️ Кнопка регистрации не найдена'); } })();
top of page

Designed with You in Mind

This is the space to introduce the Product section. Showcase the types of products available and underline any important or unique features. 

image2.png
bottom of page