From c011f76a3b54f02be49e771cc219a3de66d5c8ec Mon Sep 17 00:00:00 2001 From: burhandodhy Date: Tue, 5 Sep 2017 17:28:34 +0500 Subject: [PATCH] Refactoring --- wp-analytify.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/wp-analytify.php b/wp-analytify.php index 2990e67..c532116 100755 --- a/wp-analytify.php +++ b/wp-analytify.php @@ -480,11 +480,10 @@ public function analytify_add_analytics_code() { echo $this->settings->get_option( 'custom_js_code', 'wp-analytify-advanced' ); } - if ( has_action( 'ga_ecommerce_js' ) ) { - do_action( 'ga_ecommerce_js' ); - } else { - echo "ga('send', 'pageview');"; - } + // Add enhanced eccomerce extension + do_action( 'ga_ecommerce_js' ); + + echo "ga('send', 'pageview');"; ?> @@ -1119,7 +1118,7 @@ function analytify_admin_notice() { /* Check that the user hasn't already clicked to ignore the message */ if ( ! get_user_meta($user_id, 'analytify_2_1_6_ignore') ) { echo '

'; - printf(__('Thanks for updating Analytify! Read how thousands of user loving Analytify and sharing their story! Click here. + printf(__('Thanks for updating Analytify! Read how thousands of user loving Analytify and sharing their story! Click here. [Hide Notice]'), admin_url( 'admin.php?page=analytify-dashboard&analytify_2_1_6_ignore=0' )); echo "

"; }