https://github.com/dbtlr/buster
Silex application for tracking applications
https://github.com/dbtlr/buster
Last synced: about 1 month ago
JSON representation
Silex application for tracking applications
- Host: GitHub
- URL: https://github.com/dbtlr/buster
- Owner: dbtlr
- License: mit
- Created: 2015-02-16T17:52:10.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-18T14:32:41.000Z (over 11 years ago)
- Last Synced: 2025-12-26T04:53:05.456Z (6 months ago)
- Language: PHP
- Size: 228 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Buster Tracking
===============
A quick Silex application for providing custom application tracking.
### HTML Code To Enable
Add this code into the `````` 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.
```html
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);
})();
```
### Todo
1. Fix migrations to do CREATE EXTENSION hstore;
2. Add in a reporting API to pull data back out.
1. Report by date range
2. Report by ip address
3. Report by custom parameter
4. Report by identity
5. Report outlining highest traffic individuals