dbFields = array( 'google-site-verification'=>'', 'google-analytics-tracking-id'=>'', '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; $html = ""; // Google HTML tag if( $this->getValue('google-site-verification') && $Url->whereAmI()=='home' ) { $html .= PHP_EOL."".PHP_EOL; $html .= ''.PHP_EOL; } // Google Tag Manager if( $this->getValue('google-tag-manager') ) { $html .= PHP_EOL.""; $html .= "".PHP_EOL; $html .= "".PHP_EOL; } // Google Analytics if( $this->getValue('google-analytics-tracking-id') ) { $html .= PHP_EOL.""; $html .= ' '.PHP_EOL; } return $html; } public function siteBodyBegin() { // Google Tag Manager if ($this->getValue('google-tag-manager')) { $html = ''; $html .= ''.PHP_EOL; $html .= ''.PHP_EOL; return $html; } return false; } }