https://github.com/scobb/beam-examples
Working integration examples for Beam privacy-first web analytics
https://github.com/scobb/beam-examples
analytics astro beam cookie-free gdpr nextjs privacy sveltekit web-analytics
Last synced: 2 months ago
JSON representation
Working integration examples for Beam privacy-first web analytics
- Host: GitHub
- URL: https://github.com/scobb/beam-examples
- Owner: scobb
- Created: 2026-04-10T13:16:28.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-04-10T13:18:19.000Z (3 months ago)
- Last Synced: 2026-04-10T15:15:07.816Z (3 months ago)
- Topics: analytics, astro, beam, cookie-free, gdpr, nextjs, privacy, sveltekit, web-analytics
- Homepage: https://beam-privacy.com/docs
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# beam-examples
Working integration examples for [Beam](https://beam-privacy.com) — privacy-first, cookie-free web analytics.
[](https://beam-privacy.com)
[](https://www.npmjs.com/package/@keylightdigital/beam)
## Examples
| Framework | Example | Description |
|-----------|---------|-------------|
| [Next.js](./examples/nextjs/) | `examples/nextjs/` | App Router + Pages Router integration with `next/script` |
| [Astro](./examples/astro/) | `examples/astro/` | Astro layout integration via `` |
| [SvelteKit](./examples/sveltekit/) | `examples/sveltekit/` | SvelteKit integration in `app.html` |
Each example includes:
- ✅ `README.md` with "Run in 2 minutes" instructions
- ✅ `.env.example` for your Beam `SITE_ID`
- ✅ Minimal project structure ready to run
## Quick Start
1. Sign up at [beam-privacy.com](https://beam-privacy.com) (free tier available)
2. Add a site in the dashboard and copy your `site_id`
3. Pick the example that matches your framework
4. Follow the README in that folder
## Installation
```bash
npm install @keylightdigital/beam
```
Or use the script tag directly:
```html
```
## What Beam Tracks
- Page URL and path
- Referrer source
- Screen width (device type detection)
- Country (from Cloudflare headers — no IP stored)
- Browser
- Language
**What Beam does NOT track:** cookies, IP addresses, personal data, fingerprinting, localStorage
## Links
- 🌐 Product: https://beam-privacy.com
- 🚀 Live demo: https://beam-privacy.com/demo
- 📚 Docs: https://beam-privacy.com/docs/api
- 📦 npm: https://www.npmjs.com/package/@keylightdigital/beam
- 🔒 Privacy: https://beam-privacy.com/privacy
- ⭐ Main repo: https://github.com/scobb/beam
## License
MIT — see individual example directories.