Skip to main content
POST
https://api.usegately.com
/
api
/
v1
/
analytics
/
page-view
curl -X POST "https://api.usegately.com/api/v1/analytics/page-view" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "page": "/pricing",
    "title": "Pricing Plans",
    "user_id": "user_123"
  }'
{
  "success": true
}
Track page views to understand user navigation patterns.

Request Body

page
string
required
URL or path of the page viewed
title
string
Title of the page
referrer
string
Referrer URL
user_id
string
ID of the user viewing the page

Response

success
boolean
Whether the page view was tracked
curl -X POST "https://api.usegately.com/api/v1/analytics/page-view" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "page": "/pricing",
    "title": "Pricing Plans",
    "user_id": "user_123"
  }'
{
  "success": true
}