This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Nome da Página no Sheet | |
var sheetName = "Dados"; | |
// Id do Usuário do Instagram | |
var user_id = ""; | |
var instagram_base_url = "https://www.instagram.com/graphql/query/"; | |
var followers = "?query_hash=37479f2b8209594dde7facb0d904896a&variables=%7B%22id%22%3A%22" + user_id + "%22%2C%22first%22%3A24%7D" | |
var medias = "?query_hash=f2405b236d85e8296cf30347c9f08c2a&variables=%7B%22id%22%3A%22" + user_id + "%22%2C%22first%22%3A12%7D" | |
function insertFollowerCount() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adicionar no <head> | |
1) Na página de captura | |
<!-- Pinterest Tag --> | |
<script> | |
!function(e){if(!window.pintrk){window.pintrk = function () { | |
window.pintrk.queue.push(Array.prototype.slice.call(arguments))};var | |
n=window.pintrk;n.queue=[],n.version="3.0";var |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.youtube.com/watch?v=dSkluUiQi5s | |
https://www.youtube.com/watch?v=63GRwv2TGWw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.youtube.com/watch?v=apYJ1w1PzPo | |
https://www.youtube.com/watch?v=Sbc20uMgTRg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$cpl = $_GET['cpl']; | |
if($cpl == 1) { | |
$video_id = "f8h-2PCNdhs"; | |
$google_ads_conversion = "AW-941768981/vMn6CLbi7JECEJWCicED"; | |
} elseif($cpl == 2) { | |
$video_id = "kcd5pckdKnY"; | |
$google_ads_conversion = "AW-941768981/pIrECNbk7JECEJWCicED"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function lead_event($pixelid, $access_token, $email) { | |
$email_sha = hash("sha256", mb_strtolower($email)); | |
$time = time(); | |
$fbc = $_COOKIE['_fbc']; | |
$fbp = $_COOKIE['_fbp']; | |
$user_ip = $_SERVER['REMOTE_ADDR']; | |
$user_agent = $_SERVER['HTTP_USER_AGENT']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$userIP = $_SERVER['REMOTE_ADDR']; | |
$userAgent = $_SERVER['HTTP_USER_AGENT']; | |
$fbclid = $_GET['fbclid']; | |
$fbc_cookie = "fb.1." .round(microtime(true) * 1000) ."." .$fbclid; | |
$page_url = "https://site.com/redirecionamento.php"; //endereço onde está localizado o script | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$cpl = $_GET['cpl']; | |
if($cpl == 1) { | |
$video_id = "ArqNAoReTtI"; | |
$google_ads_conversion = "AW-941768981/F3JqCKun69oCEJWCicED"; | |
} elseif($cpl == 2) { | |
$video_id = "qSy16Sop8AI"; | |
$google_ads_conversion = "AW-941768981/5M_oCOqw69oCEJWCicED"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$email = $_POST['email']; | |
$time = time(); | |
$event_id = hash("sha256", $email .$time); | |
//FB token | |
$access_token = 'FACEBOOK ACCESS TOKEN'; | |
//Insert into FB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$video_id = "a8D1eF5NBCg"; //Id do vídeo do YT | |
$ipod = stripos($_SERVER['HTTP_USER_AGENT'], "iPod"); | |
$iphone = stripos($_SERVER['HTTP_USER_AGENT'], "iPhone"); | |
$android = stripos($_SERVER['HTTP_USER_AGENT'], "Android"); | |
if($ipod || $iphone) { | |
$url = "vnd.youtube://www.youtube.com/watch?v=$video_id&v=$video_id"; |