Google Analytics code generalization