Plugin Reviews

NK Google Analytics

NK Google Analytics for WordPress adds necessary javascript to enable Google Analytics tracking on your website.

3 reviews
Average Rating
4.2 out of 5 stars
You are currently viewing the reviews that provided a rating of 4 stars. Click here to see all reviews.
good but missing support for "Enhanced Link"
By , for WP 3.9.2
Simple et eficasse
By , for WP 3.9.2

Merci pour ce plugin qui fait bien son boulot !

It works, but not as advertised
By , for WP 3.8.1

The plugin lists a feature "No tracking for admin users logged-in." - however, the Analytics tracking code is still displayed even when logged in as an admin (not inside the Admin Panel, but on the normal blog sites).

Looking into the code, I realized that the author tries to accomplish this switch using is_admin(). The WordPress Codex clearly states: " It should not be used as a means to verify whether the current user has permission to view the Dashboard or the administration panel (try current_user_can() instead)" (see http://codex.wordpress.org/Function_Reference/is_admin)

I solved this by manually adapting the check in the plugin code to

if (!current_user_can( 'edit_posts' )) {
add_action('wp_head', 'NKgoogleanalytics');

P.S.: I also have a feature request: It should be possible to select wether you want the code inserted into the head or the end of the page (for speed optimization).

You must log in to submit a review. You can also log in or register using the form near the top of this page.