Skip to main content

PHP tracker SDK

Early ReleaseLatest versionPHP Version

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