From 25d2a113fd8b01ffc1c3f2d28f041a5da251acef Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Sun, 22 Oct 2017 15:40:24 +0200 Subject: [PATCH] Google Analytics on head --- bl-plugins/google/plugin.php | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/bl-plugins/google/plugin.php b/bl-plugins/google/plugin.php index 1ac7ce82..124ac535 100644 --- a/bl-plugins/google/plugin.php +++ b/bl-plugins/google/plugin.php @@ -60,6 +60,20 @@ class pluginGoogle extends Plugin { $html .= "".PHP_EOL; } + // Google Analytics + if ($this->getValue('google-analytics-tracking-id')) { + $html = PHP_EOL.''.PHP_EOL; + $html .= ' + + '.PHP_EOL; + } + return $html; } @@ -75,22 +89,4 @@ class pluginGoogle extends Plugin { return false; } - public function siteBodyEnd() - { - // Google Analytics - if ($this->getValue('google-analytics-tracking-id')) { - $html = PHP_EOL.''.PHP_EOL; - $html .= ' - - '.PHP_EOL; - return $html; - } - return false; - } } \ No newline at end of file