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
The topic ‘MultiSite & Multiple Tracking Codes’ is closed to new replies.