From 6059dd02d39c5be1beacf5f50227763aef1fb4bf Mon Sep 17 00:00:00 2001 From: Alex Kuretz Date: Thu, 17 May 2012 16:41:07 -0600 Subject: [PATCH] Update Google Analytics module to insert tracking code in head of page. --- .../google_analytics/helpers/google_analytics_theme.php | 2 +- 3.0/modules/google_analytics/module.info | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/3.0/modules/google_analytics/helpers/google_analytics_theme.php b/3.0/modules/google_analytics/helpers/google_analytics_theme.php index 8f173c1b..d9b858d2 100644 --- a/3.0/modules/google_analytics/helpers/google_analytics_theme.php +++ b/3.0/modules/google_analytics/helpers/google_analytics_theme.php @@ -18,7 +18,7 @@ */ class google_analytics_theme { - static function page_bottom($theme) + static function head($theme) { $u_o = 1; if ( ($theme->item->owner_id != identity::active_user()->id) && (identity::active_user()->admin == 0) ) { diff --git a/3.0/modules/google_analytics/module.info b/3.0/modules/google_analytics/module.info index 0fc159bd..b49b147b 100644 --- a/3.0/modules/google_analytics/module.info +++ b/3.0/modules/google_analytics/module.info @@ -1,3 +1,7 @@ name = Google Analytics -description = Renders the Google Analytics Code at the end of the page. -version = 3 \ No newline at end of file +description = Renders the Google Analytics Code in the head of the page. +version = 4 +author_name = "" +author_url = "" +info_url = "http://codex.gallery2.org/Gallery3:Modules:google_analytics" +discuss_url = "http://gallery.menalto.com/node/88884"