Ajout de 'seo' dans le getData() de showAnalytics()
This commit is contained in:
parent
69564bfabe
commit
c11003a018
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user