Skip to content

Instantly share code, notes, and snippets.

@LucasGorgal
LucasGorgal / redirecionador.js
Last active September 3, 2021 17:35
Redirecionador temporal
date = new Date();
let timeSaoPaulo = date.toLocaleString('pt-BR', {timeZone: 'America/Sao_Paulo'});
let meAvisaURL = 'https://metodoreorganize.com.br/meavisa';
let matriculaURL = 'https://metodoreorganize.com.br/matricula-teste';
if(timeSaoPaulo <= "02/09/2021 20:00:00") { //Redireciona para o /meavisa até dia 02/09 às 20h
window.location.replace(meAvisaURL);
} else if(timeSaoPaulo > "02/09/2021 20:00:00" || timeSaoPaulo <= "11/09/2021 00:00:00") { //Redireciona para /matricula entre 02/09 de 20h até 11/09 até 00h
window.location.replace(matriculaURL);
@LucasGorgal
LucasGorgal / ep.php
Created October 13, 2021 13:54
VPO_202110
<?php
$ep = $_GET['ep'];
if($ep == '1') {
$video_id = "ZacEikh8kVQ";
} elseif($ep == '2') {
$video_id = "3wJo0_zqi3s";
} elseif($ep == '3') {
$video_id = "gu-Jz6b7DzQ";
@LucasGorgal
LucasGorgal / index.html
Created October 19, 2021 01:09
recaptcha
<!DOCTYPE html>
<!--[ page_style CHECK = p ]-->
<!--[if IE 8]>
<html id="ie8" lang="pt-BR"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://ogp.me/ns/fb#" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">
@LucasGorgal
LucasGorgal / all.html
Created January 23, 2023 23:57
Trackeamento todas as páginas (Analytics 4 + FB Pixel + GAds Tag)
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-QCJZBJ31CG"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-QCJZBJ31CG');
</script>
<!-- Meta Pixel Code -->
@LucasGorgal
LucasGorgal / code.js
Created January 24, 2023 00:03
Trackeamento por botão da aula 1
Botão 1 (Entrar grupo WhatsApp):
gtag('event', 'acao_blog_cpl', {
'aula': '1',
'passo': '1',
'acao': 'entrar grupo whatsapp'
});
No head
<!-- Meta Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];