Title: MultiSite &amp; Multiple Tracking Codes
Last modified: August 30, 2016

---

# MultiSite & Multiple Tracking Codes

 *  [jefmcclimans](https://wordpress.org/support/users/jefmcclimans/)
 * (@jefmcclimans)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/multisite-multiple-tracking-codes/)
 * Hello, First: great plugin, it has mate tracking actions a breeze.
 * Second: I have a situation that I cannot figure out the best method of approach
   and if your plugin is able to accommodate. Thought I would ask before I banged
   my head against any other walls today.
 * Background:
 * I am running a multisite with a bout 6 sites. Each site has a version of your
   plugin and their own analytics property so the users can setup and track what
   they need on their own. It is working wonderfully.
 * What I am trying to accomplish:
 * I need to aggregate all of the site info including all of the events into one
   analytics property. I can do this by adding the the tracking code to the body
   as usual, ticking the “Don’t use the GA tracking code” box in WP GA Events and
   adding some extra code to the tracking code in the body
 * added code in the body
 *     ```
       ga('create', 'UA-66303917-1', 'auto', 'rollup');
                         ga('rollup.send', 'pageview');
       ```
   
 * The above code does not track events, but adding something like this would:
 *     ```
       ga('send', ga('rollup.send', 'pageview', 'event', {
         'eventCategory': 'Category',
         'eventAction': 'Action',
         'eventLabel': 'Label'
       });
       ```
   
 * Should I add this code to your plugin code itself under
 *     ```
       ga('create','$id', '$domain');
                         ga('send', 'pageview');
       ```
   
 * since it will be active on all of the multisite installations? I have not been
   able to get it to work so far. or is this outside the limitations of this plugin?
 * Any help would be much appreciated.
 * Thanks,
 * -Jef
 * [https://wordpress.org/plugins/wp-google-analytics-events/](https://wordpress.org/plugins/wp-google-analytics-events/)

Viewing 1 replies (of 1 total)

 *  [joycegrace](https://wordpress.org/support/users/joycegrace/)
 * (@joycegrace)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/multisite-multiple-tracking-codes/#post-6759496)
 * This may be a dumb response, but I’m currently experimenting with using GTM for
   the network-wide goal set ups, and then using and additional universal analytics
   set up for the individual sites. That way each site can track data from one account,
   using the universal analytics code, and then the “headquarters” site can use 
   all the info sent to it from GTM. I don’t know if that makes sense, and I’m only
   in experimentation mode right now, but since this is similar to what I’m trying
   to do, I thought I’d let you know.

Viewing 1 replies (of 1 total)

The topic ‘MultiSite & Multiple Tracking Codes’ is closed to new replies.

 * ![](https://ps.w.org/wp-google-analytics-events/assets/icon-256x256.jpeg?rev=
   2189709)
 * [WP Google Analytics Events - No-Code Custom Event Tracking for Google Analytics](https://wordpress.org/plugins/wp-google-analytics-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-analytics-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-analytics-events/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-analytics-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-analytics-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-analytics-events/reviews/)

## Tags

 * [events](https://wordpress.org/support/topic-tag/events/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * 1 reply
 * 2 participants
 * Last reply from: [joycegrace](https://wordpress.org/support/users/joycegrace/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/multisite-multiple-tracking-codes/#post-6759496)
 * Status: not resolved