dbFields = array( 'google-analytics-tracking-id'=>'', 'google-site-verification'=>'', 'google-tag-manager'=>'' ); } public function form() { global $Language; $html = '
'; $html .= ''; $html .= ''; $html .= '
'.$Language->get('complete-this-field-with-the-google-site-verification').'
'; $html .= '
'; $html .= '
'; $html .= ''; $html .= ''; $html .= '
'.$Language->get('complete-this-field-with-the-tracking-id').'
'; $html .= '
'; $html .= '
'; $html .= ''; $html .= ''; $html .= '
'.$Language->get('complete-this-field-with-the-tracking-id-google-tag').'
'; $html .= '
'; return $html; } public function siteHead() { global $Url; global $WHERE_AM_I; $html = ''; // Google HTML tag if( $this->getValue('google-site-verification') && ($WHERE_AM_I=='home') ) { $html .= PHP_EOL.''.PHP_EOL; $html .= ''.PHP_EOL; } // Google Tag Manager if( $this->getValue('google-tag-manager') ) { $html .= PHP_EOL."".PHP_EOL; $html .= "".PHP_EOL; $html .= "".PHP_EOL; } return $html; } public function siteBodyBegin() { $html = ''; // Google Tag Manager if( $this->getValue('google-tag-manager') ) { $html .= ''.PHP_EOL; $html .= ''.PHP_EOL; $html .= ''.PHP_EOL; } return $html; } public function siteBodyEnd() { $html = ''; // Google Analytics if( $this->getValue('google-analytics-tracking-id') ) { $html .= PHP_EOL.''.PHP_EOL; $html .= "".PHP_EOL; } return $html; } }