Giter Site home page Giter Site logo

knightth0r / plugin-visitorgenerator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matomo-org/plugin-visitorgenerator

0.0 2.0 0.0 2.74 MB

Plugin to create fake visits, websites, users and goals to populate Piwik reports

Home Page: http://piwik.org

PHP 99.78% HTML 0.22%

plugin-visitorgenerator's Introduction

Piwik VisitorGenerator Plugin

Build Status

Description

Plugin to create fake visits, websites, users and goals. This can be used by Piwik users or developers as an easy way to generate fake data to populate Piwik reports.

You can overwrite the log files that are used to generate fake visits in plugins/VisitorGenerator/data or add new logs to the data directory. All files ending with *.log will be replayed.

Plugin developers can provide their own log files by placing '*.log' files within a 'data' directory of their plugin. This way plugin developers make sure there will be always useful test data.

Usage

UI

The plugin adds a new item to the Piwik admin UI visible only for users having Super User access under the section "Development". There you can select a site and for how many days in the past you want to generate new visits.

Note: you need to first enable the Development mode in Piwik. In the root directory of your Piwik install, run the following command to enable development mode: ./console development:enable

CLI

It also adds the following commands to the Piwik CLI tool:

  • Generate visits
  • Generate goals
  • Generate users
  • Generate websites
  • Generate annotation
  • Shorten log file
  • Anonymize log file
Examples
  • ./console visitorgenerator:generate-annotation --idsite 5 generate one annotation for the current day for site with id 5
  • ./console visitorgenerator:generate-goals --idsite 5 generates some predefined goals for site with id 5
  • ./console visitorgenerator:generate-users --limit 100 generates 100 users
  • ./console visitorgenerator:generate-websites --limit 100 generates 100 websites
  • ./console visitorgenerator:generate-visits --idsite 5 generates many visits for site with id 5 for today
  • ./console visitorgenerator:generate-visits --idsite 5 --days 2 generates many visits for site with id 5 for today and yesterday
  • ./console visitorgenerator:anonymize-log /path/to/log takes an Apache log file, anonymizes it and places it in a data directory so it will be replayed the next time "generate-visits" is executed
  • ./console visitorgenerator:shorten-log /path/to/file.log > file.short.log takes a large Apache log file and keeps only a small number of logs per day
  • ./console visitorgenerator:generate-visits --idsite 5 --custom-piwik-url=http://example.com/ Uses 'http://example.com/' as Piwik-URL and generates many visits for site with id 5 for today

Legalnotice

This plugin is released under the GPLv3+ license.

This plugin uses the Faker library which is released under the MIT license.

plugin-visitorgenerator's People

Contributors

dbanetto avatar diosmosis avatar findus23 avatar gka avatar halfdan avatar mattab avatar mnapoli avatar mneudert avatar robocoder avatar sgiehl avatar tsteur avatar tzi avatar

Watchers

 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.