segmentio/analytics.js — pull request #7 by nscott (2012-10-31 21:21:33+00:00)
Title: Updated Google Analytics

Hi,

I added in the ability to tweak the page speed sampling rate, as well as the ability to turn on enhanced links. Both of these features need to be set before trackPageview is called, which is why analytics.js has to be modified.

On that note, everything is updated (docs/minified version). I wasn't sure how to go about writing tests to make sure that functionality stays the same for both of those functions though, since they're exclusively based on initialization. I personally tested them in my environment, but I didn't know how to roll them into the test suite.

Thanks.