superfly / edge

A set of useful libraries for Edge Apps. Run locally, write tests, and integrate it into your deployment process. Move fast and maybe don't break things? Because, gosh darnit, you're an adult.
https://fly.io
Apache License 2.0
142 stars 10 forks source link

Analytics middleware #31

Open michaeldwan opened 5 years ago

michaeldwan commented 5 years ago

Nothing destroys a lighthouse score like 3rd party tracking scripts. It'd be great if we could offload tracking requests from the client to middleware. Google Analytics is the big one -- are there any other simple integrations? Mixpanel, Heap, Segment?

mrkurt commented 5 years ago

We had a pretty good start at a Google Analytics one somewhere. All proxy side, with optional injection of client side JS to do client event tracking with the same visitor ID. That'd be nice to bring in!