mirror of https://github.com/status-im/fathom.git
1.8 KiB
1.8 KiB
Ana. Open Source Web Analytics.
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.
Installation
For getting a development version of Ana up & running, please go through the following steps.
- Rename
.env.example
to.env
and set your database credentials. - Create or migrate the database:
export $(cat .env | xargs) && $GOPATH/bin/migrate -url mysql://$ANA_DATABASE_USER:$ANA_DATABASE_PASSWORD@$ANA_DATABSE_HOST/$ANA_DATABASE_NAME -path ./db/migrations up
- Compile into binary:
make
- Create your user account:
ana register <email> <password>
- Run default Gulp task to build static assets:
gulp
- 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.