This snippet contains the code necessary to make google analytics calls from your extension.
It plays nicely with the AESP licensing framework so if the user decides to disable analytics
this component will honor that automatically. You don't need to do anything special to make
that behavior work. Just call the analytics functions assuming the user granted permission
and if they didn't the calls will do a no-op internally.
This code came straight out of the code for After Ease, is designed for its taxonomy/ontology and wasn't meant for distribution. As such you'll want to massage it before using it. For