Merge branch 'hotfix/AW-362-palmistry-fb-pixel' into 'main'
hotfix/AW-362-palmistry-fb-pixel See merge request witapp/aura-webapp!490
This commit is contained in:
commit
2700408741
@ -105,6 +105,18 @@ s.parentNode.insertBefore(t,s)}(window, document,'script',
|
||||
fbq('init', '456294924152594');
|
||||
fbq('track', 'PageView');`;
|
||||
|
||||
const FBScriptPalmistry1 = `
|
||||
!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', '1773034783416682');
|
||||
fbq('track', 'PageView'); `;
|
||||
|
||||
return (
|
||||
<Helmet htmlAttributes={{ lang: language }}>
|
||||
<script>{FBScript}</script>
|
||||
@ -120,6 +132,9 @@ fbq('track', 'PageView');`;
|
||||
{isRouteInclude(window.location.href, routesPalmistry) && (
|
||||
<script>{FBScriptPalmistry}</script>
|
||||
)}
|
||||
{isRouteInclude(window.location.href, routesPalmistry) && (
|
||||
<script>{FBScriptPalmistry1}</script>
|
||||
)}
|
||||
</Helmet>
|
||||
);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user