Giter Site home page Giter Site logo

davidquan / ana Goto Github PK

View Code? Open in Web Editor NEW

This project forked from usefathom/fathom

0.0 2.0 0.0 2.87 MB

Ana. Open web analytics in Golang & Preact. [Work In Progress]

License: MIT License

Makefile 1.56% Go 50.67% JavaScript 30.85% CSS 16.49% HTML 0.43%

ana's Introduction

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. get code: go get -u github.com/dannyvankooten/ana (or git clone repo into your $GOPATH )
  2. run npm install (in code directory) to install all required dependencies
  3. Rename .env.example to .env and set your database credentials.
  4. Compile into binary: make
  5. Create your user account: ana register <email> <password>
  6. Run default Gulp task to build static assets: gulp
  7. 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.

ana's People

Contributors

dannyvankooten avatar dennyloko avatar jro7 avatar metalmatze avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.