dev-master
9999999-dev https://github.com/rangefinder/rangefinder-sst-phpServer-side tracking for Rangefinder (rangefinderapp.com)
BSD-3-Clause
by Dirk Gadsden
api analytics
Wallogit.com
2017 © Pedro Peláez
Server-side tracking for Rangefinder (rangefinderapp.com)
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., (*1)
This library is designed to run on PHP 5.3 or newer. However, it should work with older versions with one minor change., (*2)
Simply require dirk/rangefinder-sst in your composer.json., (*3)
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:, (*4)
require_once 'path/to/Track1.php';
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., (*5)
// 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()
Licensed under the New BSD License. See LICENSE for details., (*6)
Server-side tracking for Rangefinder (rangefinderapp.com)
BSD-3-Clause
api analytics