Git Product home page Git Product logo

php-web-analytics's Introduction

WebAnalytics

Free open-source web analytics with easy integration into existing PHP scripts.

Usage

  • Place webanalytics.php and websettings.php in the same directory as your own php scripts, and modify the database parameters in websettings.php.

OR

  • Place only webanalytics.php in the same directory as your own php scripts and modify the database parameters in webanalytics.php as well as webstatistics.php.

websettings.php / webanalytics.php / webstatistics.php

$web_analytics_db = new web_db_manager("mysql:dbname=database;host=127.0.0.1", "user", "password");

Afterwards all you need to do is including webanalytics.php in your own php scripts to start collecting data:

include "webanalytics.php";

Run your script / webanalytics.php once to initialize the database tables, now webstatistics.php will show you an current analysis of your web traffic and visitors.

Interested in using WebAnalytics as a library or in a modified way? You can disable auto run in the settings:

$web_auto_run = FALSE;

To run web analytics manually use following code:

$web_analytics_db->connect();
$web_analytics = new web_analytics($web_analytics_db, $_SERVER, $_COOKIE);

As a professional you might also want to try our yet experimental JavaScript for collecting additional data:

<script src="wa.js"></script>

Requirements

  • PHP 5.0 or higher
  • a database server with PDO driver
  • (a webserver of course)

Affiliated projects

Frameworks / Libraries used for dashboard

Information about upcoming releases

I've decided to stop implementing new features myself as the possible use cases for this project are very limited. However contributions are still very welcome. Feel free to implement new features yourself and submit a merge-request so everyone can benefit from your changes.

I'll (probably) later this year introduce new projects that focus on web analytics solutions for cloud environments like AWS, Tencent Cloud and Alibaba Cloud.

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.