[Suporte] Scripts
Página de suporte com scripts para páginas de vendas: rastreamento de domínios, redirecionamento, botão de WhatsApp e contadores de promoção.
Esta página reúne os scripts técnicos liberados para uso em páginas de vendas e landing pages (rastreamento, botões, contadores e integrações). Cada bloco abaixo traz a finalidade do script e as instruções de instalação.
Script de Acompanhamento de Vários Dominios
Script para passar as informações do Google Analytics para o outro site.
Instruções:
- Colocar o script no HEAD no lugar do script normal do GA Universal
- Funciona para Eduzz , Hotmart e Kiwify
- Alterar na linha 8 “seudominio.com.br” para o seu site.
- Alterar na Linha 2 e na Linha 13 para o seu código ‘UA-xxxxxx-1’
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('set', 'linker', {
'domains': ['seudominio.com.br','hotmart.com', 'hotmart.com.br', 'pay.hotmart.com', 'pay.hotmart.com.br', 'sun.eduzz.com', 'eduzz.com', 'kiwify.com.br', 'kiwify.com']
});
gtag('js', new Date());
gtag('config', 'UA-xxxxxx-1');
Script de Ocultação do Google Optimize
Script para ocultar as modificações no seu Google Optimize
Instruções:
- Colocar o script no HEAD
- Alterar para o seu código do Optimize na Linha 6
.async-hide { opacity: 0 !important}
(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;
h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};
(a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c;
})(window,document.documentElement,'async-hide','dataLayer',4000,
{'GTM-WG72BKQ':true});
Script de redirecionamento
Script para redirecionar quando alguém acessar a página.
Instruções:
- Colocar o script no HEAD ou FOOTER
- Alterar para a URL que você deseja.
setTimeout("window.open('https://pablocabral.com.br','_self')",2500);
Botão do WhatsApp
Esse script cria um botão flutuante de WhatsApp na direita.
Instruções:
- Colocar o script no HEAD ou FOOTER
- Alterar o texto e o número na Linha 2
- Alterar o texto de chamada na Linha 6

1
Dúvidas? Entre em contato!
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);
Remover Espaço em Branco no Mobile
Esse tira o espaço em branco do Mobile
Instruções:
- Colocar no CSS dá Página do Elementor
/* Remover espaço em branco lateral no mobile */
html, body{
overflow-x: hidden !important;
}
Script de UTM
Este script passa as informação da UTM para o botão do checkout.
Além disso ele também transforma a UTM em SCK para você identificar mais fácil na hotmart de onde vieram as vendas.
Instruções:
- Colocar o script no Footer.
Compatível com:
- Eduzz
- Hotmart

let prefix=["https://payment.hotmart.com","https://pay.hotmart.com","https://eduzz.com","https://sun.eduzz.com","https://pay.kiwify.com.br"];function getParams(){let t="",e=window.top.location.href,r=new URL(e);if(null!=r){let a=r.searchParams.get("utm_source"),n=r.searchParams.get("utm_medium"),o=r.searchParams.get("utm_campaign"),m=r.searchParams.get("utm_term"),c=r.searchParams.get("utm_content");-1!==e.indexOf("?")&&(t=`&sck=${a}|${n}|${o}|${m}|${c}`),console.log(t)}return t}!function(){var t=new URLSearchParams(window.location.search);t.toString()&&document.querySelectorAll("a").forEach(function(e){for(let r=0;r<prefix.length;r++)-1!==e.href.indexOf(prefix[r])&&(-1===e.href.indexOf("?")?e.href+="?"+t.toString()+getParams():e.href+="&"+t.toString()+getParams())})}();
Somente nos dias x, y e z você terá um desconto diferenciado.
Informativo de que a promoção se encerra hoje e sempre apontando os últimos 2 dias como referência da promoção também..
Instruções:
- Colocar o primeiro script no rodapé do site.
- Colocar o segundo script (id=displayDate) onde você deseja que apareça o contador.
- Adicionar o CSS

var today = new Date();
var day = today.getDate();
var day2 = today.getDate()-1;
var day3 = today.getDate()-2;
var month = today.getMonth();
var monthList = ["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"];
if (month == 0 && day == 1) {
day2 = "31"
day3 = "30";
} else if (month == 0 && day == 2) {
day3 = "31"
}
if (month == 1 && day == 1) {
day2 = "31"
day3 = "30";
} else if (month == 1 && day == 2) {
day3 = "31"
}
if (month == 2 && day == 1) {
day2 = "28"
day3 = "27";
} else if (month == 2 && day == 2) {
day3 = "28"
}
if (month == 3 && day == 1) {
day2 = "31"
day3 = "30";
} else if (month == 3 && day == 2) {
day3 = "31"
}
if (month == 4 && day == 1) {
day2 = "30"
day3 = "29";
} else if (month == 4 && day == 2) {
day3 = "30"
}
if (month == 5 && day == 1) {
day2 = "31"
day3 = "30";
} else if (month == 5 && day == 2) {
day3 = "31"
}
if (month == 6 && day == 1) {
day2 = "30"
day3 = "29";
} else if (month == 6 && day == 2) {
day3 = "30"
}
if (month == 7 && day == 1) {
day2 = "31"
day3 = "30";
} else if (month == 7 && day == 2) {
day3 = "31"
}
if (month == 8 && day == 1) {
day2 = "31"
day3 = "30";
} else if (month == 8 && day == 2) {
day3 = "31"
}
if (month == 9 && day == 1) {
day2 = "30"
day3 = "29";
} else if (month == 9 && day == 2) {
day3 = "30"
}
if (month == 10 && day == 1) {
day2 = "31"
day3 = "30";
} else if (month == 10 && day == 2) {
day3 = "31"
}
if (month == 11 && day == 1) {
day2 = "30"
day3 = "29";
} else if (month == 11 && day == 2) {
day3 = "30"
}
document.getElementById("displayDate").innerHTML ='<center>Somente nos dias: ' + '<b>' + day3 + ', ' + day2 + ' e ' + day + ' de ' + monthList[month] + '</b> você terá um desconto diferenciado de 95%';
#displayDate{
color: white;
font-family: lato;
font-size: 22px;
font-weight: bold;
background: #5796FC;
margin-top: 15px;
}
Essa promoção encerra em: xxhrs
Um código para informar que sua promoção encerra sempre às 23:59 do dia atual
Instruções:
- Colocar o primeiro script no rodapé do site.
- Colocar o segundo script (id=count) onde você deseja que apareça o contador.
- Adicionar o CSS

function calculateHMSleft()
{
var now = new Date();
var hoursleft = 23-now.getHours();
var minutesleft = 59-now.getMinutes();
var secondsleft = 59-now.getSeconds();
if(minutesleft<10) minutesleft = "0"+minutesleft;
if(secondsleft<10) secondsleft = "0"+secondsleft;
document.getElementById('count').innerHTML = "Essa promoção encerra em: "+hoursleft+"hrs "+minutesleft+"min e "+secondsleft+"seg";
}
calculateHMSleft();
setInterval(calculateHMSleft, 1000);
#count{
color: black !important;
font-family: lato !important;
font-size: 13px !important;
font-weight: 500 !important;
text-align: center !important;
}
Corte no preço do Produto
Botão fixo na parte de baixo da página de vendas.
Alterar:
- Colocar a class “strokeads” no texto que você deseja que tenha o riscado.
Adicionar:
- No rodapé com HTML personalizado

.strokeads{
position:relative;
}
.strokeads:before {
content: "";
width: 100%;
height: 3px;
background: red;
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%) rotate(
-10deg
)
R$ 97,00 Grátis
Botão Fixo na Parte de Baixo do Site
Botão fixo na parte de baixo da página de vendas.
Alterar:
- Linha 54: URl do Checkout
- Linha 56: Link do Whatsapp
Adicionar:
- No rodapé com HTML personalizado

.down-bar{
width:100%;
background:rgba(0,0,0,.7);
position: fixed;
bottom:0;
left:0;
text-align:center;
padding:30px 0;
display: block;
z-index:999999;
backdrop-filter: blur(8px) saturate(100);
display: none;
}
.down-bar a{
background:#5796FC;
padding: 15px 30px;
font-weight: 700;
color:#FFFFFF;
margin: 5px;
border-radius: 6px;
}
.down-bar a.whatsapp{
background: #57BB62;
}
@media screen and (max-width: 720px){
.down-bar{
padding:15px 0;
}
.down-bar a{
display: block;
margin: 6px 10px;
}
}
.bt-whatsApp,#msg1{
display: none !important;
}
#alertWapp{
display: none !important;
}
EXPERIMENTE POR 15 DIAS
WHATSAPP
window.addEventListener("scroll", function(event) {
let dbar = document.getElementById("dbar");
let top = this.scrollY;
console.log(dbar);
if(top > 300){
dbar.style.display = "block";
}else{
dbar.style.display = "none";
}
});
Json para Tray commerce
Json para colocar o script de remarketing e conversão do Google Ads.
Observações:
- Assistir a aula no Youtube para fazer as alterações necessárias.
Adicionar:
- Na importação do Google Tag Manager
{
"exportFormatVersion": 2,
"exportTime": "2021-07-15 18:25:09",
"containerVersion": {
"path": "accounts/6003767243/containers/44219713/versions/0",
"accountId": "6003767243",
"containerId": "44219713",
"containerVersionId": "0",
"container": {
"path": "accounts/6003767243/containers/44219713",
"accountId": "6003767243",
"containerId": "44219713",
"name": "blankpapelaria",
"publicId": "GTM-WQWW33L",
"usageContext": [
"WEB"
],
"fingerprint": "1619273952099",
"tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/6003767243/containers/44219713/workspaces?apiLink=container"
},
"tag": [
{
"accountId": "6003767243",
"containerId": "44219713",
"tagId": "9",
"name": "AW - Global site Ads",
"type": "sp",
"parameter": [
{
"type": "BOOLEAN",
"key": "enableDynamicRemarketing",
"value": "false"
},
{
"type": "LIST",
"key": "customParams",
"list": [
{
"type": "MAP",
"map": [
{
"type": "TEMPLATE",
"key": "key",
"value": "ecomm_pagetype"
},
{
"type": "TEMPLATE",
"key": "value",
"value": "product"
}
]
},
{
"type": "MAP",
"map": [
{
"type": "TEMPLATE",
"key": "key",
"value": "ecomm_prodid"
},
{
"type": "TEMPLATE",
"key": "value",
"value": "{{idProduct}}"
}
]
},
{
"type": "MAP",
"map": [
{
"type": "TEMPLATE",
"key": "key",
"value": "ecomm_totalvalue"
},
{
"type": "TEMPLATE",
"key": "value",
"value": "{{price}}"
}
]
}
]
},
{
"type": "TEMPLATE",
"key": "conversionId",
"value": "{{Código de conversão}}"
},
{
"type": "TEMPLATE",
"key": "customParamsFormat",
"value": "USER_SPECIFIED"
},
{
"type": "TEMPLATE",
"key": "userId",
"value": "{{UserID}}"
},
{
"type": "BOOLEAN",
"key": "rdp",
"value": "false"
}
],
"fingerprint": "1626373455698",
"firingTriggerId": [
"17"
],
"tagFiringOption": "ONCE_PER_EVENT",
"monitoringMetadata": {
"type": "MAP"
}
},
{
"accountId": "6003767243",
"containerId": "44219713",
"tagId": "10",
"name": "AW - userId Remarketing",
"type": "html",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "\n gtag('event', 'page_view', {\n 'send_to': '{{Código de conversão}}',\n 'local_pagetype': 'conversionintent',\n 'local_totalvalue': {{transactionTotal}} || {{checkoutTotal}},\n 'user_id': {{UserID}}\n });\n"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1626373471935",
"firingTriggerId": [
"8",
"7"
],
"tagFiringOption": "ONCE_PER_EVENT",
"monitoringMetadata": {
"type": "MAP"
}
},
{
"accountId": "6003767243",
"containerId": "44219713",
"tagId": "11",
"name": "AW - Acompanhamento de conversões",
"type": "awct",
"parameter": [
{
"type": "BOOLEAN",
"key": "enableNewCustomerReporting",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "enableConversionLinker",
"value": "true"
},
{
"type": "TEMPLATE",
"key": "orderId",
"value": "{{OrderID}}"
},
{
"type": "BOOLEAN",
"key": "enableProductReporting",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "conversionValue",
"value": "{{transactionTotal}}"
},
{
"type": "TEMPLATE",
"key": "conversionCookiePrefix",
"value": "_gcl"
},
{
"type": "BOOLEAN",
"key": "enableShippingData",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "conversionId",
"value": "{{Código de conversão}}"
},
{
"type": "TEMPLATE",
"key": "currencyCode",
"value": "BRL"
},
{
"type": "TEMPLATE",
"key": "conversionLabel",
"value": "{{Rótulo de Conversões}}"
},
{
"type": "BOOLEAN",
"key": "rdp",
"value": "false"
}
],
"fingerprint": "1626373445673",
"firingTriggerId": [
"7"
],
"tagFiringOption": "ONCE_PER_EVENT",
"monitoringMetadata": {
"type": "MAP"
}
},
{
"accountId": "6003767243",
"containerId": "44219713",
"tagId": "18",
"name": "AW - Global site Ads - Geral",
"type": "sp",
"parameter": [
{
"type": "BOOLEAN",
"key": "enableDynamicRemarketing",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "conversionId",
"value": "{{Código de conversão}}"
},
{
"type": "TEMPLATE",
"key": "customParamsFormat",
"value": "NONE"
},
{
"type": "TEMPLATE",
"key": "userId",
"value": "{{UserID}}"
},
{
"type": "BOOLEAN",
"key": "rdp",
"value": "false"
}
],
"fingerprint": "1626373485939",
"firingTriggerId": [
"2147479553"
],
"blockingTriggerId": [
"17"
],
"tagFiringOption": "ONCE_PER_EVENT",
"monitoringMetadata": {
"type": "MAP"
}
},
{
"accountId": "6003767243",
"containerId": "44219713",
"tagId": "20",
"name": "Vinculador de conversões",
"type": "gclidw",
"parameter": [
{
"type": "BOOLEAN",
"key": "enableCrossDomain",
"value": "false"
},
{
"type": "BOOLEAN",
"key": "enableUrlPassthrough",
"value": "true"
},
{
"type": "BOOLEAN",
"key": "enableCookieOverrides",
"value": "false"
}
],
"fingerprint": "1626373399969",
"firingTriggerId": [
"2147479553"
],
"tagFiringOption": "ONCE_PER_EVENT",
"monitoringMetadata": {
"type": "MAP"
}
}
],
"trigger": [
{
"accountId": "6003767243",
"containerId": "44219713",
"triggerId": "7",
"name": "EasyCheckout_OrderPlaced",
"type": "CUSTOM_EVENT",
"customEventFilter": [
{
"type": "EQUALS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{_event}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "purchase"
}
]
}
],
"fingerprint": "1619274115057"
},
{
"accountId": "6003767243",
"containerId": "44219713",
"triggerId": "8",
"name": "EasyCheckout_Confirmation",
"type": "CUSTOM_EVENT",
"customEventFilter": [
{
"type": "EQUALS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{_event}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "EasyCheckout_Confirmation"
}
]
}
],
"fingerprint": "1619274138127"
},
{
"accountId": "6003767243",
"containerId": "44219713",
"triggerId": "17",
"name": "PageCategory é Produto",
"type": "PAGEVIEW",
"filter": [
{
"type": "EQUALS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{pageCategory}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "Produto"
}
]
}
],
"fingerprint": "1626373231434"
}
],
"variable": [
{
"accountId": "6003767243",
"containerId": "44219713",
"variableId": "3",
"name": "transactionTotal",
"type": "v",
"parameter": [
{
"type": "INTEGER",
"key": "dataLayerVersion",
"value": "2"
},
{
"type": "BOOLEAN",
"key": "setDefaultValue",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "name",
"value": "ecommerce.purchase.actionField.revenue"
}
],
"fingerprint": "1619274045280",
"formatValue": {}
},
{
"accountId": "6003767243",
"containerId": "44219713",
"variableId": "4",
"name": "checkoutTotal",
"type": "v",
"parameter": [
{
"type": "INTEGER",
"key": "dataLayerVersion",
"value": "2"
},
{
"type": "BOOLEAN",
"key": "setDefaultValue",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "name",
"value": "checkoutTotal"
}
],
"fingerprint": "1619274062776",
"formatValue": {}
},
{
"accountId": "6003767243",
"containerId": "44219713",
"variableId": "5",
"name": "UserID",
"type": "v",
"parameter": [
{
"type": "INTEGER",
"key": "dataLayerVersion",
"value": "2"
},
{
"type": "BOOLEAN",
"key": "setDefaultValue",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "name",
"value": "userId"
}
],
"fingerprint": "1619274074788",
"formatValue": {}
},
{
"accountId": "6003767243",
"containerId": "44219713",
"variableId": "6",
"name": "OrderID",
"type": "v",
"parameter": [
{
"type": "INTEGER",
"key": "dataLayerVersion",
"value": "2"
},
{
"type": "BOOLEAN",
"key": "setDefaultValue",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "name",
"value": "ecommerce.purchase.actionField.id"
}
],
"fingerprint": "1619274091299",
"formatValue": {}
},
{
"accountId": "6003767243",
"containerId": "44219713",
"variableId": "13",
"name": "pageCategory",
"type": "v",
"parameter": [
{
"type": "INTEGER",
"key": "dataLayerVersion",
"value": "2"
},
{
"type": "BOOLEAN",
"key": "setDefaultValue",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "name",
"value": "pageCategory"
}
],
"fingerprint": "1626372754170",
"formatValue": {}
},
{
"accountId": "6003767243",
"containerId": "44219713",
"variableId": "14",
"name": "idProduct",
"type": "v",
"parameter": [
{
"type": "INTEGER",
"key": "dataLayerVersion",
"value": "2"
},
{
"type": "BOOLEAN",
"key": "setDefaultValue",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "name",
"value": "idProduct"
}
],
"fingerprint": "1626372848025",
"formatValue": {}
},
{
"accountId": "6003767243",
"containerId": "44219713",
"variableId": "15",
"name": "price",
"type": "v",
"parameter": [
{
"type": "INTEGER",
"key": "dataLayerVersion",
"value": "2"
},
{
"type": "BOOLEAN",
"key": "setDefaultValue",
"value": "false"
},
{
"type": "TEMPLATE",
"key": "name",
"value": "price"
}
],
"fingerprint": "1626372862838",
"formatValue": {}
},
{
"accountId": "6003767243",
"containerId": "44219713",
"variableId": "19",
"name": "Código de conversão",
"type": "c",
"parameter": [
{
"type": "TEMPLATE",
"key": "value",
"value": "380746140"
}
],
"fingerprint": "1626373363974",
"formatValue": {}
},
{
"accountId": "6003767243",
"containerId": "44219713",
"variableId": "21",
"name": "Rótulo de Conversões",
"type": "c",
"parameter": [
{
"type": "TEMPLATE",
"key": "value",
"value": "2DHbCL7ZwosCEJzzxrUB"
}
],
"fingerprint": "1626373421300",
"formatValue": {}
}
],
"builtInVariable": [
{
"accountId": "6003767243",
"containerId": "44219713",
"type": "PAGE_URL",
"name": "Page URL"
},
{
"accountId": "6003767243",
"containerId": "44219713",
"type": "PAGE_HOSTNAME",
"name": "Page Hostname"
},
{
"accountId": "6003767243",
"containerId": "44219713",
"type": "PAGE_PATH",
"name": "Page Path"
},
{
"accountId": "6003767243",
"containerId": "44219713",
"type": "REFERRER",
"name": "Referrer"
},
{
"accountId": "6003767243",
"containerId": "44219713",
"type": "EVENT",
"name": "Event"
}
],
"fingerprint": "1626373509961",
"tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/6003767243/containers/44219713/versions/0?apiLink=version"
}
}
