diff --git a/google_analytics/footer.php b/google_analytics/header.php similarity index 100% rename from google_analytics/footer.php rename to google_analytics/header.php diff --git a/google_analytics/index.php b/google_analytics/index.php index 8a2e423..ddd8dfe 100755 --- a/google_analytics/index.php +++ b/google_analytics/index.php @@ -54,10 +54,10 @@ function osc_google_analytics_id() { /** * This function is called every time the page footer is being rendered */ - function google_analytics_footer() { + function google_analytics_header() { if( osc_google_analytics_id() != '' ) { $id = osc_google_analytics_id(); - require_once(osc_plugins_path() . 'google_analytics/footer.php'); + require_once(osc_plugins_path() . 'google_analytics/header.php'); } } @@ -70,7 +70,7 @@ function google_admin_menu() { // This is a hack to show a Uninstall link at plugins table (you could also use some other hook to show a custom option panel) osc_add_hook(osc_plugin_path(__FILE__)."_uninstall", 'google_analytics_call_after_uninstall'); osc_add_hook(osc_plugin_path(__FILE__)."_configure", 'google_analytics_admin'); - osc_add_hook('footer', 'google_analytics_footer'); + osc_add_hook('header', 'google_analytics_header'); osc_add_hook('admin_menu_init', 'google_admin_menu'); ?> \ No newline at end of file