Documentation Index
Fetch the complete documentation index at: https://dataglue.io/llms.txt
Use this file to discover all available pages before exploring further.
Server-Side Setup Guide
This guide shows you how to set up a backend to collect and manage DataGlue attribution and journey data. Choose the approach that best fits your stack.Architecture Overview
Data Flow Diagram
Option 1: N8N Webhooks + Supabase (Easiest)
Best for: Non-developers, rapid prototyping, visual workflowsArchitecture
Setup Steps
1. Create Supabase Project
2. Create N8N Workflows
Workflow 1: Identify User3. Configure DataGlue
Pros & Cons
Pros:- ✅ No code required (visual workflows)
- ✅ Built-in error handling & retries
- ✅ Easy debugging (see every request)
- ✅ Can add multiple outputs (Slack, email, etc.)
- ✅ Supabase has generous free tier
- ❌ N8N costs $20/month (or self-host)
- ❌ Slightly slower than custom server
- ❌ Limited to N8N’s capabilities
Option 2: Serverless Functions (Vercel/Netlify)
Best for: Next.js/React apps, developers who want simplicityArchitecture
Setup Steps
1. Install Dependencies
2. Create API Routes
File:pages/api/glue/identify.js (Next.js)
pages/api/glue/track.js
3. Configure DataGlue
Pros & Cons
Pros:- ✅ No server management
- ✅ Auto-scaling
- ✅ Generous free tiers (Vercel: 100GB bandwidth)
- ✅ Fast cold starts
- ✅ Easy to deploy
- ❌ Requires coding
- ❌ Limited execution time (10-60 seconds)
- ❌ Cold starts can add latency
Option 3: Custom Server (Node.js + Express)
Best for: Developers who want full control, high-volume appsArchitecture
Setup Steps
1. Install Dependencies
2. Create Server
File:server.js
3. Deploy
Pros & Cons
Pros:- ✅ Full control over logic
- ✅ Can handle high volumes
- ✅ No cold starts
- ✅ Custom optimizations
- ✅ Direct database access
- ❌ Requires server management
- ❌ Need to handle scaling
- ❌ More code to maintain
- ❌ Security considerations
Cross-Device Identity Resolution
The Challenge
Solution: Email-Based Merging
Analytics Queries
User Journey
Attribution Report
Conversion Funnel
Comparison Table
| Feature | N8N + Supabase | Serverless | Custom Server |
|---|---|---|---|
| Setup Time | 1 hour | 2-3 hours | 4-8 hours |
| Coding Required | None | Moderate | High |
| Cost (monthly) | 45 | 20 | 100 |
| Scalability | Good | Excellent | Excellent |
| Performance | Good | Good | Best |
| Debugging | Visual | Logs | Full control |
| Maintenance | Low | Medium | High |
| Best For | Quick start | Modern apps | High volume |
Recommended Approach
Start simple, scale later:- Begin with N8N + Supabase (fastest)
- As you grow, migrate to Serverless Functions
- At scale, move to Custom Server
- Your data stays in Supabase/PostgreSQL throughout
Next Steps
- Choose your approach based on the comparison table
- Create database tables in Supabase/PostgreSQL
- Set up your webhook/API endpoints
- Configure DataGlue with your endpoint URL
- Test with a form submission
- Query your data to see user journeys
- Build analytics dashboards on top of the data