ana

command module
v0.0.0-...-6b672c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2016 License: MIT Imports: 4 Imported by: 0

README

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.

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. Run the database migrations: ./do database_migrate up
  3. Install Go dependencies: ./do install_dependencies
  4. Compile into binary: ./do bin
  5. Create your user account: ./ana -create_user -email="johndoe@email.com" -password="...."
  6. Run default Gulp task to build static assets: gulp
  7. Start the webserver: ./ana & 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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL