Ana. Open web analytics in Golang & Preact. [Work In Progress]
Go JavaScript CSS Makefile HTML
Permalink
Failed to load latest commit information.
api remove stray or unnecessary log statements Jan 25, 2017
assets when a new message is set, clear previous timeout Jan 13, 2017
commands
count use buffered INSERT for collecting pageviews & misc improvements to d… Jan 25, 2017
datastore remove stray or unnecessary log statements Jan 25, 2017
models use buffered INSERT for collecting pageviews & misc improvements to d… Jan 25, 2017
vendor
views use gorilla mux for routing Nov 22, 2016
.babelrc get secret & db creds from environment (file) Nov 25, 2016
.env.example update readme, database migrations will now run automatically Jan 25, 2017
.gitignore stop gitignoring vendor dir, closes #6 Jan 13, 2017
Dockerfile
LICENSE MIT license it is. Add readme instructions for getting a dev version … Dec 11, 2016
Makefile
README.md update readme, database migrations will now run automatically Jan 25, 2017
ROADMAP.md
ana.go first stab at supporting postgres driver. #9 Jan 25, 2017
docker-compose.yml Create Dockerfile and add example docker-compose.yml Dec 25, 2016
gulpfile.js fix seed Dec 10, 2016
package.json
yarn.lock update yarn deps Jan 6, 2017

README.md

Ana. Open Source Web Analytics.

Go Report Card MIT licensed

This is nowhere near being usable, let alone stable. Please treat as a proof of concept while we work on getting this to a stable state. Do not run Ana in production yet unless you like spending time on it. Things will keep changing for the next few months.

Screenshot of the Ana dashboard

Installation

For getting a development version of Ana up & running, please go through the following steps.

  1. Rename .env.example to .env and set your database credentials.
  2. Compile into binary: make
  3. Create your user account: ana register <email> <password>
  4. Run default Gulp task to build static assets: gulp
  5. Start the webserver: ana server --port=8080 & visit localhost:8080 to access your analytics dashboard.

To start tracking, include the following JavaScript on your site and replace ana.dev with the URL to your Ana instance.

<!-- Ana tracker -->
<script>
(function(d, w, u, o){
    w[o]=w[o]||function(){
        (w[o].q=w[o].q||[]).push(arguments)
    };
    a=d.createElement('script'),
    m=d.getElementsByTagName('script')[0];
    a.async=1; a.src=u;
    m.parentNode.insertBefore(a,m)
})(document, window, '//ana.dev/tracker.js', 'ana');
ana('setTrackerUrl', '//ana.dev/collect');
ana('trackPageview');
</script>
<!-- / Ana tracker -->

License

MIT licensed.