I made a JS Fiddle to demonstrate this problem: http://jsfiddle.net/8uC4Z/1/
Why does ga.getAll() only have one tracker instead of two? I am following the instructions here: https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced
/* https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced */
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42441200-1', 'domain1');
ga('send', 'pageview'); // first one created is the default
ga('create', 'UA-35320164-1 ', 'domain2');
ga('domain2.send', 'pageview');
ga(function() {
console.log("The following is the array of all trackers:");
console.log(ga.getAll());
console.log("Why is there only 1 in the array?");
}); // why only 1 snippet?