WP Google Analytics
Individual site tracking in multisite? (4 posts)

  1. Anointed
    Posted 3 years ago #

    Will this plugin allow me to input a global analytics UI code snippet in as well as snippets for each of my individual multisites so that my customers can track their own results?

    *I use the wpmu plugin which allows tracking of both global and individual sites, don't want to loose that ability as my users love it.


  2. Daniel Bachhuber
    Hand Built
    Posted 3 years ago #

    At the moment, this plugin only supports one Google Analytics tracking code. It would be easily to accommodate your needs though.

    Basically, what you'd want to do is create an MU plugin that always adds your global GA code to the footer:

    add_action( 'wp_footer', 'dbx_always_add_ga' );
    function dbx_always_add_ga() {
    // Your GA code

    Then you could make the plugin available for users to activate on their site, configure their tracking code, etc.

  3. Anointed
    Posted 3 years ago #

    Thanks for the info. Here's what I have been using:

    Should be simple enough to bring the same concept over to this plugin. I do get what your saying with the snippet though, accomplishes basically the same thing.

  4. Daniel Bachhuber
    Hand Built
    Posted 3 years ago #

    Yep. In the interest of keeping things simple, it would be best to just follow the snippet approach for now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Google Analytics
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.