Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 262bab4

Browse files
committed
Fix post 🚀
1 parent e72064a commit 262bab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/2019-12-15-pwa-offiline-tracking-google-analytics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ workbox.googleAnalytics.initialize();
5050

5151
#### How it works
5252

53-
How does workbox make your GA tracking working when your PWA is offline? The `workbox.googleAnalytics` plugin setup a new fetch handler that intercept all the request made with Google Analytics. This request are basically calls done with the [Google Analytics Measurement protocol](https://developers.google.com/analytics/devguides/collection/protocol/v1 "google analytics measurement protocol"). When you're PWA goes offline this handler stores the failed call into an ad-hoc [IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API "indexeddb api") schema called `workbox-background-sync`. When the network came back the the requests saved are flushed and pushed to the Google Analytics servers as measurement protocol requests. Below you can find a video that shows you the entire flow described above.
53+
How does workbox make your GA tracking working when your PWA is offline? The `workbox.googleAnalytics` plugin setup a new fetch handler that intercepts all the request made with Google Analytics. This request are basically calls done with the [Google Analytics Measurement protocol](https://developers.google.com/analytics/devguides/collection/protocol/v1 "google analytics measurement protocol"). When you're PWA goes offline this handler stores the failed call into an ad-hoc [IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API "indexeddb api") schema called `workbox-background-sync`. When the network came back the the requests saved are flushed and pushed to the Google Analytics servers as measurement protocol requests. Below you can find a video that shows you the entire flow described above.
5454

5555
{% include youtube.html videoId="Xshb2rM4L3w" %}
5656

0 commit comments

Comments
 (0)