POST https://api.gleap.io/admin/identify
Content-Type: application/json Api-Token: YOUR_SECRET_API_TOKEN
{ "userId": "19283", "name": "John Doe", "email": "john@doe.com", "value": 1928, "phone": "+1 (129) 18283 8292", "createdAt": "2022-09-28T10:11:18.156Z", // You can also track custom user properties }
new Date()
?preventLastActivityUpdate=true
POST https://api.gleap.io/admin/identify?preventLastActivityUpdate=true
POST https://api.gleap.io/admin/track
{ "events": [{ "date": "2022-09-28T10:11:18.156Z", "name": "Subscription started", "data": { "name": "Sub 1232", "value": 1200 }, "userId": "19283" }, { "date": "2022-09-28T10:11:18.156Z", "name": "Subscription canceled", "data": { "name": "Sub 1259", "value": 1200, "reason": "Stopped working on the project.", }, "userId": "19283" }] }