feat: adiciona meta pixel e eventos viewcontent, initiatecheckout e purchase
This commit is contained in:
parent
5bded58818
commit
9203dca890
4 changed files with 28 additions and 5 deletions
|
|
@ -103,6 +103,7 @@
|
||||||
t.src=v;s=b.getElementsByTagName(e)[0];
|
t.src=v;s=b.getElementsByTagName(e)[0];
|
||||||
s.parentNode.insertBefore(t,s)}(window, document,'script',
|
s.parentNode.insertBefore(t,s)}(window, document,'script',
|
||||||
'https://connect.facebook.net/en_US/fbevents.js');
|
'https://connect.facebook.net/en_US/fbevents.js');
|
||||||
|
|
||||||
fbq('init', '1494357542144348');
|
fbq('init', '1494357542144348');
|
||||||
fbq('track', 'PageView');
|
fbq('track', 'PageView');
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -111,9 +112,10 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Facebook Pixel (noscript) -->
|
<!-- Facebook Pixel (noscript) -->
|
||||||
<noscript><img height="1" width="1" style="display:none"
|
<noscript>
|
||||||
src="https://www.facebook.com/tr?id=1494357542144348&ev=PageView&noscript=1"
|
<img height="1" width="1" style="display:none"
|
||||||
/></noscript>
|
src="https://www.facebook.com/tr?id=1494357542144348&ev=PageView&noscript=1"/>
|
||||||
|
</noscript>
|
||||||
<!-- ============================================== -->
|
<!-- ============================================== -->
|
||||||
<!-- GTM (NOSCRIPT) PARA O BODY -->
|
<!-- GTM (NOSCRIPT) PARA O BODY -->
|
||||||
<!-- ============================================== -->
|
<!-- ============================================== -->
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,15 @@ export default function CTA() {
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div className="flex flex-col items-center justify-center gap-6">
|
<div className="flex flex-col items-center justify-center gap-6">
|
||||||
<a href="#oferta" className="h-16 px-12 rounded-full bg-gradient-to-r from-pink-500 to-violet-500 text-white font-bold text-xl flex items-center justify-center gap-3 hover:scale-105 transition-all shadow-[0_0_40px_rgba(236,72,153,0.5)]">
|
<a
|
||||||
|
href="#oferta"
|
||||||
|
onClick={() => {
|
||||||
|
if (typeof window !== 'undefined' && 'fbq' in window) {
|
||||||
|
(window as any).fbq('track', 'InitiateCheckout');
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
className="h-16 px-12 rounded-full bg-gradient-to-r from-pink-500 to-violet-500 text-white font-bold text-xl flex items-center justify-center gap-3 hover:scale-105 transition-all shadow-[0_0_40px_rgba(236,72,153,0.5)]"
|
||||||
|
>
|
||||||
Criar Minha Festa Agora <Sparkles className="w-5 h-5 animate-pulse" />
|
Criar Minha Festa Agora <Sparkles className="w-5 h-5 animate-pulse" />
|
||||||
</a>
|
</a>
|
||||||
<span className="text-indigo-300 font-medium text-sm">
|
<span className="text-indigo-300 font-medium text-sm">
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,15 @@ export default function Hero() {
|
||||||
transition={{ duration: 0.5, delay: 0.4 }}
|
transition={{ duration: 0.5, delay: 0.4 }}
|
||||||
className="flex flex-col sm:flex-row items-center gap-4 w-full justify-center lg:justify-start"
|
className="flex flex-col sm:flex-row items-center gap-4 w-full justify-center lg:justify-start"
|
||||||
>
|
>
|
||||||
<a href="#oferta" className="w-full sm:w-auto h-16 px-10 rounded-full bg-gradient-to-r from-pink-500 to-violet-500 text-white font-bold text-xl flex items-center justify-center gap-3 hover:scale-105 hover:shadow-2xl transition-all shadow-xl shadow-pink-500/30">
|
<a
|
||||||
|
href="#oferta"
|
||||||
|
onClick={() => {
|
||||||
|
if (typeof window !== 'undefined' && 'fbq' in window) {
|
||||||
|
(window as any).fbq('track', 'InitiateCheckout');
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
className="w-full sm:w-auto h-16 px-10 rounded-full bg-gradient-to-r from-pink-500 to-violet-500 text-white font-bold text-xl flex items-center justify-center gap-3 hover:scale-105 hover:shadow-2xl transition-all shadow-xl shadow-pink-500/30"
|
||||||
|
>
|
||||||
Criar Minha Festa Agora <Wand2Icon className="w-6 h-6" />
|
Criar Minha Festa Agora <Wand2Icon className="w-6 h-6" />
|
||||||
</a>
|
</a>
|
||||||
<div className="flex flex-col items-center sm:items-start text-indigo-600/70 text-xs sm:text-sm mt-3 sm:mt-0 font-medium">
|
<div className="flex flex-col items-center sm:items-start text-indigo-600/70 text-xs sm:text-sm mt-3 sm:mt-0 font-medium">
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,11 @@ export default function StickyMobileCTA() {
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href="#oferta"
|
href="#oferta"
|
||||||
|
onClick={() => {
|
||||||
|
if (typeof window !== 'undefined' && 'fbq' in window) {
|
||||||
|
(window as any).fbq('track', 'InitiateCheckout');
|
||||||
|
}
|
||||||
|
}}
|
||||||
className="w-full h-14 rounded-full bg-gradient-to-r from-pink-500 to-violet-500 text-white font-bold text-lg flex items-center justify-center gap-2 shadow-[0_10px_40px_-10px_rgba(236,72,153,0.8)] border border-white/20 active:scale-95 transition-transform"
|
className="w-full h-14 rounded-full bg-gradient-to-r from-pink-500 to-violet-500 text-white font-bold text-lg flex items-center justify-center gap-2 shadow-[0_10px_40px_-10px_rgba(236,72,153,0.8)] border border-white/20 active:scale-95 transition-transform"
|
||||||
>
|
>
|
||||||
Criar Minha Festa <Wand2 className="w-5 h-5" />
|
Criar Minha Festa <Wand2 className="w-5 h-5" />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue