WordPress.org

Forums

Google Analyticator
Universal Analytics not excluding admin traffic (1 post)

  1. bjorntfn
    Member
    Posted 1 year ago #

    Useful plugin, but Google Universal Analytics wasn't correctly adding the line below to my site, for logged-in admins:

    ga('set', 'dimensionX', 'admin');

    Without this line it is impossible to exclude traffic for logged-in admins (I played with the plugin settings but couldn't fix it).

    To fix this, I changed line 1190 in google-analyticator.php:
    FROM:: get_option(key_ga_admin) == 'admin'
    TO:: get_option(key_ga_admin) == ga_disabled

    This matches the functionality of the old Google Analytics and works correctly on my site for logged in admins/not.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.