Google Analytics's JavaScript snippet that measures how users interact with your website providing more flexibility than its successor ga.js.
The analytics.js JavaScript snippet is a new way to measure how users interact with your website using Google Analytics. It is similar to the previous script, called ga.js, but offers more flexibility for developers to customize their implementations.