Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Sep 5, 2017
1 parent d816320 commit c011f76
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions wp-analytify.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');";

?>
</script>
Expand Down Expand Up @@ -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 '<div class="updated"><p>';
printf(__('Thanks for updating <strong>Analytify</strong>! <a href="https://analytify.io/go/analytify-review" target="_blank" rel="noopener">Read</a> how thousands of user loving Analytify and sharing their story! <a href="https://analytify.io/go/analytify-review" target="_blank" rel="noopener"><strong>Click here</strong></a>.
printf(__('Thanks for updating <strong>Analytify</strong>! <a href="https://analytify.io/go/analytify-review" target="_blank" rel="noopener">Read</a> how thousands of user loving Analytify and sharing their story! <a href="https://analytify.io/go/analytify-review" target="_blank" rel="noopener"><strong>Click here</strong></a>.
<a href="%1$s">[Hide Notice]</a>'), admin_url( 'admin.php?page=analytify-dashboard&analytify_2_1_6_ignore=0' ));
echo "</p></div>";
}
Expand Down

0 comments on commit c011f76

Please sign in to comment.