Go Back

Import data with Server Log Analytics and standard JavaScript simultaneously

January 29, 2018

JavaScript Tracking and web server log file analytics can be used at the same time, on the condition that data is recorded for each method in a separate Piwik website.

To avoid double counts of visits, follow these steps:

  1. Create a new website in Piwik PRO with a name like “example.com (log files)”
  2. Record the idsite of this new website. The website ID will be used for importing log file data
  3. In the command line, force all requests from log files to be recorded in a specific website ID via the command –idsite=X