- Descreve um banner de Black Friday à IA com Prompt-Based Experimentation (PBX), ou adiciona-o com os elementos prontos do Campaign Booster (Information Bar, Notification, USP Bar, Exit-Intent Layer) no Editor Visual. O código do teu tema permanece intocado.
- A configuração tem três passos: ativa o elemento no Visual Editor, copia e verifica o seu JavaScript e CSS, depois atualiza o teu conteúdo e entra em produção depois do QA.
- O targeting por dispositivo, parâmetro UTM, referenciador ou país e as datas de início e fim decidem quem vê o banner e quando.
Podes testar banners de Black Friday sem um programador usando o Visual Editor da Varify em conjunto com os elementos prontos a usar do Campaign Booster. Ativas um elemento como uma barra de informação ou um pop-up, alteras o texto e o estilo, verificas com o link de pré-visualização e o modo QA, e inicias o teste.
Para muitas lojas online, a Black Friday é um dos dias de vendas mais fortes do ano. As metas são altas e os resultados muitas vezes ficam aquém do esperado. Uma razão comum é que os visitantes não reparam nos descontos, as promoções perdem-se no layout e o potencial de conversão fica por aproveitar.
Esta página mostra quais elementos podes adicionar tu mesmo, como configurar um teste de banner em três passos, o que testar, como segmentar e agendar o banner, e o código pronto a usar para cada elemento.
A resposta curta
Descreve o banner em linguagem simples com PBX: no Editor Visual escreves o que queres em "Ask AI", e a IA cria a variante, escreve o código e configura a experiência, sem necessidade de um programador. Podes refinar o resultado quantas vezes quiseres dentro de uma variante, e um programador pode ajustar o JavaScript gerado. Consulta os exemplos de PBX e a documentação de PBX.
Ou usa o Editor Visual juntamente com os elementos prontos do Campaign Booster, e executa o teste em três passos: ativa o elemento, copia e verifica o seu JavaScript e CSS, depois atualiza o teu conteúdo e coloca-o em produção após o QA.
Ninguém precisa de mexer nos ficheiros do teu tema. O banner é uma variante da tua página, e tu decides quando começa. A configuração é explicada passo a passo abaixo.
Quais elementos de Black Friday você pode adicionar sozinho
O Campaign Booster dá-te blocos de construção acabados para os posicionamentos típicos da Black Friday. Ativas um elemento no Editor Visual e alteras lá os seus textos, cores e links.
| Elemento | O que faz | Uso na Black Friday | Documentação |
|---|---|---|---|
| Information Bar | Uma barra fixa no topo ou na base do ecrã com ícones e temporização configurável. | Anuncia a campanha e a data de término em todas as páginas. | Information Bar |
| Notification | Uma mensagem que podes posicionar, estilizar e temporizar como quiseres. | Destaca a oferta sem cobrir o conteúdo. | Notification |
| USP Bar | Até três propostas de valor únicas numa barra fixa, cada uma com um ícone opcional. | Mantém a entrega, as devoluções e o suporte visíveis junto à oferta. | USP Bar |
| Exit-Intent Layer | Uma camada com uma imagem e uma mensagem quando um visitante está prestes a sair. | Uma segunda oportunidade para visitantes que saem sem comprar. | Exit-Intent Layer |
| Pop-up | A mesma camada, mostrada após um atraso que definires (imagem ou texto com um botão). | Chama a atenção para a oferta logo no início da visita. | Exit-Intent Layer |
| Arrow Up | Uma seta de voltar ao topo que aparece à medida que o visitante desce a página. | Ajuda os visitantes a voltar ao menu em páginas de oferta longas. | Arrow Up |
Configure um teste de banner em três passos
- Importante: ative o respectivo campaign booster no seu visual editor. Abra seu experimento no Visual Editor e ative o elemento que você precisa (veja a tabela acima).
- Copie o JavaScript e CSS personalizados e verifique na sua configuração. Cada elemento tem seu próprio código mais abaixo nesta página. Copie as duas partes e verifique como o elemento aparece no editor.
- Atualize seu conteúdo e coloque o teste no ar após o QA bem-sucedido. Substitua os textos, links e imagens de exemplo pelo seu conteúdo de Black Friday, verifique a variante com o link de pré-visualização e o modo QA, depois inicie o teste.
Nota: a Varify não assume responsabilidade pela funcionalidade do código e das informações. É responsabilidade do usuário verificar minuciosamente o código do teste e implementá-lo corretamente.
O que testar em um banner de Black Friday
Mude uma coisa por teste, para que o resultado diga qual mudança fez a diferença. Quatro pontos de partida:
- Mensagem. Nomeie a oferta numa linha, ou comece pelo benefício. Experimente uma formulação mais curta e uma mais longa.
- Posição. Barra superior, barra inferior, notificação no canto ou camada (layer). A mesma mensagem pode comportar-se de forma diferente em cada local.
- Momento (timing). Mostre o banner imediatamente, após um atraso, ou apenas quando um visitante está prestes a sair.
- Público. Todos os visitantes, apenas visitantes vindos de um link de campanha, ou apenas um tipo de dispositivo.
A página sobre o que testar em A/B antes da Black Friday aprofunda a escolha dos testes. Para ofertas a colocar no banner, veja 20 ideias de Black Friday para lojas online. Para planear quanto tempo um teste deve durar, use a calculadora gratuita de duração de testes e a calculadora de significância.
Direcione e agende seu banner
A Black Friday de 2026 é sexta-feira, 27 de novembro (semana 48), e a Cyber Monday é segunda-feira, 30 de novembro. O interesse de pesquisa por termos relacionados com a Black Friday aumenta a partir de outubro e atinge o pico nas semanas 46 e 47 (análise da Varify sobre o Google Trends, 2022 a 2024), por isso o banner deve ser testado e estar pronto antes de meados de novembro. Para saber o que o banner pode mostrar quando chegar a Cyber Monday, veja ideias de marketing de Cyber Monday para lojas online.
| Queres... | Usa |
|---|---|
| Mostrar o banner apenas em mobile, ou apenas em desktop | Segmentação por dispositivo |
| Mostrar uma oferta a um segmento de forma permanente | Personalização (entrega a 100% para um público) |
| Mostrar o banner apenas a visitantes vindos do teu e-mail ou anúncio de Black Friday | Segmentação de público por parâmetro de URL (UTM) |
| Limitar o banner por referenciador (referrer) ou país | Segmentação de público por referrer e geolocalização |
| Iniciar e terminar o banner automaticamente | Agendamento de experiências (data de início e fim) |
Os detalhes estão na documentação de segmentação de público, segmentação de página e agendamento de experiências. Se o teu banner mostra preços, preços riscados ou uma contagem decrescente, faz verificar o texto legalmente antes do lançamento. Se uma contagem decrescente tem lugar no banner é abordado em Contagens decrescentes de Black Friday: convertem?
Como as equipes usam a Varify na Black Friday
Flexibilidade sem programadores
Muda o estilo e adiciona rapidamente impulsionadores de campanha por ti próprio, sem ter de depender do departamento de desenvolvimento. Isto poupa tempo e permite-te reagir de imediato.
Testes rápidos de landing pages
Graças ao nosso script mínimo, podes desenhar landing pages no teu CMS e testá-las diretamente com redirecionamentos - de forma rápida, simples e sem longos tempos de espera. Verifica a própria página com o checklist de landing page para a Black Friday antes de enviares tráfego para ela.
Estilização simples para a Black Friday
Queres personalizar a tua loja para a Black Friday ou destacar determinados elementos movendo-os? Com o editor visual, podes alterar o design num instante sem teres de mexer no código.
Segmentação precisa para campanhas
Testa como certos grupos-alvo reagem às tuas mudanças, segmentando-os especificamente - com parâmetros UTM, perfis de dispositivo ou países. Assim, sabes exatamente o que funciona - e para quem.
Código pronto para o Campaign Booster
Cada elemento de Black Friday abaixo vem com seu próprio JavaScript e CSS. Copie o código do elemento que você ativou no passo 1, ajuste os textos, links e imagens, e verifique o resultado com o link de pré-visualização e o modo QA.
O código é um modelo: substitua YOUR_LANDING_PAGE_URL e YOUR_IMAGE_URL pelos seus próprios endereços.
PopUp de Black Friday - Imagem
Elemento do Campaign Booster: Exit Intent
Você pode exibir um pop-up com uma imagem que aparece em um momento específico. Você pode personalizar exatamente quando ele aparece.
JavaScript adicional
window.varify.helpers.onDomLoaded(() => {
// === BASIC SETTINGS (adjust if needed) ===
const POPUP_SESSION_KEY = 'varifyExitPopupSeen'; // sessionStorage key
const targetUrl = 'YOUR_LANDING_PAGE_URL'; // landing page URL
const imageSrc = 'YOUR_IMAGE_URL'; // popup image
const imageAlt = 'Black Friday Deal'; // image alt text
const popupDelayMs = 1000; // delay before popup opens (in ms)
function isInEditor() {
const p = new URLSearchParams(location.search);
return p.has('varify-variation-name') || p.has('varify-variation-id');
}
if (isInEditor()) return;
window.varify.helpers.waitFor('.varify-exitIntent-content', (contentDiv) => {
const wrapper = document.querySelector('.varify-exitIntent-wrapper');
const backdrop = document.querySelector('.varify-exitIntent-backdrop');
const modal = document.querySelector('.varify-exitIntent');
const closeBtn = document.querySelector('.varify-exitIntent-close');
if (!wrapper || !backdrop || !modal || !contentDiv) return;
const alreadySeen = sessionStorage.getItem(POPUP_SESSION_KEY) === '1';
// move close button into modal so it overlays the image
if (closeBtn && closeBtn.parentElement !== modal) {
modal.appendChild(closeBtn);
}
// === replace popup content with clickable image ===
contentDiv.innerHTML = '';
const link = document.createElement('a');
link.href = targetUrl;
link.target = '_blank';
link.rel = 'noopener noreferrer';
const img = document.createElement('img');
img.src = imageSrc;
img.alt = imageAlt;
img.style.display = 'block';
img.style.width = '100%';
img.style.height = 'auto';
link.appendChild(img);
contentDiv.appendChild(link);
// === always block existing exit-intent triggers ===
const stopExitIntent = (evt) => {
if (
(evt.type === 'mouseleave' || evt.type === 'mouseout') &&
(evt.relatedTarget === null || evt.clientY {
sessionStorage.setItem(POPUP_SESSION_KEY, '1');
wrapper.classList.add('vf-show');
};
setTimeout(openPopup, popupDelayMs);
// === close helpers ===
const closePopup = () => {
wrapper.classList.remove('vf-show');
};
// close via X button
if (closeBtn) {
closeBtn.addEventListener('click', (e) => {
e.preventDefault();
closePopup();
});
}
// close via click outside modal
backdrop.addEventListener('click', (e) => {
if (!modal.contains(e.target)) {
closePopup();
}
});
// close via ESC key
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') {
closePopup();
}
});
});
});
CSS adicional
/* wrapper: hidden by default, visible when vf-show is added */
.varify-exitIntent-wrapper {
display: none;
}
.varify-exitIntent-wrapper.vf-show {
display: block;
}
/* backdrop: full-screen overlay */
.varify-exitIntent-wrapper.vf-show .varify-exitIntent-backdrop {
position: fixed;
inset: 0;
display: flex !important;
align-items: center;
justify-content: center;
background-color: rgba(0, 0, 0, 0.8);
z-index: 2147483647;
}
/* modal: pure container around the image */
.varify-exitIntent {
position: relative;
max-width: 90vw;
max-height: 90vh;
background: transparent;
border: none;
box-shadow: none;
}
/* remove padding: pure image modal */
.varify-exitIntent-content {
padding: 0 !important;
}
/* image should never be larger than viewport height */
.varify-exitIntent-content img {
display: block;
width: 100%;
height: auto;
max-height: 90vh;
object-fit: contain;
}
/* hide original header bar if present */
.varify-exitIntent-header {
display: none !important;
}
/* close button overlay above the image */
.varify-exitIntent-close {
position: absolute !important;
top: 12px;
right: 12px;
width: 24px;
height: 24px;
display: flex !important;
align-items: center;
justify-content: center;
background: transparent;
color: #fff !important;
cursor: pointer;
z-index: 2147483647;
}
PopUp de Black Friday - Conteúdo
Elemento Campaign Booster: Exit Intent
Este popup contém texto, pontos e um botão. Podes personalizar o texto como quiseres e definir quando o popup deve aparecer para informar os teus utilizadores de forma direcionada.
JavaScript adicional
window.varify.helpers.onDomLoaded(() => {
// ================================
// CONFIG – YOU CAN EDIT THIS
// ================================
// Unique key for this popup. If you duplicate the test, change this key.
const POPUP_SESSION_KEY = 'varifyBFContentPopupSeen';
// When should the popup appear after page load (in milliseconds)?
const POPUP_DELAY_MS = 1000;
// Popup texts
const POPUP_HEADLINE = 'Black Friday Mega Deal!';
const POPUP_SUBHEADLINE = 'Don\'t miss our biggest discounts';
// Bullet points (each entry = one bullet line)
const POPUP_BULLETS = [
'Up to 50% off everything',
'Free shipping on all orders',
'Limited time offer'
];
// CTA button
const POPUP_CTA_URL = 'YOUR_LANDING_PAGE_URL'; // landing page URL
const POPUP_CTA_TEXT = 'Save Now →'; // CTA label
// ================================
// RUNTIME LOGIC – DO NOT TOUCH :)
// ================================
// Do not run inside Varify editor
function isInEditor() {
const p = new URLSearchParams(location.search);
return p.has('varify-variation-name') || p.has('varify-variation-id');
}
if (isInEditor()) return;
window.varify.helpers.waitFor('.varify-exitIntent-content', (contentDiv) => {
const wrapper = document.querySelector('.varify-exitIntent-wrapper');
const backdrop = document.querySelector('.varify-exitIntent-backdrop');
const modal = document.querySelector('.varify-exitIntent');
const closeBtn = document.querySelector('.varify-exitIntent-close');
if (!wrapper || !backdrop || !modal || !contentDiv) return;
const alreadySeen = sessionStorage.getItem(POPUP_SESSION_KEY) === '1';
// Always block the original exit-intent logic of the site
const stopExitIntent = (evt) => {
if (
(evt.type === 'mouseleave' || evt.type === 'mouseout') &&
(evt.relatedTarget === null || evt.clientY <= 0) ) { evt.stopImmediatePropagation(); if (evt.preventDefault) evt.preventDefault(); } }; document.addEventListener('mouseleave', stopExitIntent, true); document.addEventListener('mouseout', stopExitIntent, true); // If shown once in this session: hide wrapper and stop everything if (alreadySeen) { wrapper.classList.remove('vf-show'); wrapper.style.display = 'none'; return; } // Ensure close button is inside the modal so it overlays the content if (closeBtn && closeBtn.parentElement !== modal) { modal.appendChild(closeBtn); } // Build popup content contentDiv.innerHTML = ''; contentDiv.style.textAlign = 'left'; const headline = document.createElement('p'); headline.className = 'bf-exit-intent-headline'; headline.textContent = POPUP_HEADLINE; const subheadline = document.createElement('p'); subheadline.className = 'bf-exit-intent-subheadline'; subheadline.textContent = POPUP_SUBHEADLINE; const ul = document.createElement('ul'); ul.className = 'bf-exit-intent-bullets'; POPUP_BULLETS.forEach((txt) => {
const li = document.createElement('li');
li.textContent = txt;
ul.appendChild(li);
});
const cta = document.createElement('a');
cta.className = 'bf-exit-intent-cta';
cta.href = POPUP_CTA_URL;
cta.target = '_blank';
cta.rel = 'noopener noreferrer';
cta.textContent = POPUP_CTA_TEXT;
contentDiv.appendChild(headline);
contentDiv.appendChild(subheadline);
contentDiv.appendChild(ul);
contentDiv.appendChild(cta);
// Open popup after delay (once per session)
const openPopup = () => {
sessionStorage.setItem(POPUP_SESSION_KEY, '1');
wrapper.classList.add('vf-show');
};
setTimeout(openPopup, POPUP_DELAY_MS);
// Close helpers
const closePopup = () => {
wrapper.classList.remove('vf-show');
};
// Close via X button
if (closeBtn) {
closeBtn.addEventListener('click', (e) => {
e.preventDefault();
closePopup();
});
}
// Close via click outside modal
backdrop.addEventListener('click', (e) => {
if (!modal.contains(e.target)) {
closePopup();
}
});
// Close via ESC key
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') {
closePopup();
}
});
});
});
CSS adicional
/* ================================
BASE POPUP BEHAVIOR
================================ */
/* Wrapper hidden by default, visible when .vf-show is added via JS */
.varify-exitIntent-wrapper {
display: none;
}
.varify-exitIntent-wrapper.vf-show {
display: block;
}
/* Backdrop: dark overlay, only when wrapper has .vf-show */
.varify-exitIntent-backdrop {
display: none !important;
background-color: rgba(0, 0, 0, 0.8) !important;
}
.varify-exitIntent-wrapper.vf-show .varify-exitIntent-backdrop {
display: flex !important;
align-items: center !important;
justify-content: center !important;
position: fixed;
inset: 0;
z-index: 2147483646;
}
/* Optional: if you ever want to lock scroll on the page:
.vf-no-scroll {
overflow: hidden !important;
}
*/
/* Header not needed for this design */
.varify-exitIntent-header {
display: none !important;
}
/* ================================
MODAL STYLING (BLACK FRIDAY LOOK)
================================ */
.varify-exitIntent {
background-color: #000 !important;
color: #fff !important;
border-radius: 10px !important;
box-shadow: 0 0 8px rgb(68 64 64 / 30%) !important;
width: 540px !important;
max-width: 80% !important;
max-height: 80% !important;
position: relative !important;
z-index: 2147483647 !important;
/* above backdrop, below close button */
overflow: visible !important;
/* do not cut off the close button */
}
/* If your HTML has a .varify-exitIntent-inner: scroll only inside */
.varify-exitIntent-inner {
max-height: 80vh;
overflow: auto;
}
/* Content block */
.varify-exitIntent-content {
padding: 30px !important;
text-align: left !important;
}
/* ================================
TEXT STYLES
================================ */
.bf-exit-intent-headline {
font-size: 22px;
font-weight: 800;
margin: 0 0 10px;
color: #fff;
}
.bf-exit-intent-subheadline {
font-size: 18px;
margin: 0 0 15px;
color: #fff;
}
.bf-exit-intent-bullets {
list-style: none;
padding: 0;
margin: 0 0 20px;
}
.bf-exit-intent-bullets li {
margin-bottom: 6px;
padding-left: 20px;
position: relative;
color: #fff;
}
.bf-exit-intent-bullets li:before {
content: "-";
color: #d32c2c;
position: absolute;
left: 0;
top: 0;
}
/* CTA button */
.bf-exit-intent-cta {
display: inline-block;
background-color: #d32c2c;
color: #fff !important;
padding: 10px 20px;
border-radius: 4px;
font-size: 16px;
font-weight: 600;
text-decoration: none !important;
}
.bf-exit-intent-cta:hover {
background-color: #b71c1c;
}
/* ================================
CLOSE BUTTON (X) - ALWAYS ON TOP
================================ */
.varify-exitIntent-close {
position: absolute !important;
top: 12px !important;
right: 12px !important;
width: 28px !important;
height: 28px !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
background: transparent !important;
border: none !important;
cursor: pointer !important;
z-index: 2147483648 !important;
/* above everything */
color: #fff !important;
}
.varify-exitIntent-close-icon {
width: 16px;
height: 16px;
color: #fff !important;
}
Notificação Discreta de Black Friday
Elemento Campaign Booster: Notificação
Uma notificação discreta que aparece no canto inferior esquerdo. Isto permite-te redirecionar o utilizador para outra página de ação sem o incomodar - perfeito para calls-to-action subtis.
JavaScript adicional
window.varify.helpers.onDomLoaded(() => {
// ================================
// CONFIG – YOU CAN EDIT THIS
// ================================
// Notification should be shown only once per browser session
const SESSION_KEY = 'varifyBFNotificationSeen';
// Text content
const INFO_TEXT = 'Black Friday Deal'; // small badge
const HEADLINE_TEXT = 'Black Friday Special'; // main title
const SUBHEADLINE_TEXT = 'Save 30% on everything today'; // sub text
const CTA_TEXT = 'Save now →'; // CTA label
// Link for CTA and full notification
const CTA_LINK = 'YOUR_LANDING_PAGE_URL';
// ================================
// RUNTIME LOGIC – DO NOT TOUCH :)
// ================================
function isInEditor() {
const p = new URLSearchParams(location.search);
return p.has('varify-variation-name') || p.has('varify-variation-id');
}
if (isInEditor()) return;
window.varify.helpers.waitFor('.varify-notification-content', () => {
const contentDiv = document.querySelector('.varify-notification-content');
const wrapper = document.querySelector('.varify-notification-wrapper');
const notification = document.querySelector('.varify-notification');
const closeBtn = document.querySelector('.varify-notification-close');
const wrapperLink = document.querySelector('.varify-notification-link');
if (!contentDiv || !notification) return;
const alreadySeen = sessionStorage.getItem(SESSION_KEY) === '1';
// === If already seen: hide everything immediately and do nothing further ===
if (alreadySeen) {
if (wrapper) wrapper.style.display = 'none';
notification.style.display = 'none';
return;
}
// === First session review – set content ===
// Info badge
let infoDiv = contentDiv.querySelector('.webinar-info');
if (!infoDiv) {
infoDiv = document.createElement('div');
infoDiv.className = 'webinar-info';
contentDiv.insertBefore(infoDiv, contentDiv.firstChild);
}
infoDiv.textContent = INFO_TEXT;
// Headline
const headlineEl = contentDiv.querySelector('.varify-notification-headline');
if (headlineEl) {
headlineEl.textContent = HEADLINE_TEXT;
}
// Subheadline
const subEl = contentDiv.querySelector('.varify-notification-text');
if (subEl) {
subEl.textContent = SUBHEADLINE_TEXT;
}
// CTA inside notification
let ctaEl = contentDiv.querySelector('.webinar-signup');
if (!ctaEl) {
ctaEl = document.createElement('a');
ctaEl.className = 'webinar-signup';
contentDiv.appendChild(ctaEl);
}
ctaEl.textContent = CTA_TEXT;
ctaEl.href = CTA_LINK;
ctaEl.target = '_blank';
ctaEl.rel = 'noopener noreferrer';
// whole notification clickable
if (wrapperLink) {
wrapperLink.href = CTA_LINK;
wrapperLink.target = '_blank';
wrapperLink.rel = 'noopener noreferrer';
}
// Mark as 'seen' from now on
sessionStorage.setItem(SESSION_KEY, '1');
// Close-Button: versteckt Notification komplett (Session-Flag bleibt)
if (closeBtn) {
closeBtn.addEventListener('click', (e) => {
e.preventDefault();
if (wrapper) wrapper.style.display = 'none';
notification.style.display = 'none';
});
}
});
});
CSS adicional
/* Black box with white text */
.varify-notification.v_animated.v_animation.varify-init {
background-color: #000 !important;
color: #fff !important;
}
/* Headline and text in white */
.varify-notification-headline,
.varify-notification-text {
color: #fff !important;
}
/* Text margin at the bottom */
.varify-notification-text {
margin-bottom: 5px !important;
}
/* CTA text style */
.webinar-signup {
color: #fff !important;
font-size: 14px !important;
font-weight: 600 !important;
text-decoration: none !important;
}
.webinar-signup:hover {
text-decoration: underline !important;
}
/* Make the close icon (X) visible */
.varify-notification-close {
color: #fff !important;
}
/* Bubble design for "Black Friday Deal" */
.webinar-info {
background-color: #d32c2c !important;
/* red bubble */
color: #fff !important;
/* white text */
border-radius: var(--border-radius--200) !important;
font-weight: 600 !important;
font-size: 12px !important;
padding: 2px 6px !important;
max-width: 160px !important;
text-align: center !important;
margin-bottom: 8px !important;
margin-top: 6px !important;
}
/* ---------- MOBILE ADJUSTMENTS ---------- */
@media (max-width: 767px) {
.varify-notification-headline {
font-size: 14px !important;
}
.varify-notification-text {
font-size: 12px !important;
margin-bottom: 4px !important;
}
.webinar-info {
font-size: 10px !important;
padding: 1px 4px !important;
max-width: 120px !important;
margin-bottom: 6px !important;
}
.webinar-signup {
font-size: 12px !important;
}
}
@media (max-width: 576px) {
/* Smaller overall box */
.varify-notification {
padding: 8px 10px !important;
min-width: 200px !important;
max-width: 260px !important;
border-radius: 3px !important;
bottom: 20px !important;
left: 20px !important;
}
/* Smaller headline */
.varify-notification-headline {
font-size: 13px !important;
line-height: 1.2 !important;
margin-bottom: 2px !important;
}
/* Smaller subheadline */
.varify-notification-text {
font-size: 11px !important;
line-height: 1.2 !important;
}
/* Smaller badge */
.webinar-info {
font-size: 10px !important;
padding: 1px 4px !important;
max-width: 100px !important;
margin-bottom: 4px !important;
}
/* Smaller Close-X */
.varify-notification-close {
font-size: 16px !important;
width: 12px !important;
height: 12px !important;
right: 10px !important;
margin-top: -6px !important;
}
}
Barra de Informação de Black Friday
Elemento Campaign Booster: Barra de informação
Com a Info Bar podes apresentar três conteúdos diferentes e substituir o SVG pelo teu próprio design. As tags também podem ser personalizadas e o elemento todo é um link, para que possas apontar facilmente para onde quiseres.
JavaScript adicional
window.varify.helpers.waitFor('.varify-usp-bar', (bar) => {
// === SETTINGS FOR YOU ===
const headlines = [
'30% OFF EVERYTHING',
'30% OFF EVERYTHING',
'30% OFF EVERYTHING'
];
const mobileHeadline = '30% OFF EVERYTHING - MOBILE SPECIAL';
const targetUrl = 'YOUR_LANDING_PAGE_URL';
const iconVariant = 'cross';
const crossIconSvg =
'';
const defaultIconSvg =
'';
const isMobile = window.matchMedia('(max-width: 767px)').matches;
if (isMobile) {
bar.classList.add('varify-usp-bar--mobile-single');
}
// === APPLY TEXTS ===
bar.querySelectorAll('.varify-usp-bar-headline').forEach((el, idx) => {
if (isMobile) {
el.textContent = mobileHeadline;
} else {
el.textContent = headlines[idx] || headlines[0];
}
});
// === APPLY ICONS ===
bar.querySelectorAll('.varify-usp-bar-icon').forEach((el) => {
el.innerHTML = iconVariant === 'cross' ? crossIconSvg : defaultIconSvg;
});
// === MAKE THE BAR CLICKABLE ===
bar.addEventListener('click', (evt) => {
if (evt.target.closest('.varify-usp-bar-close')) return;
window.location.href = targetUrl;
});
// ------------------------------------------------------------------
// === MOBILE FEATURE (NEW - REST UNCHANGED) ===
// ------------------------------------------------------------------
if (isMobile) {
// only the first USP remains visible
const usps = bar.querySelectorAll('.varify-usp-bar-usp');
usps.forEach((usp, index) => { {
if (index > 0) {
usp.style.display = 'none';
}
});
}
});
CSS adicional
/* Black Friday styling: black background, white text, hide subtext */
.varify-usp-bar-wrapper,
.varify-usp-bar {
background-color: #000 !important;
color: #fff !important;
}
.varify-usp-bar-headline {
color: #fff !important;
font-size: 18px !important;
font-weight: 700 !important;
}
.varify-usp-bar-text {
display: none !important;
/* Remove subheadline; only headlines remain */
}
.varify-usp-bar-icon svg {
fill: #fff !important;
stroke: #fff !important;
width: 24px;
height: 24px;
}
/* Shows the mouse pointer as a „link hand“ over the entire bar */
.varify-usp-bar-wrapper {
cursor: pointer;
}
/* Ensures that the closing X remains visible and is not affected by the icon swap */
.varify-usp-bar-close {
color: #ffffffff !important;
/* White X on black background */
cursor: default;
/* Default cursor to differentiate the close button from the clickable rest */
}
@media (max-width: 767px) {
.varify-usp-bar.varify-usp-bar--mobile-single {
text-align: center;
}
/* Customize .varify-usp-bar-item to your column class */
.varify-usp-bar.varify-usp-bar--mobile-single .varify-usp-bar-item:not(:first-child) {
display: none;
}
.varify-usp-bar-icon {
width: 61px !important;
height: 61px !important;
}
}
Exit Intent de Black Friday - Imagem
Elemento Campaign Booster: Exit Intent (Desktop)
Quando um utilizador quer abandonar a página, aparece um pop-up com uma imagem. Perfeito para captar a atenção mais uma vez antes de o utilizador sair da página.
JavaScript adicional
window.varify.helpers.onDomLoaded(() => {
/* === YOUR SETTINGS === */
const imgSrc = "YOUR_IMAGE_URL";
const targetUrl = "YOUR_LANDING_PAGE_URL"; // Link for the image
const sessionKey = "varify_exit_popup_seen"; // Do not change
/* ========================= */
// Do not run in editor
function isInEditor() {
const p = new URLSearchParams(location.search);
return p.has("varify-variation-name") || p.has("varify-variation-id");
}
if (isInEditor()) return;
// Do not show more than once per session
if (sessionStorage.getItem(sessionKey)) return;
window.varify.helpers.waitFor('.varify-exitIntent-content', (contentDiv) => {
const wrapper = document.querySelector('.varify-exitIntent-wrapper');
const backdrop = document.querySelector('.varify-exitIntent-backdrop');
const modal = document.querySelector('.varify-exitIntent');
const closeBtn = document.querySelector('.varify-exitIntent-close');
if (!wrapper || !backdrop || !modal || !closeBtn) return;
// Replace content with image popup
contentDiv.innerHTML = "";
const link = document.createElement("a");
link.href = targetUrl;
link.target = "_blank";
link.rel = "noopener noreferrer";
const img = document.createElement("img");
img.src = imgSrc;
img.alt = "Black Friday Image";
img.style.display = "block";
img.style.width = "100%";
img.style.height = "auto";
link.appendChild(img);
contentDiv.appendChild(link);
// Exit intent trigger
const exitHandler = (e) => {
if (e.clientY {
if (!modal.contains(evt.target)) closePopup();
});
closeBtn.addEventListener("click", (e) => {
e.preventDefault();
closePopup();
});
document.addEventListener("keydown", (e) => {
if (e.key === "Escape") closePopup();
});
});
});
CSS adicional
/* Backdrop hidden by default */
.varify-exitIntent-backdrop {
display: none !important;
background-color: rgba(0, 0, 0, 0.8) !important;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
justify-content: center;
align-items: center;
}
/* Show popup only when wrapper has vf-show */
.varify-exitIntent-wrapper.vf-show .varify-exitIntent-backdrop {
display: flex !important;
}
/* Prevent scroll when popup is open */
.vf-no-scroll {
overflow: hidden !important;
}
/* Content is just the image, so remove padding */
.varify-exitIntent-content {
padding: 0 !important;
}
/* Modal background black */
.varify-exitIntent {
background: #000 !important;
border-radius: 8px !important;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
width: 540px;
max-width: 90%;
max-height: 90%;
overflow: hidden;
/* important so image never overflows */
position: relative;
}
/* Close button always visible above image */
.varify-exitIntent-close {
position: absolute;
right: 8px;
top: 8px;
width: 28px;
height: 28px;
background: rgba(255, 255, 255, 0.9);
border-radius: 50%;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.varify-exitIntent-close-icon {
width: 14px;
height: 14px;
color: #000 !important;
}
.varify-exitIntent-header {
display: none !important;
}
Exit Intent de Black Friday - Conteúdo
Elemento Campaign Booster: Exit Intent (Desktop)
Este popup aparece quando o utilizador quer abandonar a página e contém texto, pontos e um botão. Podes personalizar o conteúdo como quiseres para trazer o utilizador de volta.
JavaScript adicional
window.varify.helpers.onDomLoaded(() => {
// ================================
// CONFIG – YOU CAN EDIT THIS
// ================================
// Unique key for this popup. Change if you want a separate session logic.
const POPUP_SESSION_KEY = 'varifyBFContentExitPopupSeen';
// Popup texts
const POPUP_HEADLINE = 'Black Friday Mega Deal!';
const POPUP_SUBHEADLINE = 'Don\'t miss our biggest discounts';
// Bullet points (each entry = one bullet line)
const POPUP_BULLETS = [
'Up to 50% off everything',
'Free shipping on all orders',
'Limited time offer'
];
// CTA button
const POPUP_CTA_URL = 'YOUR_LANDING_PAGE_URL'; // landing page URL
const POPUP_CTA_TEXT = 'Save Now →'; // CTA label
// Exit intent sensitivity (keep it simple: trigger when mouse leaves at top)
const EXIT_TRIGGER_Y = 0;
// ================================
// RUNTIME LOGIC – DO NOT TOUCH :)
// ================================
// Do not run inside Varify editor
function isInEditor() {
const p = new URLSearchParams(location.search);
return p.has('varify-variation-name') || p.has('varify-variation-id');
}
if (isInEditor()) return;
// Do not show more than once per session
if (sessionStorage.getItem(POPUP_SESSION_KEY) === '1') return;
window.varify.helpers.waitFor('.varify-exitIntent-content', (contentDiv) => {
const wrapper = document.querySelector('.varify-exitIntent-wrapper');
const backdrop = document.querySelector('.varify-exitIntent-backdrop');
const modal = document.querySelector('.varify-exitIntent');
const closeBtn = document.querySelector('.varify-exitIntent-close');
if (!wrapper || !backdrop || !modal || !closeBtn || !contentDiv) return;
let popupOpened = false;
// Ensure close button is inside modal so it overlays the content
if (closeBtn.parentElement !== modal) {
modal.appendChild(closeBtn);
}
// Build popup content (headline, subheadline, bullets, CTA)
contentDiv.innerHTML = '';
contentDiv.style.textAlign = 'left';
const headline = document.createElement('p');
headline.className = 'bf-exit-intent-headline';
headline.textContent = POPUP_HEADLINE;
const subheadline = document.createElement('p');
subheadline.className = 'bf-exit-intent-subheadline';
subheadline.textContent = POPUP_SUBHEADLINE;
const ul = document.createElement('ul');
ul.className = 'bf-exit-intent-bullets';
POPUP_BULLETS.forEach((txt) => {
const li = document.createElement('li');
li.textContent = txt;
ul.appendChild(li);
});
const cta = document.createElement('a');
cta.className = 'bf-exit-intent-cta';
cta.href = POPUP_CTA_URL;
cta.target = '_blank';
cta.rel = 'noopener noreferrer';
cta.textContent = POPUP_CTA_TEXT;
contentDiv.appendChild(headline);
contentDiv.appendChild(subheadline);
contentDiv.appendChild(ul);
contentDiv.appendChild(cta);
// Exit-intent trigger (simple: mouse leaves at top)
const exitHandler = (e) => {
if (popupOpened) return;
// nur reagieren, wenn Maus oben rausgeht
if (e.clientY > EXIT_TRIGGER_Y) return;
openPopup();
popupOpened = true;
document.removeEventListener('mouseout', exitHandler);
};
document.addEventListener('mouseout', exitHandler);
function openPopup() {
sessionStorage.setItem(POPUP_SESSION_KEY, '1');
wrapper.classList.add('vf-show');
backdrop.style.display = '';
document.documentElement.classList.add('vf-no-scroll');
document.body.classList.add('vf-no-scroll');
}
function closePopup() {
wrapper.classList.remove('vf-show');
backdrop.style.display = 'none';
document.documentElement.classList.remove('vf-no-scroll');
document.body.classList.remove('vf-no-scroll');
}
// Outside click closes
backdrop.addEventListener('click', (evt) => {
if (!modal.contains(evt.target)) closePopup();
});
// X button closes
closeBtn.addEventListener('click', (e) => {
e.preventDefault();
closePopup();
});
// ESC closes
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') closePopup();
});
});
});
CSS adicional
/* ---------------------------------------------
Backdrop hidden by default
--------------------------------------------- */
.varify-exitIntent-backdrop {
display: none !important;
background-color: rgba(0, 0, 0, 0.8) !important;
position: fixed !important;
top: 0;
bottom: 0;
left: 0;
right: 0;
justify-content: center;
align-items: center;
z-index: 2147483646 !important;
}
/* ---------------------------------------------
Show popup when wrapper has .vf-show
--------------------------------------------- */
.varify-exitIntent-wrapper.vf-show .varify-exitIntent-backdrop {
display: flex !important;
}
/* ---------------------------------------------
Prevent page from scrolling while popup is open
--------------------------------------------- */
.vf-no-scroll {
overflow: hidden !important;
}
/* ---------------------------------------------
Modal styling (for popup with content)
--------------------------------------------- */
.varify-exitIntent {
background-color: #000 !important;
color: #fff !important;
border-radius: 10px !important;
box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
width: 540px !important;
max-width: 90% !important;
max-height: 90% !important;
overflow: visible !important;
position: relative !important;
padding: 0 !important;
z-index: 2147483647 !important;
}
/* ---------------------------------------------
Content Area
--------------------------------------------- */
.varify-exitIntent-content {
padding: 30px !important;
text-align: left !important;
}
/* ---------------------------------------------
Hide default unused header block
--------------------------------------------- */
.varify-exitIntent-header {
display: none !important;
}
/* ---------------------------------------------
Close button (always visible above content)
--------------------------------------------- */
.varify-exitIntent-close {
position: absolute !important;
top: 12px !important;
right: 12px !important;
width: 28px !important;
height: 28px !important;
border-radius: 50% !important;
background: rgba(255, 255, 255, 0.9) !important;
color: #000 !important;
z-index: 2147483648 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
cursor: pointer !important;
padding: 0 !important;
}
.varify-exitIntent-close-icon {
width: 14px !important;
height: 14px !important;
color: #000 !important;
}
/* ---------------------------------------------
Typography for content popup
--------------------------------------------- */
.bf-exit-intent-headline {
font-size: 22px !important;
font-weight: 800 !important;
margin: 0 0 10px !important;
color: #fff !important;
}
.bf-exit-intent-subheadline {
font-size: 18px !important;
margin: 0 0 15px !important;
color: #fff !important;
}
/* ---------------------------------------------
Bullet list
--------------------------------------------- */
.bf-exit-intent-bullets {
list-style: none !important;
padding: 0 !important;
margin: 0 0 20px !important;
}
.bf-exit-intent-bullets li {
margin-bottom: 6px !important;
padding-left: 20px !important;
position: relative !important;
color: #fff !important;
}
.bf-exit-intent-bullets li::before {
content: "-" !important;
color: #d32c2c !important;
position: absolute !important;
left: 0 !important;
top: 0 !important;
}
/* ---------------------------------------------
CTA button
--------------------------------------------- */
.bf-exit-intent-cta {
display: inline-block !important;
background-color: #d32c2c !important;
color: #fff !important;
padding: 10px 20px !important;
border-radius: 4px !important;
font-size: 16px !important;
font-weight: 600 !important;
text-decoration: none !important;
}
.bf-exit-intent-cta:hover {
background-color: #b71c1c !important;
}
/* ---------------------------------------------
Responsive tweaks for very small viewports
--------------------------------------------- */
@media only screen and (max-height: 700px) {
.varify-exitIntent {
max-height: 75% !important;
}
}
@media only screen and (max-width: 380px) {
.varify-exitIntent-content {
padding: 20px !important;
}
.bf-exit-intent-headline {
font-size: 19px !important;
}
.bf-exit-intent-subheadline {
font-size: 16px !important;
}
}
Entra em produção antes do pico de tráfego
Escolhe o elemento, define o público e as datas, e verifica a variante com o link de pré-visualização e o modo QA antes do pico de tráfego.
Prepara o teu banner de Black Friday antes do pico de tráfego.
Descreve o banner ao PBX ou ativa um elemento do Campaign Booster no Editor Visual, verifica-o com o modo QA e coloca-o em produção.