diff --git a/themes/Hacks2013/functions.php b/themes/Hacks2013/functions.php index 83052f5..c900a07 100644 --- a/themes/Hacks2013/functions.php +++ b/themes/Hacks2013/functions.php @@ -237,12 +237,9 @@ function mozhacks_load_scripts() { wp_enqueue_script( 'socialshare' ); } - // Register and load socialshare tracking script with jquery & socialshare - // dependencies - wp_register_script( 'socialtrack', get_template_directory_uri() . '/js/socialtrack.js', array('jquery', 'socialshare')); - if ( is_singular() && get_option('mozhacks_share_posts') && !is_page(array('home','about','demos','articles')) ) { - wp_enqueue_script( 'socialtrack', get_template_directory_uri() . '/js/socialtrack.js' ); - } + // Register and load analytics script with jquery & socialshare dependencies + wp_register_script( 'analytics', get_template_directory_uri() . '/js/analytics.js', array('jquery', 'socialshare')); + wp_enqueue_script( 'analytics', get_template_directory_uri() . '/js/analytics.js' ); } add_action( 'wp_enqueue_scripts', 'mozhacks_load_scripts' ); diff --git a/themes/Hacks2013/header.php b/themes/Hacks2013/header.php index 61531c7..58087c8 100644 --- a/themes/Hacks2013/header.php +++ b/themes/Hacks2013/header.php @@ -53,6 +53,7 @@