gotrack

command module
v0.0.0-...-2caf85b Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: MIT Imports: 11 Imported by: 0

README

KANA

Kana is a golang implementation of https://github.com/kenpusney/simple-analytics .

Usage:

Build and run the server (see following section), and just include following script in your website.

<script src="http://localhost:10086/ka.js?id=chooseYourOwnId"></script>

Replace the host and id param with your self id, and then every request will hit on on this analytics server.

You can retrieve collected analytics data via report.php by using following 3 params:

/report.php?limit=100&skip=0

For each of these params:

  • limit: the amounts you want to retrieve, default: 20.
  • skip: the offsite you want to skip.
Up and Running

Simply using following script to get an executable

export GOPATH=`pwd`
go get github.com/kenpusney/kana

the kana executable will be in your ./bin path.

Move the template file ka.js.tmpl and config file conf.json to same directory, then the server will be up and running now.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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