How I Built a First-Party Analytics Platform With Next.js Edge Middleware

https://hackernoon.imgix.net/images/2jqChkrv03exBUgkLrDzIbfM99q2-6g022e3.jpeg

Every third-party analytics tool has the same shape: a JavaScript snippet in the page, a beacon request back to a data collection endpoint, a dashboard that reads from their database. It works. It also adds a 20-50 KB script to every page, one extra network round trip, a tempting target for ad blockers, and a consent banner because the tool is now a third party processing user data.

None of that is necessary. Next.js Edge Middleware runs on every request, on Vercel's edge network, before the page is served. If you capture analytics there, you have:

  • No client-side script (zero extra KB)
  • No beacon request (zero latency)
  • No third-party domain (no ad blocker, no banner, no privacy officer email)

Glint is what you get when you take this seriously. The middleware captures the analytics in the same edge function that routes the response, and writes the data to a Postgres...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE

Read more

https://images.wsj.net/im-23653435/social

Sources: OpenAI ended November with $50B in annualized revenue, about where it stood two months earlier and 20% lower than its internal outlook for the quarter

X: @atrupar, @atrupar, @krassenstein, @kiantrades, @mikenellis, @stephennellis, @stockmarketnerd, @eleanor_mueller, @kalshiai, @maddenifico, @grace_panetta, @vesselghost1984, @jonathanvswan, @lanceulanoff, @hadas_gold, @hugolowell, @jessesingal, @reedalbergotti, @olivia_beavers, @firesidealpha, @acyn, @marykissel, @matthewstoller, @hadas_gold, @ericldaugh, @esaagar, @jbillinson, @theprimeagen, @sruhle, @mspaulareid, @geiger_capital, @atrupar, @matthewstoller, @kthomasdc, @fredlambert, @kantrowit

https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iz_TOUGqXBN8/v0/1200x800.jpg

DoorDash says hackers used AI tools to access users' data in the US, Canada, Australia, and New Zealand, but no payment card info or passwords were accessed

X: @atrupar, @atrupar, @krassenstein, @kiantrades, @mikenellis, @stephennellis, @stockmarketnerd, @eleanor_mueller, @kalshiai, @maddenifico, @grace_panetta, @vesselghost1984, @jonathanvswan, @lanceulanoff, @hadas_gold, @hugolowell, @jessesingal, @reedalbergotti, @olivia_beavers, @firesidealpha, @acyn, @marykissel, @matthewstoller, @hadas_gold, @ericldaugh, @esaagar, @jbillinson, @theprimeagen, @sruhle, @mspaulareid, @geiger_capital, @atrupar, @matthewstoller, @kthomasdc, @fredlambert, @kantrowit