Support for new GA lib. https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced . Also capped stored events to 15 to reduce memory usage.