diff options
Diffstat (limited to 'Template/userInfo.php')
| -rw-r--r-- | Template/userInfo.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Template/userInfo.php b/Template/userInfo.php index 192e568..989cce1 100644 --- a/Template/userInfo.php +++ b/Template/userInfo.php @@ -31,6 +31,12 @@ $_SESSION["src"] = basename(__FILE__, ".php"); <?php echo('<html lang="'.$_SESSION["lang"].'">'.PHP_EOL); ?> <!-- Balise contenant les metadata --> <head> +<?php +if (isset($_COOKIE["RGPD_ACCEPT"]) && $_COOKIE["RGPD_ACCEPT"]) { + echo(' <!-- Google analitycs --> + <script async src="https://www.googletagmanager.com/gtag/js?id=G-YK3Q3ES11T"></script> + <script src="/Static/Js/googleAnalitycs.js"></script>'); +}?> <?php require_once(dirname( __FILE__ )."/Include/incl_global_header.php"); ?> <?php echo(' <link href="/Static/Css/userInfo.css" rel="stylesheet">'.PHP_EOL); ?> <?php require_once(dirname( __FILE__ )."/Include/".$_SESSION["lang"]."/title.php"); ?> |
