Coder Social home page Coder Social logo

phpdever / visit_analytics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nladuo/visit_analytics

0.0 2.0 0.0 1.22 MB

自用的网站访问量统计工具

License: MIT License

Makefile 1.06% Go 60.96% Shell 0.58% JavaScript 32.08% CSS 3.60% HTML 1.72%

visit_analytics's Introduction

visit_analytics

自用的网站访问量统计工具

截图

总访问量

screenshot

显示日(月)访问量

screenshot2

使用

下载安装

git clone https://github.com/nladuo/visit_analytics.git
cd visit_analytics
make prepare 		# 下载库文件

创建数据库

CREATE DATABASE IF NOT EXISTS `visit_analytics` DEFAULT CHARSET utf8 COLLATE utf8_general_ci;

配置文件

打开config,yaml, 配置mysql与访问密码。

manage:
  username: nladuo
  password: nladuo
db:
  username: root
  password: root
  port: 3306
  host: localhost
  dbname: visit_analytics
deploy_host: localhost:3000
run_at: :3000

安装运行

make && ./visit_analytics config.yaml

部署

./deploy.sh

使用案例

test.html,添加<script type="text/javascript" src="http://localhost:3000/analytics.js"></script>到要统计的网页中。(将localhost:3000替换成你部署的服务器地址)

LICENSE

MIT

visit_analytics's People

Contributors

nladuo avatar

Watchers

James Cloos 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.