Merge branch 'AW-340-pixel-palmistry' into 'main'
AW-340-pixel-palmistry See merge request witapp/aura-webapp!463
This commit is contained in:
commit
65b36707a1
@ -91,6 +91,18 @@ 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', '814481464004499');
|
||||
fbq('track', 'PageView');`;
|
||||
|
||||
const FBScriptPalmistry = `
|
||||
!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', '456294924152594');
|
||||
fbq('track', 'PageView');`;
|
||||
|
||||
return (
|
||||
@ -105,6 +117,9 @@ fbq('track', 'PageView');`;
|
||||
)}
|
||||
{isRouteInclude(window.location.href, routesPalmistry) &&
|
||||
locale?.includes("pt") && <script>{FBScriptPTPalmistry}</script>}
|
||||
{isRouteInclude(window.location.href, routesPalmistry) && (
|
||||
<script>{FBScriptPalmistry}</script>
|
||||
)}
|
||||
</Helmet>
|
||||
);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user