Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
134 lines (90 sloc) 6.16 KB

Plures-Multi-Website-statistics

Plures is a multi website web analytics software. It offers relevant traffic statistics of all your websites listed together on the same page in a very compact interface, as simple as it sounds!

Preview

Features

  • Relevant web analytics without complicating too much: Views; Visits; Unique visitors; Return Visitors/Visits (Genuine and Non Genuine); Referrers and keywords.

  • Fully customizable charts and tables with one-touch display control.

  • Skip your own pageviews (Ip or cookie).

  • Disabled Javascript Support.

  • Operative System and Browser Identification.

  • It only stores the list of unique users and the daily/monthly totals. (The other lists can be opted-out)

  • Real Time traffic statistics.

  • Real time "What's new/updated" tags.

  • Password protected interface.

  • Protected Mysql Queries.

Installation

  1. Unpack the files and upload to the website where you're going to save the analytics

  2. Load "plures.php" on your browser (e.g.: http://www.mysite.com/plures.php) and follow on-screen instructions

  3. If you don't have a MySQL database created, you'll have to create one on your webhost's control panel.

  4. Register a new website

  5. Copy the script code and insert on the target website.

  6. Repeat steps 4-5 for any other websites you may have

  7. Click "SETTINGS" and configure it to your preferences:

    • Setup a password if you want to keep your analytics private.
    • Setup your ip (if fixed); and/or a cookie in order for your views to not be part of the analytics.
  8. The main page will begin to display analytics data as soon your website(s) get activity.

  9. Be sure to delete files inside "tmp" folder.

Requirements

  • PHP >= 5.3 (compiled with mysqli)
  • MYSQL Database >= 4.1

How does it work

Plures Multi Website Analytics counts analytics through two methods:

  • Sessions/Cookies - Users that accept cookies are tracked directly using server sessions (saved in cookies) and cookies. This kind of users generate a visit per browser session, if the session is older than the pre-defined value, a visit is counted.
  • Host/Last Activity - Users that do no accept cookies, sessions do not work without cookies, so, this users need to be tracked indirectly through their host (if any), last activity and the minimum visit age setting defined in "plures.settings.php". Every time a page view is older than the pre-defined value, a visit is counted.

Notes

  • For consistency, analytics are always counted in GMT time, no matter your timezone or your server's timezone.
  • The timezone option only applies to already recorded dates.
  • Genuine return visits are the visits where the user returns to the website using a cookie tag, previously set on the first visit. The system tries to ensure the users not accepting cookies have a minimum visit age limit, in order to stop them from generating "views" visits.
  • A unique visitor tagged as "Genuine Return Visitor" is a visitor that has at least one Genuine return visit.
  • If the remote website visitor has javascript disabled, the counter will still work, the only difference is that the referrer information won't be retrieved.
  • Monthly uniques and daily uniques are independent from each other (e.g.: if a first time user visits the website for 2 consecutive days, he/she will be counted as 1 monthly unique and 2 daily uniques)
  • All analytics via javascript are from page views that were parsed by a web browser. Non Viewed traffic is not tracked. The filtered views are from automated identities that actually parsed the page source.

Table Headers Explanation

Month Totals

  • Visits - Raw visits
  • Views - Page hits
  • Unique visitors - Genuine Unique users certified by ip/cookie
  • Return Visitors - Genuine Unique return visitors certified by ip/cookie + Non Genuine (If any)
  • Return Visits - Genuine/Non Genuine Visits made by the Return visitors described above
  • Referrers - Remote origins of traffic (Does not include search engines)
  • Keywords - Keywords related to Search Engine Traffic, if the keyword is missing, it will be set as "Undefined".
  • Req. - Requested Pages
  • Interfaces - Chart/Tables, statistic containers.

Daily Totals

  • Unique visitors - Genuine Unique users for the given day certified by ip/cookie
  • Visits - Raw visits
  • Views - Page hits

Folder Structure

  • includes
    • client - client side files (styles, javascript)
    • images - Image files used by this software
    • plures.analytics.class.php - analytics class (counts analytics)
    • plures.functions.php - Standalone functions
    • plures.interface.class.php - Interface Class (Prints templates and processes forms)
    • plures.mysqldb.class.php - MySqlDb Class (Database)
    • plures.settings.php - MySQL Connection details / Advanced settings
    • plures.templates.php - Templates
  • tmp - Temporary Files (Sql files)
  • Changelog.txt - Log Of each version's updated / new features
  • LICENSE - License file
  • plures.php - Interface
  • pluresc.php - Counter
  • README.html - README file in Html version
  • README.txt - README file in text version
  • README.md - This file

Advanced Settings (plures.settings.php)

  • MySQL Database Connection Details
  • Cookie Prefix
  • Maximum Session Age
  • Minimum Visit Age
  • Chart Customization
  • Login Temporary Password
  • Disable Login Form

Chart Customization

You can customize the main chart by editing file includes/plures.settings.php, use the image located at "includes/images/chart_custom_info.png" or consult "readme.html"

Security

The analytics interface can be protected by a password. In order to reset the password, a temporary password can be set on "plures.settings.php". This setting shall only be used for recovery purposes, it must be empty when not needed. Using it to store the password for long periods may lead to security issues. Since the password works through cookies (your browser logs you in automatically using the stored information), for increased security, the login form can also be disabled in "plures.settings.php". In case you need to reset your password, you can re-enable it.