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
<script> | |
// verifica se tem o cookie da Natura | |
var racc_origin = document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*racc_origin\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1"); | |
// se origem de tráfego for Natura | |
if (racc_origin && document.referrer.indexOf('/signup') >= 0) { | |
var urlPixel = 'https://www.facebook.com/tr/?id=235391240155676&ev=Lead&dl=' + encodeURIComponent(document.location.href) + '&rl=' + encodeURIComponent(document.referrer) + '&if=false&ts=' + Date.now() + '&cd%5Bsite_name%5D=Geekie&cd%5Bcontent%5D=Cadastro%20Finalizado&v=2.7.19&ec=1&o=28'; | |
var pixel = document.createElement('img'); | |
pixel.width = '1'; | |
pixel.height = '1'; |
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
<script> | |
// verifica se tem o cookie da Natura | |
var racc_origin = document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*racc_origin\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1"); | |
// se origem de tráfego for Natura | |
if (racc_origin) { | |
var urlPixel = 'https://www.facebook.com/tr/?id=235391240155676&ev=PageView&dl=' + encodeURIComponent(document.location.href) + '&rl=' + encodeURIComponent(document.referrer) + '&if=false&ts=' + Date.now() + '&cd%5Bsite_name%5D=Geekie&v=2.7.19&ec=0&o=28'; | |
var pixel = document.createElement('img'); | |
pixel.width = '1'; | |
pixel.height = '1'; |
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
<script> | |
// somente dispara o pixel do facebook se a origem for Natura | |
if (document.referrer.indexOf('consultoria.natura.com.br') >= 0) { | |
// grava o cookie racc_origin=natura do domínio geekie.com.br por 7 dias, | |
// para capturar o cadastro final se este não for realizado na mesma sessão. | |
document.cookie = 'racc_origin=natura; expires=' + new Date(Date.now() + 7 * 24 * 60 * 60 * 1000).toUTCString() + '; domain=geekie.com.br; path=/;'; | |
/* | |
monta o pixel do facebook manualmente. Equivale a: | |
fbq('init', '235391240155676'); | |
fbq('track', 'PageView', { 'site_name': 'Geekie' }); |
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
<script> | |
var racc_hitsent = document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*racc_hitsent\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1"); | |
if (!racc_hitsent) { | |
var urlPixel = 'https://www.facebook.com/tr/?id=235391240155676&ev=Lead&dl=' + encodeURIComponent(document.location.href) + '&rl=' + encodeURIComponent(document.referrer) + '&if=false&ts=' + Date.now() + '&cd%5Bsite_name%5D=Wizard&cd%5Bcontent%5D=Cadastro%20Finalizado&v=2.7.19&ec=1&o=28'; | |
var pixel = document.createElement('img'); | |
pixel.width = '1'; | |
pixel.height = '1'; | |
pixel.style.display = 'none'; | |
pixel.src = urlPixel; | |
document.body.appendChild(pixel); |
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
<script> | |
// verifica se tem o cookie da Natura | |
var racc_origin = document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*racc_origin\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1"); | |
// se origem de tráfego for Natura | |
if (racc_origin) { | |
var urlPixel = 'https://www.facebook.com/tr/?id=235391240155676&ev=Lead&dl=' + encodeURIComponent(document.location.href) + '&rl=' + encodeURIComponent(document.referrer) + '&if=false&ts=' + Date.now() + '&cd%5Bsite_name%5D=Est%C3%A1cio&cd%5Bcontent%5D=Cadastro%20Finalizado%20Graduacao&v=2.7.19&ec=1&o=28'; | |
var pixel = document.createElement('img'); | |
pixel.width = '1'; | |
pixel.height = '1'; |
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
<script> | |
// somente dispara o pixel do facebook se a origem for Natura | |
if (document.referrer.indexOf('consultoria.natura.com.br') >= 0) { | |
var urlPixel = 'https://www.facebook.com/tr/?id=235391240155676&ev=PageView&dl=' + encodeURIComponent(document.location.href) + '&rl=' + encodeURIComponent(document.referrer) + '&if=false&ts=' + Date.now() + '&cd%5Bsite_name%5D=Wizard&v=2.7.19&ec=0&o=28'; | |
var pixel = document.createElement('img'); | |
pixel.width = '1'; | |
pixel.height = '1'; | |
pixel.style.display = 'none'; | |
pixel.src = urlPixel; | |
document.body.appendChild(pixel); |
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
<script> | |
// verifica se tem o cookie da Natura | |
var racc_origin = document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*racc_origin\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1"); | |
// se origem de tráfego for Natura | |
if (racc_origin && /[?&]i=\w+/.test(location.search)) { | |
var urlPixel = 'https://www.facebook.com/tr/?id=235391240155676&ev=Lead&dl=' + encodeURIComponent(document.location.href) + '&rl=' + encodeURIComponent(document.referrer) + '&if=false&ts=' + Date.now() + '&cd%5Bsite_name%5D=Est%C3%A1cio&cd%5Bcontent%5D=Cadastro%20Finalizado%20Pos-Graduacao&v=2.7.19&ec=1&o=28'; | |
var pixel = document.createElement('img'); | |
pixel.width = '1'; | |
pixel.height = '1'; |
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
<script> | |
// verifica se tem o cookie da Natura | |
var racc_origin = document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*racc_origin\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1"); | |
// se origem de tráfego for Natura | |
if (racc_origin) { | |
var urlPixel = 'https://www.facebook.com/tr/?id=235391240155676&ev=Lead&dl=' + encodeURIComponent(document.location.href) + '&rl=' + encodeURIComponent(document.referrer) + '&if=false&ts=' + Date.now() + '&cd%5Bsite_name%5D=Est%C3%A1cio&cd%5Bcontent%5D=Cadastro%20Finalizado%20Graduacao&v=2.7.19&ec=1&o=28'; | |
var pixel = document.createElement('img'); | |
pixel.width = '1'; | |
pixel.height = '1'; |
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
<script> | |
// verifica se tem o cookie da Natura | |
var racc_origin = document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*racc_origin\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1"); | |
// se origem de tráfego for Natura | |
if (racc_origin) { | |
var urlPixel = 'https://www.facebook.com/tr/?id=235391240155676&ev=PageView&dl=' + encodeURIComponent(document.location.href) + '&rl=' + encodeURIComponent(document.referrer) + '&if=false&ts=' + Date.now() + '&cd%5Bsite_name%5D=Est%C3%A1cio&v=2.7.19&ec=0&o=28'; | |
var pixel = document.createElement('img'); | |
pixel.width = '1'; | |
pixel.height = '1'; |
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
<script> | |
// somente dispara o pixel do facebook se a origem for Natura | |
if (document.referrer.indexOf('consultoria.natura.com.br') >= 0) { | |
// grava o cookie racc_origin=natura do domínio estacio.br por 7 dias, | |
// para capturar o cadastro final se este não for realizado na mesma sessão. | |
document.cookie = 'racc_origin=natura; expires=' + new Date(Date.now() + 7 * 24 * 60 * 60 * 1000).toUTCString() + '; domain=estacio.br; path=/;'; | |
/* | |
monta o pixel do facebook manualmente. Equivale a: | |
fbq('init', '235391240155676'); |
NewerOlder