The MU forums have moved to WordPress.org

statcounter - wp_footer, admin_footer not working (1 post)

  1. bschwarting
    Member
    Posted 14 years ago #

    The wordpress plugin currently doesn't track any pageloads when in the wordpress dashboard. I've added this to the plugin and it seems to work for the main domain, but not any sub-domains.

    add_action('admin_footer', 'add_statcounter');

    The way I understand it, a sub-domain, sub.domain.com, still loads the same admin footer as domain.com does, correct?

    So if the plugin is doing both:
    add_action('wp_footer', 'add_statcounter');
    add_action('admin_footer', 'add_statcounter');

    Anywhere you go on the site should be going back to statcounter, correct?

    Nothing in the sub.domain.com or sub.domain.com/wp-admin (user dashboard) works correctly. Ideas as to why it's not going back?

    Plugin URL is: http://wordpress.org/extend/plugins/official-statcounter-plugin-for-wordpress/

About this Topic

  • Started 14 years ago by bschwarting