CREEM + DataFast Integration (Next.js)
This example demonstrates automatic revenue attribution between CREEM and DataFast.
Pattern A — server-side cookie reading (recommended):
- The server reads
datafast_visitor_idfrom the cookie jar automatically - No client-side JavaScript needed to pass the visitor ID
- Works with both cookies and the DataFast session cookie
Pattern B — explicit visitor ID from the browser:
- Reads the cookie or URL query param (
?datafast_visitor_id=…) in JS - Useful when you control the checkout flow client-side or need the ID before a server render
Product: Premium Plan | Check the browser console for debug info