Setting Up S2S Postback Tracking

Tracking & Pixels · 6 min read

Server-to-Server (S2S) tracking is the most reliable method for tracking conversions — immune to ad blockers and browser privacy restrictions.

How It Works

  1. User clicks your tracking link.
  2. GramPixel captures the click ID and session data.
  3. User converts (e.g., makes a purchase in your bot).
  4. Your server sends a postback to GramPixel with the click ID.
  5. GramPixel attributes the conversion to the original traffic source.

Configuration

  1. Navigate to Postbacks in the sidebar.
  2. Click Add Postback.
  3. Set a name, postback URL with macros, HTTP method, and trigger events.

Available Macros

  • {{click_id}} — original click identifier
  • {{event_name}} — conversion event type
  • {{revenue}} — monetary value of the conversion
  • {{telegram_id}} — Telegram user ID

Testing

Use the Test Postback button to send a test conversion and verify your setup before going live.

Was this helpful?