$ npm install sw-offline-google-analyticsA service worker helper library to retry offline Google Analytics requests when a connection is available.
npm install --save-dev sw-offline-google-analytics
Browse sample source code in the demo directory.
You can find documentation for this module here.