GAS is a wrapper around the Google Analytics Tracking API from Google. It adds new functionality while keeping the same API.
GAS is not an official Google library and GAS developers are not affiliated with Google.
Download GAS Documentation Fork on github
It is time to put your Google Analytics on Steroids. Your site is much more than pageviews and goals. GAS assists you on how to deploy complex Google Analytics Implementations and give you a lot more from your reports out of the box.
<script type="text/javascript">// <![CDATA[
var _gas = _gas || [];
_gas.push(['_setAccount', 'UA-YYYYYY-Y']); // REPLACE WITH YOUR GA NUMBER
_gas.push(['_setDomainName', '.mydomain.com']); // REPLACE WITH YOUR DOMAIN
_gas.push(['_trackPageview']);
_gas.push(['_gasTrackForms']);
_gas.push(['_gasTrackOutboundLinks']);
_gas.push(['_gasTrackMaxScroll']);
_gas.push(['_gasTrackDownloads']);
_gas.push(['_gasTrackYoutube']);
_gas.push(['_gasTrackVimeo']);
_gas.push(['_gasTrackMailto']);
(function() { var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = '/gas.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s); })();
// ]]>
</script>