1. Use the default code by google analytics for the first code .
2, for the second time use the following code :-

<script>
var _gaq=[

[‘secondTracker._setAccount’, ‘UA-11111111-1’],[‘secondTracker._trackPageview’],[‘secondTracker._trackPageLoadTime’]
];
(function(d, t) {
     var g = d.createElement(t),
         s = d.getElementsByTagName(t)[0];
    g.src = ‘//www.google-analytics.com/ga.js’;
    s.parentNode.insertBefore(g, s);
}(document, ‘script’));
</script>

or you can also use both of codes in the same code in this way :-

<script>
var _gaq=[
['_setAccount', 'UA-1111111-1'],['_trackPageview'],['_trackPageLoadTime'],
['secondTracker._setAccount', 'UA-2222222-1'],['secondTracker._trackPageview'],['secondTracker._trackPageLoadTime']
];
(function(d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.src = '//www.google-analytics.com/ga.js';
s.parentNode.insertBefore(g, s);
}(document, 'script'));
</script>