Last active
August 9, 2017 15:06
-
-
Save lcrespilho/a3113a5de2470f3761ed066619e2da72 to your computer and use it in GitHub Desktop.
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"); | |
if (document.referrer.indexOf('loja.meutem.com.br/saude/natura') >= 0 || racc_origin) { | |
!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];s.parentNode.insertBefore(t,s)}(window, | |
document,'script','https://connect.facebook.net/en_US/fbevents.js'); | |
fbq('init', '235391240155676'); | |
fbq('track', 'PageView', { 'site_name': 'TEM' }); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Local de instalação da tag
Em qualquer lugar do
<body>
da página; de preferência no topo.