Forked from bill-barron/Modernizr.Analytics.js
Created
February 22, 2013 19:01
Revisions
-
bill-barron renamed this gist
Feb 21, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
bill-barron created this gist
Feb 21, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ /*************************************************************************** * FeatureLogger - Saves features detected by Modernizr to google analytics ***************************************************************************/ (function () { var _gaq = _gaq || [], Modernizr = Modernizr || {}; for(testName in Modernizr) // For every Modernizr test if(typeof Modernizr[testName] === 'boolean') // If it is a boolean _gaq.push(['_trackEvent', 'modernizr', testName, ((Modernizr[testName]) ? 'Yes' : 'No')]); // Log a yes or no })();