dbtlr / buster

Silex application for tracking applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Buster Tracking

A quick Silex application for providing custom application tracking.

HTML Code To Enable

Add this code into the <head> tag of your application.

  • Replace yourdomain.com with the domain of your application.
  • Replace trackerdomain.com with the domain that you install your tracker on.
  • Optionally you can provide a unique user identifier, to help distinguish your users.
<script type="text/javascript">
    var _bstr = _bstr || [];

    _bstr.push(['domainName', 'yourdomain.com']);
    _bstr.push(['trackDomain', 'trackerdomain.com']);
    _bstr.push(['identity', 'optional user identifier']);
    _bstr.push(['pageView']);

    (function() {
        var se = document.createElement('script'); se.type = 'text/javascript'; se.async = true;
        se.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'trackerdomain.com/js/buster.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(se, s);
    })();
</script>

Todo

  1. Fix migrations to do CREATE EXTENSION hstore;
  2. Add in a reporting API to pull data back out.
  3. Report by date range
  4. Report by ip address
  5. Report by custom parameter
  6. Report by identity
  7. Report outlining highest traffic individuals

About

Silex application for tracking applications

License:MIT License


Languages

Language:PHP 82.4%Language:JavaScript 11.3%Language:Shell 3.5%Language:XML 2.2%Language:ApacheConf 0.6%