Download the PHP package neoan3-apps/simple-tracker without Composer
On this page you can find all versions of the php package neoan3-apps/simple-tracker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download neoan3-apps/simple-tracker
More information about neoan3-apps/simple-tracker
Files in neoan3-apps/simple-tracker
Package simple-tracker
Short Description Basic analytics for the non-invasive webmaster
License MIT
Informations about the package simple-tracker
Simple tracker
Simple PHP analytics
Cherishing privacy is an ideal that contrasts the requirement to adapt to user-behavior, understand action items for marketing, and react on once audience. This is why simple tracker focuses on the absolute minimum.
- no data-handoff to external sources
- no identity threatening data collection
Simple tracker can answer the following questions:
- Which pages have been visited?
- How many times?
- When?
- From which link did the visit come from
Identifiers (e.g. userIds, sessions, jwt, ...) can be added to
- identify unique visits
- create an understanding of click-paths
What simple tracker is not
Simple tracker does not come with a UI. It is a data-collection tool storing visitor data in Filebase to establish a layer for UI development according to your needs.
Installation
composer require neoan3-apps/simple-tracker
Usage
Please refer to Filebase documentation in order to query/process data.
data format
track
Neoan3\Apps\SimpleTracker::track(string $identifier)
Using track() should be done as early as possible (In neoan3 in your frame, without a framework in your index.php), but after potential identifiers. An identifier can be whatever you want (e.g. user-id, PHP-session) and is optional. Without an identifier each visit is captured as if an individual user made a request.
endpointData
Neoan3\Apps\SimpleTracker::endpointData([string $endpoint])
If $endpoint is not set, $_SERVER['REQUEST_URI'] will be used.
Example:
identifierData
Neoan3\Apps\SimpleTracker::identifierData(string $identifier)
Example: