Scripts FULL

Script para UTM

Esse código serve para levar as informações de UTM’s da sua página de vendas para o seu checkout.

Insira esse código no final da sua página. Caso esteja usando uma estrutura clonada, você irá inserir logo ACIMA de </body>

Caso esteja usando Worpress use o pluguin Head & Footer Code cole em Footer

				
					<script>

(function () {
    const parametros = ["utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content"]

    r = new URL(window.top.location.href);
    let scks = []
    let utms = {}

    parametros.forEach((el => {
        if (el.includes("source")) {
            scks[scks.length] = r.searchParams.get(el) ? r.searchParams.get(el) : (document.referrer ? new URL(document.referrer).hostname : "direto")
            utms[el] = r.searchParams.get(el) ? r.searchParams.get(el) : (document.referrer ? new URL(document.referrer).hostname : "direto")
        }
        else {
            scks[scks.length] = r.searchParams.get(el) ? r.searchParams.get(el) : ""
            utms[el] = r.searchParams.get(el) ? r.searchParams.get(el) : ""
        }
    }))

    scks = scks.filter(function (el) {
        return el != "";
    });

    let sck = "sck=" + scks.join('|')
    let href = ""

    for (el in utms) {
        utms[el] ? href += el + "=" + utms[el] + "&" : ""
    }
    href += sck

    document.querySelectorAll('a').forEach(el => {
        if (!el.href.includes("#")) {
            el.href.includes("?") ? el.href += "&" + href : el.href += "?" + href
        }
    })
})();

</script>
				
			

Código para mostrar ícones

Esse código vai mostrar a maioria dos ícones que estão faltando em sua página.

Copie e cole abaixo de <head>

				
					<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
				
			

Marcação de Cookies (Comissão)

Esse código vai marcar sua comissão quando alguém entrar na sua página.

Insira acima de </body>

				
					<iframe src="COLOQUE-SEU-LINK-AQUI" frameborder="0" style="width: 1px; height: 1px;"></iframe>
				
			

Botão de WhatsApp

Script para colocar o botão do WhatsApp fixo na sua página.

Substitua SEU-NUMERO da primeira linha pelo seu número de WhatsApp no formato 5511999999999. Não coloque espaços, parênteses, hifens e nem qualquer outro tipo de caractere. Mantenha dentro das aspas  

				
					<a href="https://api.whatsapp.com/send?phone=SEU-NUMERO" class="bt-whatsApp" target="_blank"
    style="right:25px; position:fixed;width:60px;height:60px;bottom:40px;z-index:100;">
    <img decoding="async" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pjxzdmcgdmlld0JveD0iMjYxOSA1MDYgMTIwIDEyMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48c3R5bGU+CiAgICAgIC5jbHMtMSB7CiAgICAgICAgZmlsbDogIzI3ZDA0NTsKICAgICAgfQoKICAgICAgLmNscy0yLCAuY2xzLTUgewogICAgICAgIGZpbGw6IG5vbmU7CiAgICAgIH0KCiAgICAgIC5jbHMtMiB7CiAgICAgICAgc3Ryb2tlOiAjZmZmOwogICAgICAgIHN0cm9rZS13aWR0aDogNXB4OwogICAgICB9CgogICAgICAuY2xzLTMgewogICAgICAgIGZpbGw6ICNmZmY7CiAgICAgIH0KCiAgICAgIC5jbHMtNCB7CiAgICAgICAgc3Ryb2tlOiBub25lOwogICAgICB9CiAgICA8L3N0eWxlPjwvZGVmcz48ZyBkYXRhLW5hbWU9Ikdyb3VwIDM2IiBpZD0iR3JvdXBfMzYiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIzMDAgNzMpIj48Y2lyY2xlIGNsYXNzPSJjbHMtMSIgY3g9IjYwIiBjeT0iNjAiIGRhdGEtbmFtZT0iRWxsaXBzZSAxOCIgaWQ9IkVsbGlwc2VfMTgiIHI9IjYwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzMTkgNDMzKSIvPjxnIGRhdGEtbmFtZT0iR3JvdXAgMzUiIGlkPSJHcm91cF8zNSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjU0IDM4NikiPjxnIGRhdGEtbmFtZT0iR3JvdXAgMzQiIGlkPSJHcm91cF8zNCI+PGcgY2xhc3M9ImNscy0yIiBkYXRhLW5hbWU9IkVsbGlwc2UgMTkiIGlkPSJFbGxpcHNlXzE5IiB0cmF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41LTcuOUExMS44NTIsMTEuODUyLDAsMCwwLDE0MzkuMywxNjAuNloiIGRhdGEtbmFtZT0iUGF0aCAxMjgiIGlkPSJQYXRoXzEyOCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEzMjYuMzMyIC02OC40NjcpIi8+PC9nPjwvZz48L3N2Zz4="
        alt="" width="60px">
</a>
<span id="alertWapp"
    style="right:30px; visibility: hidden; position:fixed;	width:17px;	height:17px;bottom:90px; background:red;z-index:101; font-size:11px;color:#fff;text-align:center;border-radius: 50px; font-weight:bold;line-height: normal; ">
    1 </span>
<div id="msg1"
    style="right: 90px; visibility: visible; background: #000; color: #fff; position: fixed; width: 200px; bottom: 52px; text-align: center; font-size: 13px; line-height: 31px; height: 32px; border-radius: 100px; z-index: 100; ">
    Dúvidas? Entre em contato!</div>
<script type="text/javascript">
    function showIt2() {
        document.getElementById("msg1").style.visibility = "visible";
    }
    setTimeout("showIt2()", 5000);

    function hiddenIt() {
        document.getElementById("msg1").style.visibility = "hidden";
    }
    setTimeout("hiddenIt()", 15000);

    function showIt3() {
        document.getElementById("msg1").style.visibility = "visible";
    }
    setTimeout("showIt3()", 25000);
    msg1.onclick = function () {
        document.getElementById('msg1').style.visibility = "hidden";
    };

    function alertW() {
        document.getElementById("alertWapp").style.visibility = "visible";
    }
    setTimeout("alertW()", 15000);
</script>
				
			
plugins premium WordPress