Tracking pixel
Capture an event using a 1x1 tracking pixel. Useful for embedding tracking where PostHog SDKs are not available such as emails.
Configuration
| Option | Description |
|---|---|
Event nameType: string Required: True | The name of the event to capture. You can derive this from a query parameter, or hard code it unique to this tracking pixel. |
Distinct IDType: string Required: True | The distinct ID this event should be associated with |
Event propertiesType: json Required: False | A mapping of the incoming webhook body to the PostHog event properties |
Log payloadsType: boolean Required: False | Logs the incoming request for debugging |
Using our REST API you can create this source_webhook like so:
Terminal