Opened 3 years ago

Closed 3 years ago

#2458 closed Task (fixed)

Simplify Visitor Generator > Use piwik access logs

Reported by: matt Owned by: matt
Priority: normal Milestone: 1.5 - Piwik 1.5
Component: Core Keywords:
Cc: Sensitive: no


Code for the visitor generator is old and does not use the tracking API, instead it rebuilds tracking requests manually.

Instead, Visitor Generator should take a "Piwik access logs" (requests to piwik.php) from by default (but possible to put your own custom access logs) and it should replay this log file, for N days and playing it M times per day.

the other advantage is that this will be usable for API consumers who wish to "initiate" piwik DB with a fixed set of data and run their own tests on it (rather than the current "random" data sets).

Also, logs will be more "standard" and not use the many random strings etc.

Change History (1)

comment:1 Changed 3 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [4841]) Fixes #2458 - Visitor Generator now based on a "piwik access log, combined format" that is replayed faking Time/IP/User Agent/Accept language header. The file can be swapped for any other log file containing requests to piwik.php

The current log file generates a little bit of ecommerce activity, as well as various pages & custom variables (based off log file)

Note: See TracTickets for help on using tickets.