Download the PHP package asci/track without Composer
On this page you can find all versions of the php package asci/track. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package track
track event based tracking system with multiple backend support
track is an event based tracking system that helps you to collect and query statistical data based on the actions from your customers, users or visitors.
With track you can;
- collect page views, clicks, conversions or any kind of user actions for your website, API or mobile app.
- query collected data with complex filters. (currently only with native queries)
- create funnels (in progress)
Features
-
Collect data with unlimited custom parameters.
- Query on collected data and create analytics.
- Create funnels (in progress)
- Duplicate/Unique filtering. (in progress)
- Multiple database backend options. (currently only mongodb and postgresql with hstore)
- Easily extendable architecture.
- Full test coverage with phpspec.
Events
An event
basically defines the same thing as in its name. Any kind of action made by your customers, users or applications can be described as an event. For instance; 'Page View', 'Button Click', 'Purchase', 'API Request', 'Exception', etc.
Track defines events within the special Event
objects. An Event
object can carry many special information with it among the custom ones. For instance an Event object can have;
- IP address,
- a unique key to distinguish your users,
- the time of the event,
- requested URL,
- product category,
- pruduct name,
- customer source,
- and many other defined by you.
Track comes with bunch of built-in events specicialized for different purposes. All the built-in event can be found under the Track\Event
namespace. You can also define your own customized events for your needs.
Built-in Events
Track comes with bunch of built-in events specicialized for different purposes. All the built-in event can be found under the Track\Event
namespace.
1. Track\Event
This is the base event of Track and provides very basic expectations from an event. All the other events has to be extending to it, this means that every event has to/will have at least a name
, a timestamp
and a unique id
. If you don't give these values while initializing your event object they will get automatically generated by Track.
Examples
Store an event
Query events