Sending Custom Events via API

Tracking & Pixels · 5 min read

Custom events let you track any action beyond standard page views and clicks.

Creating Custom Events

  1. Go to Postbacks → Custom Events.
  2. Click Create Event.
  3. Define an event name, a machine-readable key, and a description.

Sending Events

Use the GramPixel REST API to send events from your backend. Include the Telegram user ID for proper attribution and monetary values for revenue-generating events.

For full API documentation, visit the API Reference.

Best Practices

  • Use consistent naming conventions across all events.
  • Always include the Telegram ID for deterministic attribution.
  • Use the batch endpoint when sending high volumes of events.

Was this helpful?