GithubHelp home page GithubHelp logo

nay-kang / jiaozi Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 2.63 MB

Simple user event collect/track system for startup company

License: GNU General Public License v3.0

PHP 43.39% JavaScript 7.85% Java 21.37% Swift 27.38%
ga collect track elasticsearch kibana php

jiaozi's Introduction

Simple Tracking System

Like Google Analytics(GA),this is a simple tracking system.Google only show sampled data,if you want to retrieve detail data.you must pay for it. so why not setup a system for yourself

Only use Lumen,Elasticsearch,Kibana make it simple and fast.if you already familiar with this,then it's very easy for you.

Quick Start

  • Install Elasticsearch & Kibana. in the root directory,there is a file docker-compose.yml.you can use that to setup a docker Elasticsearch qucikly. Or you can install that follow by official docs
  • Deploy Code. git clone [email protected]:nay-kang/jiaozi.git
    • composer install
    • for performance reason.this lumen project use phpredis.you can install it by sudo apt-get install php-redis
    • copy .env.example to .env
    • setup nginx for it
  • Edit app\Extensions\ProfileConfig.php. Or Just use it.the array key 'jn321grq8rwvp5q6' is the project id.
  • then request a url like this.
    • curl "jiaozi.example.com/collect_img.gif?type=pageview&_jiaozi_uid=123&pid=jn321grq8rwvp5q6"
    • type: can be either pageview or event
    • pid: is your project id.
    • _jiaozi_uid: every session need a random id to track user behavior
    • there are some other params like: referer,if you type is event.than params are
      • category,action,label,value (like google)
  • and then you can see it in kibana which index name is collector-*

jiaozi's People

Contributors

nay-kang avatar

Watchers

 avatar  avatar  avatar

Forkers

liyuzheng

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.