Skip to content

Script to merge two Piwik installations or import sites from another Piwik

License

Notifications You must be signed in to change notification settings

janmuennich/piwik-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Piwik Merge

Script to merge two Piwik databases or import sites from another Piwik. Upgraded and tested to work with Piwik 2.5.0.

Usage:

1. Update references to old and new Piwik databases
$db_old = array(
  'server' => 'localhost',
  'user' => '',
  'pass' => '',
  'db' => '',
  'prefix' => 'piwik_',
);

$db_new = array(
  'server' => 'localhost',
  'user' => '',
  'pass' => '',
  'db' => '',
  'prefix' => 'piwik_',
);
2. Input how you'd like to import or merge sites IDs from one instance to the next.
$import_sites = array(2=>0);
3. Run!
php piwik_merge.php

References:

About

Script to merge two Piwik installations or import sites from another Piwik

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages