Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
6 changes: 3 additions & 3 deletions google_analytics/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

Expand All @@ -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');

?>