Skip to main content

Server Implementation Guide

This guide shows you exactly how to build the server-side API to receive and store DataGlue journey data.

Database Setup

You need 2 collections/tables:

MongoDB Collections

PostgreSQL Tables


Complete Server Implementation

Node.js + Express + MongoDB


Deploy to Production

Option 1: Vercel/Netlify Functions

Create api/glue/identify.js:

Option 2: Railway/Render

Option 3: Cloudflare Workers


Environment Variables


Testing Your Server

Test Identify Endpoint

Test Track Endpoint

Test Get User


Query Examples

Get User Journey

Conversion Funnel

Attribution Report


Security Best Practices

  1. Validate requests
  2. Rate limiting
  3. CORS configuration
  4. API key authentication (optional)

Next Steps

  1. ✅ Deploy server to production
  2. ✅ Add profile-endpoint to your DataGlue script tag
  3. ✅ Test with a real form submission
  4. ✅ Query your database to see user journeys
  5. ✅ Build analytics dashboards on top of this data