Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

function getUTMParameter(name) { let results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); return results ? decodeURIComponent(results[1]) : 'null'; }function addSrcToLinks() { const utms = ['utm_campaign', 'utm_medium', 'utm_source', 'utm_content'].map(param => getUTMParameter(param)); if (!utms.some(value => value !== 'null')) return; const srcParam = `utm_campaign=${utms[0]}|utm_medium=${utms[1]}|utm_source=${utms[2]}|utm_content=${utms[3]}`; console.log(srcParam); const srcParamCleaned = `${utms[0]}|${utms[1]}|${utms[2]}|${utms[3]}`; console.log(srcParamCleaned); document.querySelectorAll('a[href^="https://payment.hotmart.com"], a[href^="https://pay.hotmart.com"]').forEach(link => { link.href += (link.href.includes('?') ? '&' : '?') + `src=${srcParamCleaned}`; }); } addSrcToLinks();const mensagemConsole = `%cSuper Mago\n%cOtimizando o rastreamento das vendas desse site\n%cAcesse https://meusupermago.com e saiba como gastar menos e lucrar muito mais com suas campanhas de tráfego pago.`; const estilos = ['font-size: 20px; font-weight: bold; color: #022260;','font-size: 16px; color: #022260;','font-size: 14px; color: #022260;',]; console.log(mensagemConsole, ...estilos);