https://github.com/pklaus/intranetsubnetwork
IntranetSubNetwork – A plugin for Piwik that allows you to analyze what IPv4 and IPv6 networks your visitors come from. You may want to switch to the fork kwasib/IntranetSubNetwork with Support for Piwik 2.x.
https://github.com/pklaus/intranetsubnetwork
Last synced: about 1 month ago
JSON representation
IntranetSubNetwork – A plugin for Piwik that allows you to analyze what IPv4 and IPv6 networks your visitors come from. You may want to switch to the fork kwasib/IntranetSubNetwork with Support for Piwik 2.x.
- Host: GitHub
- URL: https://github.com/pklaus/intranetsubnetwork
- Owner: pklaus
- Created: 2012-04-26T12:54:54.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-12T08:59:59.000Z (about 12 years ago)
- Last Synced: 2025-03-26T13:05:42.610Z (about 2 months ago)
- Language: PHP
- Homepage: https://github.com/kwasib/IntranetSubNetwork
- Size: 235 KB
- Stars: 7
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
This is a fork of the Piwik plugin *IntranetSubNetwork* from
. Changes since that version can
be seen on .### 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
````
### 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](http://git-scm.com/), I recommend to
install the plugin this way (makes it easier to keep it up to date):```bash
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](https://github.com/pklaus/IntranetSubNetwork/commit/98bc79f).
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.php]: https://github.com/pklaus/IntranetSubNetwork/blob/master/IntranetSubNetwork.php
[lines below #131]: https://github.com/pklaus/IntranetSubNetwork/blob/master/IntranetSubNetwork.php#L131
[IPv6Usage]: https://github.com/halfdan/IPv6Usage