delete GA, fb pixel, twitter, linkedin, hotjar, fullstory JS code.

This commit is contained in:
Gregory Pradun
2021-07-22 16:24:32 +03:00
parent 15c859a6bd
commit b8b9d3beaa
2 changed files with 11 additions and 7 deletions

View File

@@ -36,6 +36,15 @@ require_once 'inc/walker-nav-menu.php';
<?php endif;?>
<script src="https://www.googleoptimize.com/optimize.js?id=OPT-TCXZSGK"></script>
<?php if (LAWCARTA_ENVIRONMENT_NAME == 'prod'):?>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-K8LWZ6K');</script>
<!-- End Google Tag Manager -->
<?php endif;?>
<?php if (0):?>
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
@@ -62,13 +71,6 @@ require_once 'inc/walker-nav-menu.php';
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-K8LWZ6K');</script>
<!-- End Google Tag Manager -->
<!-- Global site tag (gtag.js) - Google Ads: 636857414 -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-636857414"></script>
<script>