dirk / rangefinder-sst
Server-side tracking for Rangefinder (rangefinderapp.com)
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/dirk/rangefinder-sst
This package is not auto-updated.
Last update: 2025-07-27 20:52:23 UTC
README
Rangefinder's server-side tracking allows you to record basic visitor information for every visitor, even those who block Rangefinder's client-side JavaScript. The client-side analytics fills in extra details, such as screen dimensions and page title, when/if it runs.
Installation
This library is designed to run on PHP 5.3 or newer. However, it should work with older versions with one minor change.
With Composer
Simply require dirk/rangefinder-sst in your composer.json.
Basic installation
Download the latest version of the tracking library (it's just a single file) and upload it to your server. Then you can just require it in your code:
require_once 'path/to/Track1.php';
Usage
The server-side tracking runs in two parts. First is sends off a tiny UDP packet to Rangefinder with the basic visit information, then it provides the <script> tag with the ID of that packet.
// Early in your code Rangefinder\Track1::$clientKey = SERVER-SIDE TRACKING KEY; Rangefinder\Track1::$clientSite = SITE ID; Rangefinder\Track1::track(); // Right before the </body> Rangefinder\Track1::code()
License
Licensed under the New BSD License. See LICENSE for details.