Search code examples
phpmysqlmariadbmatomo

Piwik move views to another site id


I need to move some page views from one site to another because an page generation fault generated my website with an incorrect site_id.

Can anyone here tell me how to do that?


Solution

  • Use server access logs. You can import the data using --replay-tracking option. Make sure that you have proper site ID in logs, you can use sed to replace incorrect idsite with the one you would like to use.