I’ve been using Modernizr for a short while to style my site based on the user’s browser functions. I’ve also been using Google Analytics for some time, but haven’t done a whole lot with custom variables..
Basically, I’d like to combine these two features; I’d like to report to Google what features the user’s browser supports. In Google analytics, I’d like to see what percentage of my users have browsers that support SVG, for instance, or have flexible box support.
How should this problem be approached? I’m aware that Google has a very limited number of Custom Variables at my disposal. If I put all of the body’s final classes into a string and post it as one custom variable, will I be able to segment my data appropriately within Google?
Thanks for any ideas or insight.
You can’t easily track all of Modernizr’s individual features and make them easily usable with Google Analytics.
However, you can use the Modernizr results table to get an overview of what each individual browser supports, and then cross-reference that with your audience’s browsers from Google Analytics.