Ajout de 'seo' dans le getData() de showAnalytics()

This commit is contained in:
SylvainLelievre 2021-11-17 07:59:23 +01:00
parent 69564bfabe
commit c11003a018

View File

@ -1172,7 +1172,7 @@ class common {
* Affiche le script Google Analytics
*/
public function showAnalytics() {
if($code = $this->getData(['config', 'analyticsId'])
if($code = $this->getData(['config', 'seo', 'analyticsId'])
AND $this->getInput('ZWII_COOKIE_CONSENT') === 'true') {
echo '<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id='. $code .'"></script>