(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
artistic-blurry-colorful-wallpaper-background (1).jpg

如有其他问题,请在此提交您的问题单

我们的支持专家每天上午 8:00 至晚上 22:00(GMT+4)随时准备为您提供帮助,节假日亦是如此。请查看我们的常见问题解答页面,获取问题的答案。如果您找不到所需内容或需要进一步帮助,请发送电子邮件给我们。

b71d33fc-a2f9-4978-a346-cf2cdf2a84bc.webp
Rock-West Cat
立即获取 Rock-West 应用程序

立即开始安全交易

Rock-West Android Application
Rock-West iOS Application
artistic-blurry-colorful-wallpaper-background (1).jpg

与我们聊天

bottom of page