Git Product home page Git Product logo

intranetsubnetwork's Introduction

This is a fork of the Piwik plugin IntranetSubNetwork from http://dev.piwik.org/trac/ticket/1054. Changes since that version can be seen on https://github.com/pklaus/IntranetSubNetwork/compare/v0.2...HEAD.

What this plugin does and how it works

I'm using the plugin to see how many visitors of my site were using IPv4 vs. IPv6. You can, however, use it to identify the number of users from your local network (Intranet) or from any other subnet.
This is done by assigning the network different names in the file IntranetSubNetwork.php (see the lines below #131). Here is an example that lets Piwik assign the network label Global IPv4 to any IPv4 visitors:

<?php
if (Piwik_IP::isIpInRange($visitorInfo['location_ip'], array('0.0.0.0/0'))) { $networkName = 'Global IPv4'; }
?>

General Installation Instructions

  1. Create the folder ./IntranetSubNetwork in the plugins folder of your Piwik installation.
    Then copy the plugin files into that folder.
  2. (optional) Adopt the networks defined in IntranetSubNetwork.php to your needs.
  3. Activate the plugin on Piwik's settings page.
  4. Add the Visitor Networks widget to your Piwik Dashboard.

Installation as a Git repository

If you know how to use Git, I recommend to install the plugin this way (makes it easier to keep it up to date):

cd /var/www/path/to/your/piwik/installation/plugins/
git clone git://github.com/pklaus/IntranetSubNetwork.git

Upgrading Considerations

If you had the original IntranetSubNetwork plugin (v0.2 by Alain) installed, you should be carefull about upgrading because I changed the name of the binary archive blob. This means that you have to discard the archive tables in your Piwik database when upgrading from this old version.

Resources

  • If all you're interested in is IPv6 vs IPv4 users, the plugin IPv6Usage may also do the job for you.

intranetsubnetwork's People

Contributors

pklaus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

intranetsubnetwork's Issues

New version and email reports

Hi,

I know, this does not really belong here, but I cannot find any option to actually submit an issue on https://github.com/kwasib/IntranetSubNetwork or even contact kwasib. So maybe you could forward it or enable issues there.

Here's the thing: The IntranetSubNetwork works great on piwik 2.x unless I want to include the visitor network in an email report. It then says that it is not able to generate a sum in Row.php:585. Any idea how that is related to IntranetSubNetwork (if I kick it out of the report, it works fine)?

Thanks,
Mario

Not compatible with piwik 2.0.3

Hi there,
the piwik backend tells me that the plugin is not compatible with its current version (2.0.3). Any ideas why? Also any hints where/how I could fix this issue?
Thanks,
Mario

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.