Last active
December 18, 2016 18:06
-
-
Save andreban/ef9ea3adfe8117dafe16d052461892bb to your computer and use it in GitHub Desktop.
Adding offline analytics to a service-workers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sw-offline-google-analytics *must* be imported and initialized before | |
// sw-toolbox, because its 'fetch' event handler needs to run first. | |
importScripts('/sw-offline-google-analytics/offline-google-analytics-import.js'); | |
goog.offlineGoogleAnalytics.initialize(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment