Support » Plugin: Google Analyticator » Universal Analytics not excluding admin traffic

  • 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.

  • The topic ‘Universal Analytics not excluding admin traffic’ is closed to new replies.