diff --git a/environments/demo/wp-config-local.php b/environments/demo/wp-config-local.php index 248d10e..5876158 100644 --- a/environments/demo/wp-config-local.php +++ b/environments/demo/wp-config-local.php @@ -16,5 +16,6 @@ define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app-demo.lawcarta.com/v1/ev define('LAWCARTA_ENVIRONMENT_NAME', 'demo'); define('LC_ALLOW_COOKIE_POPUP', true); +define('LC_GTM', 'GTM-KXTRR4Q'); $_SERVER['HTTPS'] = 'On'; diff --git a/environments/dev/wp-config-local.php b/environments/dev/wp-config-local.php index b32d890..647710c 100644 --- a/environments/dev/wp-config-local.php +++ b/environments/dev/wp-config-local.php @@ -16,5 +16,6 @@ define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app-dev.lawcarta.com/v1/eve define('LAWCARTA_ENVIRONMENT_NAME', 'dev'); define('LC_ALLOW_COOKIE_POPUP', true); +define('LC_GTM', 'GTM-KXTRR4Q'); $_SERVER['HTTPS'] = 'On'; diff --git a/environments/local/wp-config-local.php b/environments/local/wp-config-local.php index c47b4cf..847de29 100644 --- a/environments/local/wp-config-local.php +++ b/environments/local/wp-config-local.php @@ -11,7 +11,9 @@ define('LAWCARTA_SUBDOMAIN', 'app'); define('LAWCARTA_PORT', ''); define('LAWCARTA_ENVIRONMENT_NAME', 'local'); + define('LC_ALLOW_COOKIE_POPUP', true); +define('LC_GTM', 'GTM-KXTRR4Q'); $_SERVER['HTTPS'] = 'On'; diff --git a/environments/new_prod/wp-config-local.php b/environments/new_prod/wp-config-local.php index 338f8f7..da1f8e5 100644 --- a/environments/new_prod/wp-config-local.php +++ b/environments/new_prod/wp-config-local.php @@ -20,6 +20,9 @@ define('LAWCARTA_WP_REST_API_RESPONSE_URL', 'https://app.lawcarta.com/v1/event/r define('LAWCARTA_ENVIRONMENT_NAME', 'prod'); +define('LC_ALLOW_COOKIE_POPUP', true); +define('LC_GTM', 'GTM-K8LWZ6K'); + define('LAWCARTA_GA_CONFIG', 'UA-111488943-1'); define('LIVECARTA_GA_CONFIG', 'UA-111488943-2'); diff --git a/environments/prod/wp-config-local.php b/environments/prod/wp-config-local.php index bd770f1..a713081 100644 --- a/environments/prod/wp-config-local.php +++ b/environments/prod/wp-config-local.php @@ -13,6 +13,7 @@ define('LAWCARTA_PORT', ''); define('LAWCARTA_ENVIRONMENT_NAME', 'prod'); define('LC_ALLOW_COOKIE_POPUP', true); +define('LC_GTM', 'GTM-K8LWZ6K'); define('LAWCARTA_GA_CONFIG', 'UA-111488943-1'); define('LIVECARTA_GA_CONFIG', 'UA-111488943-2'); diff --git a/environments/qa/wp-config-local.php b/environments/qa/wp-config-local.php index eb170a1..d28c20e 100644 --- a/environments/qa/wp-config-local.php +++ b/environments/qa/wp-config-local.php @@ -13,6 +13,7 @@ define('LAWCARTA_PORT', ''); define('LAWCARTA_ENVIRONMENT_NAME', 'qa'); define('LC_ALLOW_COOKIE_POPUP', true); +define('LC_GTM', 'GTM-KXTRR4Q'); $_SERVER['HTTPS'] = 'On'; diff --git a/htdocs/wp-content/themes/lawcarta/header.php b/htdocs/wp-content/themes/lawcarta/header.php index 4d26109..c7f8510 100644 --- a/htdocs/wp-content/themes/lawcarta/header.php +++ b/htdocs/wp-content/themes/lawcarta/header.php @@ -49,15 +49,13 @@ $scripts = []; 'script', 'source' =>"https://www.googleoptimize.com/optimize.js?id=OPT-TCXZSGK"]; ?> - 'comment', 'source' =>'Google Tag Manager']; ?> 'script', 'source' =>"(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');"]; ?> + })(window,document,'script','dataLayer','".LC_GTM."');"]; ?> 'comment', 'source' =>'End Google Tag Manager']; ?> -
> -