Home / Companies / Neon / Blog / Post Details
Content Deep Dive

Roll Your Own Analytics With Astro, Vercel Edge Functions and Neon

Blog post from Neon

Post Details
Company
Date Published
Author
Paul Scanlon
Word Count
1,320
Company Posts That Month
6
Language
English
Hacker News Points
-
Post removed?
No
Summary

This post explains how to create a custom analytics solution using Astro, Vercel Edge Functions, and Neon serverless Postgres database as an alternative to Google Analytics. The author demonstrates the implementation for a site built with Astro and deployed on Vercel. The solution captures site visits and allows visualization of activity on the site. Key components include a Neon serverless Postgres database, an Edge Function capable of extracting geolocation data from incoming requests, and a client-side request to the Edge Function that fires on page load. The author also provides examples of how to use the collected data for various visualizations.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Edge Computing 9 66 14 9 +61%
Serverless 3 649 154 75 +64%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.