Skip to main content

For AI agents: a Markdown version of this page is at https://docs.snowplow.io/docs/sources/php-tracker.md. The index of all documentation pages is at https://docs.snowplow.io/llms.txt, and the index for this section is at https://docs.snowplow.io/docs/cdi/llms.txt.

PHP tracker SDK

Feature support Compare trackers

  • Supported: Page or screen views (Page and screen)
  • Not supported: Activity tracking
  • Not supported: Built-in entities
  • Partial: Anonymous tracking
  • Not supported: Media
  • Partial: Ecommerce
  • Not supported: Consent
  • Not supported: Snowtype

The Snowplow PHP Tracker allows you to track Snowplow events from your PHP apps and scripts.

There are three basic types of object you will create when using the Snowplow PHP Tracker: Trackers, Subjects and Emitters.

A subject represents a user whose events are tracked. A tracker constructs events and sends them to one or more emitters. Each emitter then sends the event to the endpoint you configure, a Snowplow collector.

The current flow of the PHP Tracker is illustrated below:

Flowchart showing the Snowplow PHP Tracker architecture: the Tracker contains one or more Emitters and one Subject; Emitters (SyncEmitter, CurlEmitter, SocketEmitter) buffer events and send them to the Collector; FileEmitter spawns Worker processes that consume event log files and send them to the Collector, with failed event logs copied to a failed folder

Was this page helpful?