Prune remote files part 6
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- plugins/CoreConsole/Commands/GenerateController.phpDeleted-54
- plugins/CoreConsole/Commands/GenerateDimension.phpDeleted-265
- plugins/CoreConsole/Commands/GenerateMenu.phpDeleted-54
- plugins/CoreConsole/Commands/GeneratePlugin.phpDeleted-198
- plugins/CoreConsole/Commands/GeneratePluginBase.phpDeleted-431
- plugins/CoreConsole/Commands/GenerateReport.phpDeleted-311
- plugins/CoreConsole/Commands/GenerateScheduledTask.phpDeleted-54
- plugins/CoreConsole/Commands/GenerateSettings.phpDeleted-93
- plugins/CoreConsole/Commands/GenerateSystemCheck.phpDeleted-103
- plugins/CoreConsole/Commands/GenerateTest.phpDeleted-190
- plugins/CoreConsole/Commands/GenerateUpdate.phpDeleted-120
- plugins/CoreConsole/Commands/GenerateVisualizationPlugin.phpDeleted-88
- plugins/CoreConsole/Commands/GenerateVueConstructBase.phpDeleted-58
- plugins/CoreConsole/Commands/GenerateWidget.phpDeleted-172
- plugins/CoreConsole/Commands/GetSegmentSql.phpDeleted-108
- plugins/CoreConsole/Commands/GitCommit.phpDeleted-146
- plugins/CoreConsole/Commands/GitPull.phpDeleted-57
- plugins/CoreConsole/Commands/GitPush.phpDeleted-37
- plugins/CoreConsole/Commands/TestEmail.phpDeleted-46
- plugins/CoreConsole/Commands/WatchLog.phpDeleted-33
- plugins/CoreConsole/CoreConsole.phpDeleted-14
- plugins/CoreConsole/FeatureFlags/CliMultiProcessSymfony.phpDeleted-22
- plugins/CoreConsole/FeatureFlags/SystemSignals.phpDeleted-22
- plugins/CoreConsole/config/config.phpDeleted-3
- plugins/CoreConsole/config/tracker.phpDeleted-3
- plugins/CoreConsole/tests/System/ArchiveCronTest.phpDeleted-569
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest__ExamplePlugin.getExampleArchivedMetric_day.xmlDeleted-9
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_archive_php_cron_output.txtDeleted-107
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_examplePluginNoMetricsBecauseNoOtherPluginsArchived_noOptions__Actions.get_day.xmlDeleted-6
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_examplePluginNoMetricsBecauseNoOtherPluginsArchived_noOptions__Actions.get_week.xmlDeleted-6
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_noOptions__ExamplePlugin.getExampleArchivedMetric_day.xmlDeleted-9
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_noOptions__ExamplePlugin.getExampleArchivedMetric_week.xmlDeleted-9
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_noOptions__Goals.get_month.xmlDeleted-45
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_noOptions__VisitFrequency.get_month.xmlDeleted-75
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_noOptions__VisitsSummary.get_day.xmlDeleted-18
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_noOptions__VisitsSummary.get_month.xmlDeleted-42
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_noOptions__VisitsSummary.get_week.xmlDeleted-18
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_noOptions__VisitsSummary.get_year.xmlDeleted-36
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_nonPreArchivedSegment_noOptions__VisitsSummary.get_day.xmlDeleted-6
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_nonPreArchivedSegment_noOptions__VisitsSummary.get_month.xmlDeleted-6
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_nonPreArchivedSegment_noOptions__VisitsSummary.get_week.xmlDeleted-6
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_nonPreArchivedSegment_noOptions__VisitsSummary.get_year.xmlDeleted-6
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_preArchivedSegment0_noOptions__Live.getLastVisitsDetails_day.xmlDeleted-417
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_preArchivedSegment0_noOptions__Live.getLastVisitsDetails_year.xmlDeleted-1202
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_preArchivedSegment0_noOptions__VisitFrequency.get_day.xmlDeleted-25
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_preArchivedSegment0_noOptions__VisitFrequency.get_year.xmlDeleted-21
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_preArchivedSegment0_noOptions__VisitsSummary.get_day.xmlDeleted-14
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_preArchivedSegment0_noOptions__VisitsSummary.get_year.xmlDeleted-12
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_preArchivedSegment1_noOptions__Live.getLastVisitsDetails_day.xmlDeleted-417
- plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_preArchivedSegment1_noOptions__Live.getLastVisitsDetails_year.xmlDeleted-1202
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Plugin\Manager;
class GenerateController extends GeneratePluginBase{ protected function configure() { $this->setName('generate:controller') ->setDescription('Adds a Controller to an existing plugin') ->addRequiredValueOption('pluginname', null, 'The name of an existing plugin which does not have a Controller yet'); }
protected function doExecute(): int { $pluginName = $this->getPluginName(); $this->checkAndUpdateRequiredPiwikVersion($pluginName);
$exampleFolder = Manager::getPluginDirectory('ExamplePlugin'); $replace = array('ExamplePlugin' => $pluginName); $whitelistFiles = array('/Controller.php', '/templates', '/templates/index.twig');
$this->copyTemplateToPlugin($exampleFolder, $pluginName, $replace, $whitelistFiles);
$this->writeSuccessMessage(array( sprintf('Controller for %s generated.', $pluginName), 'You can now start adding Controller actions', 'Enjoy!', ));
return self::SUCCESS; }
/** * @return string * @throws \RuntimeException */ protected function getPluginName() { $pluginNames = $this->getPluginNamesHavingNotSpecificFile('Controller.php'); $invalidName = 'You have to enter the name of an existing plugin which does not already have a Controller';
return $this->askPluginNameAndValidate($pluginNames, $invalidName); }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Common;use Piwik\DbHelper;use Piwik\Plugin\Manager;
class GenerateDimension extends GeneratePluginBase{ protected function configure() { $this->setName('generate:dimension') ->setDescription('Adds a new dimension to an existing plugin. This allows you to persist new values during tracking.') ->addRequiredValueOption('pluginname', null, 'The name of an existing plugin which does not have a menu defined yet') ->addRequiredValueOption('type', null, 'Whether you want to create a "Visit", an "Action" or a "Conversion" dimension') ->addRequiredValueOption('dimensionname', null, 'A human readable name of the dimension which will be for instance visible in the UI') ->addRequiredValueOption('columnname', null, 'The name of the column in the MySQL database the dimension will be stored under') ->addRequiredValueOption('columntype', null, 'The MySQL type for your dimension, for instance "VARCHAR(255) NOT NULL".'); }
/** * @throws \InvalidArgumentException */ protected function doExecute(): int { $pluginName = $this->getPluginName(); $this->checkAndUpdateRequiredPiwikVersion($pluginName);
$type = $this->getDimensionType(); $dimensionName = $this->getDimensionName();
if ('non-tracking-dimension' === $type) { $columnName = ''; $columType = ''; } else { $columnName = $this->getColumnName($type); $columType = $this->getColumnType(); }
$dimensionClassName = $this->getDimensionClassName($dimensionName); $translatedDimensionName = $this->makeTranslationIfPossible($pluginName, ucfirst($dimensionName));
$exampleFolder = Manager::getPluginDirectory('ExampleTracker'); $replace = array('example_action_dimension' => strtolower($columnName), 'example_visit_dimension' => strtolower($columnName), 'example_conversion_dimension' => strtolower($columnName), 'INTEGER(11) DEFAULT 0 NULL' => strtoupper($columType), 'VARCHAR(255) DEFAULT NULL' => strtoupper($columType), 'ExampleDimension' => $dimensionClassName, 'ExampleVisitDimension' => $dimensionClassName, 'ExampleActionDimension' => $dimensionClassName, 'ExampleConversionDimension' => $dimensionClassName, 'ExampleTracker_DimensionName' => $translatedDimensionName, 'ExampleTracker' => $pluginName, );
$whitelistFiles = array('/Columns');
if ('visit' == $type) { $whitelistFiles[] = '/Columns/ExampleVisitDimension.php'; } elseif ('action' == $type) { $whitelistFiles[] = '/Columns/ExampleActionDimension.php'; } elseif ('conversion' == $type) { $whitelistFiles[] = '/Columns/ExampleConversionDimension.php'; } elseif ('non-tracking-dimension' == $type) { $whitelistFiles[] = '/Columns/ExampleDimension.php'; } else { throw new \InvalidArgumentException('This dimension type is not available'); }
$this->copyTemplateToPlugin($exampleFolder, $pluginName, $replace, $whitelistFiles);
$this->writeSuccessMessage(array( sprintf('Columns/%s.php for %s generated.', ucfirst($dimensionClassName), $pluginName), 'You should now implement the events within this file', 'Enjoy!', ));
return self::SUCCESS; }
private function getDimensionClassName($dimensionName) { $dimensionName = trim($dimensionName); $dimensionName = str_replace(' ', '', $dimensionName); $dimensionName = preg_replace("/[^A-Za-z0-9]/", '', $dimensionName);
$dimensionName = ucfirst($dimensionName);
return $dimensionName; }
/** * @return string * @throws \RuntimeException */ protected function getDimensionName() { $input = $this->getInput();
$validate = function ($dimensionName) { if (empty($dimensionName)) { throw new \InvalidArgumentException('Please enter the name of your dimension'); }
if (preg_match("/[^A-Za-z0-9 ]/", $dimensionName)) { throw new \InvalidArgumentException('Only alpha numerical characters and whitespaces are allowed'); }
return $dimensionName; };
$dimensionName = $input->getOption('dimensionname');
if (empty($dimensionName)) { $dimensionName = $this->askAndValidate( 'Enter a human readable name of your dimension, for instance "Browser": ', $validate ); } else { $validate($dimensionName); }
$dimensionName = ucfirst($dimensionName);
return $dimensionName; }
/** * @param string $type * @return string * @throws \RuntimeException */ protected function getColumnName($type) { $input = $this->getInput();
$validate = function ($columnName) use ($type) { if (empty($columnName)) { throw new \InvalidArgumentException('Please enter the name of the dimension column'); }
if (preg_match("/[^A-Za-z0-9_ ]/", $columnName)) { throw new \InvalidArgumentException('Only alpha numerical characters, underscores and whitespaces are allowed'); }
if ('visit' == $type) { $columns = array_keys(DbHelper::getTableColumns(Common::prefixTable('log_visit'))); } elseif ('action' == $type) { $columns = array_keys(DbHelper::getTableColumns(Common::prefixTable('log_link_visit_action'))); } elseif ('conversion' == $type) { $columns = array_keys(DbHelper::getTableColumns(Common::prefixTable('log_conversion'))); } else { $columns = array(); }
foreach ($columns as $column) { if (strtolower($column) === strtolower($columnName)) { throw new \InvalidArgumentException('This column name is already in use.'); } }
return $columnName; };
$columnName = $input->getOption('columnname');
if (empty($columnName)) { $columnName = $this->askAndValidate( 'Enter the name of the column under which it should be stored in the MySQL database, for instance "visit_total_time": ', $validate ); } else { $validate($columnName); }
return $columnName; }
/** * @return string * @throws \RuntimeException */ protected function getColumnType() { $input = $this->getInput();
$validate = function ($columnType) { if (empty($columnType)) { throw new \InvalidArgumentException('Please enter the type of the dimension column'); }
return $columnType; };
$columnType = $input->getOption('columntype');
if (empty($columnType)) { $columnType = $this->askAndValidate( 'Enter the type of the column under which it should be stored in the MySQL database, for instance "VARCHAR(255) NOT NULL": ', $validate ); } else { $validate($columnType); }
return $columnType; }
/** * @return string * @throws \RuntimeException */ protected function getDimensionType() { $input = $this->getInput(); $acceptedValues = array('visit', 'action', 'conversion', 'non-tracking-dimension');
$validate = function ($type) use ($acceptedValues) { if (empty($type) || !in_array($type, $acceptedValues)) { throw new \InvalidArgumentException('Please enter a valid dimension type (' . implode(', ', $acceptedValues) . '). Choose "non-tracking-dimension" if you only need a blank dimension having a name: '); }
return $type; };
$type = $input->getOption('type');
if (empty($type)) { $type = $this->askAndValidate( 'Please choose the type of dimension you want to create (' . implode( ', ', $acceptedValues ) . '). Choose "non-tracking-dimension" if you only need a blank dimension having a name: ', $validate, null, $acceptedValues ); } else { $validate($type); }
return $type; }
/** * @return string * @throws \RuntimeException */ protected function getPluginName() { $pluginNames = $this->getPluginNames(); $invalidName = 'You have to enter a name of an existing plugin.';
return $this->askPluginNameAndValidate($pluginNames, $invalidName); }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Plugin\Manager;
class GenerateMenu extends GeneratePluginBase{ protected function configure() { $this->setName('generate:menu') ->setDescription('Adds a plugin menu class to an existing plugin') ->addRequiredValueOption('pluginname', null, 'The name of an existing plugin which does not have a menu defined yet'); }
protected function doExecute(): int { $pluginName = $this->getPluginName(); $this->checkAndUpdateRequiredPiwikVersion($pluginName);
$exampleFolder = Manager::getPluginDirectory('ExamplePlugin'); $replace = array('ExamplePlugin' => $pluginName); $whitelistFiles = array('/Menu.php');
$this->copyTemplateToPlugin($exampleFolder, $pluginName, $replace, $whitelistFiles);
$this->writeSuccessMessage(array( sprintf('Menu.php for %s generated.', $pluginName), 'You can now start defining your plugin menu', 'Enjoy!', ));
return self::SUCCESS; }
/** * @return string * @throws \RuntimeException */ protected function getPluginName() { $pluginNames = $this->getPluginNamesHavingNotSpecificFile('Menu.php'); $invalidName = 'You have to enter the name of an existing plugin which does not already have a menu defined';
return $this->askPluginNameAndValidate($pluginNames, $invalidName); }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Filesystem;use Piwik\Plugins\ExamplePlugin\ExamplePlugin;use Piwik\Plugin;use Piwik\Version;
class GeneratePlugin extends GeneratePluginBase{ protected function configure() { $this->setName('generate:plugin') ->setAliases(array('generate:theme')) ->setDescription('Generates a new plugin/theme including all needed files') ->addRequiredValueOption('name', null, 'Plugin name ([a-Z0-9_-])') ->addRequiredValueOption('description', null, 'Plugin description, max 150 characters') ->addOptionalValueOption('pluginversion', null, 'Plugin version') ->addNoValueOption('overwrite', null, 'Generate even if plugin directory already exists.'); }
protected function doExecute(): int { $isTheme = $this->isTheme(); $pluginName = $this->getPluginName(); $description = $this->getPluginDescription(); $version = $this->getPluginVersion();
$this->generatePluginFolder($pluginName);
$plugin = new ExamplePlugin(); $info = $plugin->getInformation(); $exampleDescription = $info['description'];
if ($isTheme) { $exampleFolder = Plugin\Manager::getPluginDirectory('ExampleTheme'); $replace = array( 'ExampleTheme' => $pluginName, $exampleDescription => $description, '0.1.0' => $version, '3.0.0-b1' => Version::VERSION, ); $whitelistFiles = array(); } else { $exampleFolder = Plugin\Manager::getPluginDirectory('ExamplePlugin'); $replace = array( 'ExamplePlugin' => $pluginName, $exampleDescription => $description, '0.1.0' => $version, '3.0.0-b1' => Version::VERSION, ); $whitelistFiles = array( '/ExamplePlugin.php', '/plugin.json', '/README.md', '/CHANGELOG.md', '/screenshots', '/screenshots/.gitkeep', '/docs', '/docs/faq.md', '/docs/index.md', '/config', '/config/config.php', '/config/tracker.php', ); }
$this->copyTemplateToPlugin($exampleFolder, $pluginName, $replace, $whitelistFiles); $this->checkAndUpdateRequiredPiwikVersion($pluginName);
if ($isTheme) { $this->writeSuccessMessage(array( sprintf('Theme %s %s generated.', $pluginName, $version), 'If you have not done yet check out our Theming guide <comment>https://developer.matomo.org/guides/theming</comment>', 'Enjoy!', )); } else { $this->writeSuccessMessage(array( sprintf('Plugin %s %s generated.', $pluginName, $version), 'Our developer guides will help you developing this plugin, check out <comment>https://developer.matomo.org/guides</comment>', 'To see a list of available generators execute <comment>./console list generate</comment>', 'Enjoy!', )); }
return self::SUCCESS; }
/** * @return bool */ private function isTheme() { $commandName = $this->getInput()->getFirstArgument();
return false !== strpos($commandName, 'theme'); }
protected function generatePluginFolder($pluginName) { $pluginPath = $this->getPluginPath($pluginName); Filesystem::mkdir($pluginPath); }
/** * @return string * @throws \RuntimeException */ protected function getPluginName() { $overwrite = $this->getInput()->getOption('overwrite');
$self = $this;
$validate = function ($pluginName) use ($self, $overwrite) { if (empty($pluginName)) { throw new \RuntimeException('You have to enter a plugin name'); }
if (!Plugin\Manager::getInstance()->isValidPluginName($pluginName)) { throw new \RuntimeException(sprintf('The plugin name %s is not valid. The name must be no longer than 60 characters and start with a letter and is only allowed to contain numbers and letters.', $pluginName)); }
$pluginPath = $self->getPluginPath($pluginName);
if ( file_exists($pluginPath) && !$overwrite ) { throw new \RuntimeException('A plugin with this name already exists'); }
return $pluginName; };
$pluginName = $this->getInput()->getOption('name');
if (empty($pluginName)) { $pluginName = $this->askAndValidate('Enter a plugin name: ', $validate); } else { $validate($pluginName); }
$pluginName = ucfirst($pluginName);
return $pluginName; }
/** * @return mixed * @throws \RuntimeException */ protected function getPluginDescription() { $validate = function ($description) { if (empty($description)) { throw new \RuntimeException('You have to enter a description'); } if (150 < strlen($description)) { throw new \RuntimeException('Description is too long, max 150 characters allowed.'); }
return $description; };
$description = $this->getInput()->getOption('description');
if (empty($description)) { $description = $this->askAndValidate('Enter a plugin description: ', $validate); } else { $validate($description); }
return $description; }
/** * @return string */ protected function getPluginVersion() { $version = $this->getInput()->getOption('pluginversion');
if (is_null($version)) { $version = $this->ask('Enter a plugin version number (default to 0.1.0): ', '0.1.0'); }
return $version; }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Common;use Piwik\Development;use Piwik\Filesystem;use Piwik\Plugin\ConsoleCommand;use Piwik\Plugin\Dependency;use Piwik\Plugin\Manager;use Piwik\Version;use Piwik\SettingsPiwik;use Piwik\Exception\NotGitInstalledException;
abstract class GeneratePluginBase extends ConsoleCommand{ protected function doInitialize(): void { $this->throwErrorIfNotGitInstalled(); }
public function isEnabled() { return Development::isEnabled(); }
public function getPluginPath($pluginName) { return Manager::getPluginDirectory($pluginName); }
private function createFolderWithinPluginIfNotExists($pluginNameOrCore, $folder) { if ($pluginNameOrCore === 'core') { $pluginPath = $this->getPathToCore(); } else { $pluginPath = $this->getPluginPath($pluginNameOrCore); }
if (!file_exists($pluginPath . $folder)) { Filesystem::mkdir($pluginPath . $folder); } }
protected function createFileWithinPluginIfNotExists($pluginNameOrCore, $fileName, $content) { if ($pluginNameOrCore === 'core') { $pluginPath = $this->getPathToCore(); } else { $pluginPath = $this->getPluginPath($pluginNameOrCore); }
if (!file_exists($pluginPath . $fileName)) { file_put_contents($pluginPath . $fileName, $content); } }
/** * Creates a lang/en.json within the plugin in case it does not exist yet and adds a translation for the given * text. * * @param $pluginName * @param $translatedText * @param string $translationKey Optional, by default the key will be generated automatically * @return string Either the generated translation key or the original text if a different translation for this * generated translation key already exists. */ protected function makeTranslationIfPossible($pluginName, $translatedText, $translationKey = '') { $defaultLang = array($pluginName => array());
$this->createFolderWithinPluginIfNotExists($pluginName, '/lang'); $this->createFileWithinPluginIfNotExists($pluginName, '/lang/en.json', $this->toJson($defaultLang));
$langJsonPath = $this->getPluginPath($pluginName) . '/lang/en.json'; $translations = file_get_contents($langJsonPath); $translations = json_decode($translations, true);
if (empty($translations[$pluginName])) { $translations[$pluginName] = array(); }
if (!empty($translationKey)) { $key = $translationKey; } else { $key = $this->buildTranslationKey($translatedText); }
if (array_key_exists($key, $translations[$pluginName])) { // we do not want to overwrite any existing translations if ($translations[$pluginName][$key] === $translatedText) { return $pluginName . '_' . $key; }
return $translatedText; }
$translations[$pluginName][$key] = $this->removeNonJsonCompatibleCharacters($translatedText);
file_put_contents($langJsonPath, $this->toJson($translations));
return $pluginName . '_' . $key; }
protected function checkAndUpdateRequiredPiwikVersion($pluginName) { $output = $this->getOutput(); $pluginJsonPath = $this->getPluginPath($pluginName) . '/plugin.json'; $relativePluginJson = Manager::getPluginDirectory($pluginName) . '/plugin.json';
if (!file_exists($pluginJsonPath) || !is_writable($pluginJsonPath)) { return; }
$pluginJson = file_get_contents($pluginJsonPath); $pluginJson = json_decode($pluginJson, true);
if (empty($pluginJson)) { return; }
if (empty($pluginJson['require'])) { $pluginJson['require'] = array(); }
$piwikVersion = Version::VERSION; $nextMajorVersion = (int) substr($piwikVersion, 0, strpos($piwikVersion, '.')) + 1; $secondPartPiwikVersionRequire = ',<' . $nextMajorVersion . '.0.0-b1'; if (false === strpos($piwikVersion, '-')) { // see https://github.com/composer/composer/issues/4080 we need to specify -stable otherwise it would match // $piwikVersion-dev meaning it would also match all pre-released. However, we only want to match a stable // release $piwikVersion .= '-stable'; }
$newRequiredVersion = sprintf('>=%s,<%d.0.0-b1', $piwikVersion, $nextMajorVersion);
if (!empty($pluginJson['require']['piwik'])) { $pluginJson['require']['matomo'] = $pluginJson['require']['piwik']; unset($pluginJson['require']['piwik']); }
if (!empty($pluginJson['require']['matomo'])) { $requiredVersion = trim($pluginJson['require']['matomo']);
if ($requiredVersion === $newRequiredVersion) { // there is nothing to updated return; }
// our generated versions look like ">=2.25.4,<3.0.0-b1". // We only updated the Piwik version in the first part if the piwik version looks like that or if it has only // one piwik version defined. In all other cases, eg user uses || etc we do not update it as user has customized // the piwik version.
foreach (['<>','!=', '<=','==', '^'] as $comparison) { if (strpos($requiredVersion, $comparison) === 0) { // user is using custom piwik version require, we do not overwrite anything. return; } }
if (strpos($requiredVersion, '||') !== false || strpos($requiredVersion, ' ') !== false) { // user is using custom piwik version require, we do not overwrite anything. return; }
$requiredPiwikVersions = explode(',', (string) $requiredVersion); $numRequiredPiwikVersions = count($requiredPiwikVersions);
if ($numRequiredPiwikVersions > 2) { // user is using custom piwik version require, we do not overwrite anything. return; }
if ( $numRequiredPiwikVersions === 2 && !Common::stringEndsWith($requiredVersion, $secondPartPiwikVersionRequire) ) { // user is using custom piwik version require, we do not overwrite anything return; }
// if only one piwik version is defined we update it to make sure it does now specify an upper version limit
$dependency = new Dependency(); $missingVersion = $dependency->getMissingVersions($piwikVersion, $requiredVersion);
if (!empty($missingVersion)) { $msg = sprintf( 'We cannot generate this component as the plugin "%s" requires the Piwik version "%s" in the ' . 'file "%s". Generating this component requires "%s". If you know your plugin is compatible with your ' . 'Piwik version remove the required Piwik version in "%s" and try to execute this command again.', $pluginName, $requiredVersion, $relativePluginJson, $newRequiredVersion, $relativePluginJson );
throw new \Exception($msg); }
$output->writeln(''); $output->writeln(sprintf( '<comment>We have updated the required Piwik version from "%s" to "%s" in "%s".</comment>', $requiredVersion, $newRequiredVersion, $relativePluginJson )); } else { $output->writeln(''); $output->writeln(sprintf( '<comment>We have updated your "%s" to require the Piwik version "%s".</comment>', $relativePluginJson, $newRequiredVersion )); }
$pluginJson['require']['matomo'] = $newRequiredVersion; file_put_contents($pluginJsonPath, $this->toJson($pluginJson)); }
private function toJson($value) { if (defined('JSON_PRETTY_PRINT')) { return json_encode($value, JSON_PRETTY_PRINT); }
return json_encode($value); }
private function buildTranslationKey($translatedText) { $translatedText = preg_replace('/(\s+)/', '', $translatedText); $translatedText = preg_replace("/[^A-Za-z0-9]/", '', $translatedText); $translatedText = trim($translatedText);
return $this->removeNonJsonCompatibleCharacters($translatedText); }
private function removeNonJsonCompatibleCharacters($text) { return preg_replace('/[^(\x00-\x7F)]*/', '', $text); }
/** * Copies the given method and all needed use statements into an existing class. The target class name will be * built based on the given $replace argument. * @param string $sourceClassName * @param string $methodName * @param array $replace */ protected function copyTemplateMethodToExisitingClass($sourceClassName, $methodName, $replace) { $targetClassName = $this->replaceContent($replace, $sourceClassName);
if (Development::methodExists($targetClassName, $methodName)) { // we do not want to add the same method twice return; }
Development::checkMethodExists($sourceClassName, $methodName, 'Cannot copy template method: ');
$targetClass = new \ReflectionClass($targetClassName); $file = new \SplFileObject($targetClass->getFileName());
$methodCode = Development::getMethodSourceCode($sourceClassName, $methodName); $methodCode = $this->replaceContent($replace, $methodCode); $methodLine = $targetClass->getEndLine() - 1;
$sourceUses = Development::getUseStatements($sourceClassName); $targetUses = Development::getUseStatements($targetClassName); $usesToAdd = array_diff($sourceUses, $targetUses); if (empty($usesToAdd)) { $useCode = ''; } else { $useCode = "\nuse " . implode("\nuse ", $usesToAdd) . "\n"; }
// search for namespace line before the class starts $useLine = 0; foreach (new \LimitIterator($file, 0, $targetClass->getStartLine()) as $index => $line) { if (0 === strpos(trim($line), 'namespace ')) { $useLine = $index + 1; break; } }
$newClassCode = ''; foreach (new \LimitIterator($file) as $index => $line) { if ($index == $methodLine) { $newClassCode .= $methodCode; }
if (0 !== $useLine && $index == $useLine) { $newClassCode .= $useCode; }
$newClassCode .= $line; }
file_put_contents($targetClass->getFileName(), $newClassCode); }
/** * @param string $templateFolder full path like /home/... * @param string $pluginName * @param array $replace array(key => value) $key will be replaced by $value in all templates * @param array $whitelistFiles If not empty, only given files/directories will be copied. * For instance array('/Controller.php', '/templates', '/templates/index.twig') */ protected function copyTemplateToPlugin($templateFolder, $pluginName, array $replace = [], $whitelistFiles = []) { $replace['PLUGINNAME'] = $pluginName;
$files = array_merge( Filesystem::globr($templateFolder, '*'), // Also copy files starting with . such as .gitignore Filesystem::globr($templateFolder, '.*') );
foreach ($files as $file) { $fileNamePlugin = str_replace($templateFolder, '', $file);
if (!empty($whitelistFiles) && !in_array($fileNamePlugin, $whitelistFiles)) { continue; }
if (is_dir($file)) { $fileNamePlugin = $this->replaceContent($replace, $fileNamePlugin); $this->createFolderWithinPluginIfNotExists($pluginName, $fileNamePlugin); } else { $template = file_get_contents($file); $template = $this->replaceContent($replace, $template);
$fileNamePlugin = $this->replaceContent($replace, $fileNamePlugin);
$this->createFileWithinPluginIfNotExists($pluginName, $fileNamePlugin, $template); } } }
protected function getPluginNames() { $pluginNames = array(); foreach (Manager::getPluginsDirectories() as $pluginsDir) { $pluginDirs = \_glob($pluginsDir . '*', GLOB_ONLYDIR);
foreach ($pluginDirs as $pluginDir) { $pluginNames[] = basename($pluginDir); } }
return $pluginNames; }
protected function getPluginNamesHavingNotSpecificFile($filename) { $pluginNames = array(); foreach (Manager::getPluginsDirectories() as $pluginsDir) { $pluginDirs = \_glob($pluginsDir . '*', GLOB_ONLYDIR);
foreach ($pluginDirs as $pluginDir) { if (!file_exists($pluginDir . '/' . $filename)) { $pluginNames[] = basename($pluginDir); } } } return $pluginNames; }
/** * @return string * @throws \RuntimeException */ protected function askPluginNameAndValidate($pluginNames, $invalidArgumentException) { $input = $this->getInput();
$validate = function ($pluginName) use ($pluginNames, $invalidArgumentException) { if (!in_array($pluginName, $pluginNames)) { throw new \InvalidArgumentException($invalidArgumentException); }
return $pluginName; };
$pluginName = $input->getOption('pluginname');
if (empty($pluginName)) { $pluginName = $this->askAndValidate('Enter the name of your plugin: ', $validate, false, $pluginNames); } else { $validate($pluginName); }
return $pluginName; }
private function getPathToCore() { $path = PIWIK_INCLUDE_PATH . '/core'; return $path; }
private function replaceContent($replace, $contentToReplace) { foreach ((array) $replace as $key => $value) { $contentToReplace = str_replace($key, $value, $contentToReplace); }
return $contentToReplace; }
protected function throwErrorIfNotGitInstalled() { if (!SettingsPiwik::isGitDeployment()) { $url = 'https://developer.matomo.org/guides/getting-started-part-1'; throw new NotGitInstalledException( "This development feature requires Matomo to be checked out from git. For more information please visit {$url}." ); } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Columns\Dimension;use Piwik\Container\StaticContainer;use Piwik\Piwik;use Piwik\Plugin\Manager;use Piwik\Plugin\ReportsProvider;
class GenerateReport extends GeneratePluginBase{ protected function configure() { $this->setName('generate:report') ->setDescription('Adds a new report to an existing plugin') ->addRequiredValueOption('pluginname', null, 'The name of an existing plugin which does not have a menu defined yet') ->addRequiredValueOption('reportname', null, 'The name of the report you want to create') ->addRequiredValueOption('category', null, 'The name of the category the report belongs to') ->addOptionalValueOption('dimension', null, 'The name of the dimension in case your report has a dimension') ->addRequiredValueOption('documentation', null, 'A documentation that explains what your report is about'); }
protected function doExecute(): int { $pluginName = $this->getPluginName(); $this->checkAndUpdateRequiredPiwikVersion($pluginName);
$reportName = $this->getReportName(); $category = $this->getCategory($pluginName); $documentation = $this->getDocumentation(); [$dimension, $dimensionClass] = $this->getDimension($pluginName);
$order = $this->getOrder($category); $apiName = $this->getApiName($reportName);
$exampleFolder = Manager::getPluginDirectory('ExampleReport'); $replace = array('GetExampleReport' => ucfirst($apiName), 'getExampleReport' => lcfirst($apiName), 'getApiReport' => lcfirst($apiName), 'ExampleCategory' => $category, 'ExampleReportName' => $this->makeTranslationIfPossible($pluginName, $reportName), 'ExampleReportDocumentation' => $documentation, '999' => $order, 'new ExitPageUrl()' => $dimension, 'use Piwik\Plugins\Actions\Columns\ExitPageUrl;' => $dimensionClass, 'ExampleReport' => $pluginName, );
$whitelistFiles = array('/Reports', '/Reports/Base.php', '/Reports/GetExampleReport.php');
if (file_exists($this->getPluginPath($pluginName) . '/API.php')) { $this->copyTemplateMethodToExisitingClass('Piwik\Plugins\ExampleReport\API', 'getExampleReport', $replace); } else { $whitelistFiles[] = '/API.php'; }
$this->copyTemplateToPlugin($exampleFolder, $pluginName, $replace, $whitelistFiles);
$this->writeSuccessMessage(array( sprintf('plugins/%s/Reports/%s.php for %s generated.', $pluginName, ucfirst($apiName), $pluginName), 'You should now implement the method called <comment>"' . lcfirst($apiName) . '()"</comment> in API.php', // 'Read more about this here: link to developer guide', 'Enjoy!', ));
return self::SUCCESS; }
private function getOrder($category) { $order = 1;
$reports = new ReportsProvider();
foreach ($reports->getAllReports() as $report) { if ($report->getCategoryId() === $category) { if ($report->getOrder() > $order) { $order = $report->getOrder() + 1; } } }
return $order; }
private function getApiName($reportName) { $reportName = trim($reportName); $reportName = str_replace(' ', '', $reportName); $reportName = preg_replace("/[^A-Za-z0-9]/", '', $reportName);
$apiName = 'get' . ucfirst($reportName);
return $apiName; }
/** * @return string * @throws \RuntimeException */ protected function getReportName() { $input = $this->getInput(); $validate = function ($reportName) { if (empty($reportName)) { throw new \InvalidArgumentException('Please enter the name of your report'); }
if (preg_match("/[^A-Za-z0-9 ]/", $reportName)) { throw new \InvalidArgumentException('Only alpha numerical characters and whitespaces are allowed'); }
return $reportName; };
$reportName = $input->getOption('reportname');
if (empty($reportName)) { $reportName = $this->askAndValidate( 'Enter the name of your report, for instance "Browser Families": ', $validate ); } else { $validate($reportName); }
$reportName = ucfirst($reportName);
return $reportName; }
/** * @return string * @throws \RuntimeException */ protected function getDocumentation() { $input = $this->getInput(); $validate = function ($documentation) { if (empty($documentation)) { return ''; }
return $documentation; };
$documentation = $input->getOption('documentation');
if (empty($documentation)) { $documentation = $this->askAndValidate( 'Enter a documentation that describes the data of your report (you can leave it empty and define it later): ', $validate ); } else { $validate($documentation); }
$documentation = ucfirst($documentation);
return $documentation; }
/** * @param string $pluginName * @return string * @throws \RuntimeException */ protected function getCategory($pluginName) { $input = $this->getInput(); $path = $this->getPluginPath($pluginName) . '/Reports/Base.php'; if (file_exists($path)) { // category is already defined in base.php return ''; }
$validate = function ($category) { if (empty($category)) { throw new \InvalidArgumentException('Please enter the name of the category your report belongs to'); }
return $category; };
$category = $input->getOption('category');
$reports = new ReportsProvider();
$categories = array(); foreach ($reports->getAllReports() as $report) { if ($report->getCategoryId()) { $categories[] = Piwik::translate($report->getCategoryId()); } } $categories = array_values(array_unique($categories));
if (empty($category)) { $category = $this->askAndValidate( 'Enter the report category, for instance "Visitor" (you can reuse any existing category or define a new one): ', $validate, false, $categories ); } else { $validate($category); }
$translationKey = StaticContainer::get('Piwik\Translation\Translator')->findTranslationKeyForTranslation($category); if (!empty($translationKey)) { return $translationKey; }
$category = ucfirst($category);
return $category; }
/** * @param string $pluginName * @return array * @throws \RuntimeException */ protected function getDimension($pluginName) { $input = $this->getInput(); $dimensions = array(); $dimensionNames = array();
$reports = new ReportsProvider();
foreach ($reports->getAllReports() as $report) { $dimension = $report->getDimension(); if (is_object($dimension)) { $name = $dimension->getName(); if (!empty($name)) { $dimensions[$name] = get_class($dimension); $dimensionNames[] = $name; } } }
$plugin = Manager::getInstance()->loadPlugin($pluginName); $dimensions = Dimension::getAllDimensions(); $dimensions = array_merge($dimensions, Dimension::getDimensions($plugin));
foreach ($dimensions as $dimension) { $name = $dimension->getName(); if (!empty($name)) { $dimensions[$name] = get_class($dimension); $dimensionNames[] = $name; } }
$dimensionNames = array_values(array_unique($dimensionNames));
$validate = function ($dimension) use ($dimensions) { if (empty($dimension)) { return ''; }
if (!empty($dimension) && !array_key_exists($dimension, $dimensions)) { throw new \InvalidArgumentException('Leave dimension either empty or use an existing one. You can also create a new dimension by calling .console generate:dimension before generating this report.'); }
return $dimension; };
$actualDimension = $input->getOption('dimension');
if (null === $actualDimension) { $actualDimension = $this->askAndValidate( 'Enter the report dimension, for instance "Browser" (you can leave it either empty or use an existing one): ', $validate, null, $dimensionNames ); } else { $validate($actualDimension); }
if (empty($actualDimension)) { return array('null', ''); }
$className = $dimensions[$actualDimension]; $parts = explode('\\', $className); $name = end($parts);
return array('new ' . $name . '()', 'use ' . $className . ';'); }
/** * @return string * @throws \RuntimeException */ protected function getPluginName() { $pluginNames = $this->getPluginNames(); $invalidName = 'You have to enter a name of an existing plugin.';
return $this->askPluginNameAndValidate($pluginNames, $invalidName); }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Plugin\Manager;
class GenerateScheduledTask extends GeneratePluginBase{ protected function configure() { $this->setName('generate:scheduledtask') ->setDescription('Adds a tasks class to an existing plugin which allows you to specify scheduled tasks') ->addRequiredValueOption('pluginname', null, 'The name of an existing plugin which does not have any tasks defined yet'); }
protected function doExecute(): int { $pluginName = $this->getPluginName(); $this->checkAndUpdateRequiredPiwikVersion($pluginName);
$exampleFolder = Manager::getPluginDirectory('ExamplePlugin'); $replace = array('ExamplePlugin' => $pluginName); $whitelistFiles = array('/Tasks.php');
$this->copyTemplateToPlugin($exampleFolder, $pluginName, $replace, $whitelistFiles);
$this->writeSuccessMessage(array( sprintf('Tasks.php for %s generated.', $pluginName), 'You can now start specifying your scheduled tasks', 'Enjoy!', ));
return self::SUCCESS; }
/** * @return string * @throws \RuntimeException */ protected function getPluginName() { $pluginNames = $this->getPluginNamesHavingNotSpecificFile('Tasks.php'); $invalidName = 'You have to enter the name of an existing plugin which does not already have any tasks defined';
return $this->askPluginNameAndValidate($pluginNames, $invalidName); }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Plugin\Manager;
class GenerateSettings extends GeneratePluginBase{ protected function configure() { $this->setName('generate:settings') ->setDescription('Adds a SystemSetting, UserSetting or MeasurableSetting class to an existing plugin') ->addRequiredValueOption('pluginname', null, 'The name of an existing plugin which does not have settings yet') ->addRequiredValueOption('settingstype', null, 'The type of settings you want to create. Should be one of these values: ' . implode(', ', $this->getSettingTypes())); }
protected function doExecute(): int { $settingsType = $this->getSettingsType(); $settingsFilename = $settingsType . '.php';
$pluginName = $this->getPluginName($settingsType, $settingsFilename); $this->checkAndUpdateRequiredPiwikVersion($pluginName);
$exampleFolder = Manager::getPluginDirectory('ExampleSettingsPlugin'); $replace = array('ExampleSettingsPlugin' => $pluginName); $whitelistFiles = array('/' . $settingsFilename);
$this->copyTemplateToPlugin($exampleFolder, $pluginName, $replace, $whitelistFiles);
$this->writeSuccessMessage(array( sprintf('%s for %s generated.', $settingsFilename, $pluginName), 'You can now start defining your ' . $settingsType, 'Enjoy!', ));
return self::SUCCESS; }
private function getSettingTypes() { return array('system', 'user', 'measurable'); }
private function getSettingsType() { $input = $this->getInput(); $availableTypes = $this->getSettingTypes();
$validate = function ($type) use ($availableTypes) { if (empty($type) || !in_array($type, $availableTypes)) { throw new \InvalidArgumentException('Please enter a valid settings type (' . implode(', ', $availableTypes) . '). '); }
return $type; };
$settingsType = $input->getOption('settingstype');
if (empty($settingsType)) { $settingsType = $this->askAndValidate( 'Please choose the type of settings you want to create (' . implode(', ', $availableTypes) . '): ', $validate, null, $availableTypes ); } else { $validate($settingsType); }
return ucfirst($settingsType) . 'Settings'; }
/** * @param string $settingsType * @return string * @throws \RuntimeException */ protected function getPluginName($settingsType, $settingsFile) { $pluginNames = $this->getPluginNamesHavingNotSpecificFile($settingsFile); $invalidName = 'You have to enter the name of an existing plugin which does not already have ' . $settingsType;
return $this->askPluginNameAndValidate($pluginNames, $invalidName); }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Common;use Piwik\Plugin\Manager;
class GenerateSystemCheck extends GeneratePluginBase{ protected function configure() { $this->setName('generate:system-check') ->setDescription('Adds a new system check to an existing plugin') ->addRequiredValueOption('pluginname', null, 'The name of an existing plugin which does not have a menu defined yet') ->addRequiredValueOption('checkname', null, 'The name of the system check you want to create'); }
protected function doExecute(): int { $pluginName = $this->getPluginName(); $this->checkAndUpdateRequiredPiwikVersion($pluginName);
$checkName = $this->getSystemCheckName(); $className = ucfirst(str_replace(' ', '', $checkName)); if (!Common::stringEndsWith($className, 'check') && !Common::stringEndsWith($className, 'Check')) { $className .= 'Check'; }
$exampleFolder = Manager::getPluginDirectory('ExamplePlugin'); $replace = array('ExampleCheck' => $className, 'Example Check' => $checkName, 'ExamplePlugin' => $pluginName, );
$whitelistFiles = array('/Diagnostic', '/Diagnostic/ExampleCheck.php');
$this->copyTemplateToPlugin($exampleFolder, $pluginName, $replace, $whitelistFiles);
$this->writeSuccessMessage(array( sprintf('plugins/%s/Diagnostic/%s.php for %s generated.', $pluginName, $className, $pluginName), sprintf('You should now implement the method called <comment>execute</comment> in %s.php', $className), 'You also need to make the diagnostic check known to Matomo in your "plugins/' . $pluginName . '/config/config.php".', 'Read more about this here: https://developer.matomo.org/guides/system-check', 'Enjoy!', ));
return self::SUCCESS; }
/** * @return string * @throws \RuntimeException */ protected function getSystemCheckName() { $input = $this->getInput(); $validate = function ($checkName) { if (empty($checkName)) { throw new \InvalidArgumentException('Please enter the name of your system check'); }
if (preg_match("/[^A-Za-z0-9 ]/", $checkName)) { throw new \InvalidArgumentException('Only alpha numerical characters and whitespaces are allowed'); }
return $checkName; };
$checkName = $input->getOption('checkname');
if (empty($checkName)) { $checkName = $this->askAndValidate( 'Enter the name of your system check, for example "PDF PHP Extension Check": ', $validate ); } else { $validate($checkName); }
$checkName = ucfirst($checkName);
return $checkName; }
/** * @return string * @throws \RuntimeException */ protected function getPluginName() { $pluginNames = $this->getPluginNames(); $invalidName = 'You have to enter a name of an existing plugin.';
return $this->askPluginNameAndValidate($pluginNames, $invalidName); }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Common;use Piwik\Plugin\Manager;
class GenerateTest extends GeneratePluginBase{ protected function configure() { $this->setName('generate:test') ->setDescription('Adds a test to an existing plugin') ->addRequiredValueOption('pluginname', null, 'The name of an existing plugin') ->addRequiredValueOption('testname', null, 'The name of the test to create') ->addRequiredValueOption('testtype', null, 'Whether you want to create a "unit", "integration", "system", or "ui" test'); }
protected function doExecute(): int { $pluginName = $this->getPluginName(); $testType = $this->getTestType(); $testName = $this->getTestName($testType);
$exampleFolder = Manager::getPluginDirectory('ExamplePlugin'); $replace = array( 'ExamplePlugin' => $pluginName, 'SimpleTest' => $testName, 'SimpleSystemTest' => $testName, 'SimpleUITest_spec.js' => $testName . '_spec.js', 'SimpleUITest' => $testName, );
$whitelistFiles = $this->getTestFilesWhitelist($testType); $this->copyTemplateToPlugin($exampleFolder, $pluginName, $replace, $whitelistFiles);
$messages = array( sprintf('Test %s for plugin %s generated.', $testName, $pluginName), );
if (strtolower($testType) === 'ui') { $messages[] = 'To run this test execute the command: '; $messages[] = '<comment>' . sprintf('./console tests:run-ui %s', $testName) . '</comment>'; } else { $messages[] = 'To run all your plugin tests, execute the command: '; $messages[] = '<comment>' . sprintf('./console tests:run %s', $pluginName) . '</comment>'; $messages[] = 'To run only this test: '; $messages[] = '<comment>' . sprintf('./console tests:run %s', $testName) . '</comment>'; }
$messages[] = 'Enjoy!';
$this->writeSuccessMessage($messages);
return self::SUCCESS; }
/** * @return string * @throws \RuntimeException */ private function getTestName($testType) { $testname = $this->getInput()->getOption('testname');
$validate = function ($testname) { if (empty($testname)) { throw new \InvalidArgumentException('You have to enter a valid test name '); }
return $testname; };
if (empty($testname)) { $testname = $this->askAndValidate('Enter the name of the test: ', $validate); } else { $validate($testname); }
if (strtolower($testType) !== 'ui' && !Common::stringEndsWith(strtolower($testname), 'test')) { $testname = $testname . 'Test'; }
$testname = ucfirst($testname);
return $testname; }
/** * @return string * @throws \RuntimeException */ protected function getPluginName() { $pluginNames = $this->getPluginNames(); $invalidName = 'You have to enter the name of an existing plugin';
return $this->askPluginNameAndValidate($pluginNames, $invalidName); }
public function getValidTypes() { return array('unit', 'integration', 'system', 'ui'); }
/** * @return string Unit, Integration, System */ private function getTestType() { $testtype = $this->getInput()->getOption('testtype');
$self = $this;
$validate = function ($testtype) use ($self) { if (empty($testtype) || !in_array($testtype, $self->getValidTypes())) { throw new \InvalidArgumentException('You have to enter a valid test type: ' . implode(" or ", $self->getValidTypes())); } return $testtype; };
if (empty($testtype)) { $testtype = $this->askAndValidate( 'Enter the type of the test to generate (' . implode(", ", $this->getValidTypes()) . '): ', $validate, null, $this->getValidTypes() ); } else { $validate($testtype); }
$testtype = ucfirst($testtype); return $testtype; }
/** * @return array */ protected function getTestFilesWhitelist($testType) { if ('Ui' == $testType) { return array( '/tests', '/tests/UI', '/tests/UI/.gitignore', '/tests/UI/expected-screenshots', '/tests/UI/expected-screenshots/.gitkeep', '/tests/UI/SimpleUITest_spec.js', ); }
if ('System' == $testType) { return array( '/.gitignore', '/tests', '/tests/System', '/tests/System/SimpleSystemTest.php', '/tests/System/expected', '/tests/System/expected/test___API.get_day.xml', '/tests/System/expected/test___Goals.getItemsSku_day.xml', '/tests/System/processed', '/tests/System/processed/.gitignore', '/tests/Fixtures', '/tests/Fixtures/SimpleFixtureTrackFewVisits.php', ); }
if ('Integration' == $testType) { return array( '/tests', '/tests/Integration', '/tests/Integration/SimpleTest.php', ); }
return array( '/tests', '/tests/Unit', '/tests/Unit/SimpleTest.php', ); }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Plugin;use Piwik\Updater;use Piwik\Version;
class GenerateUpdate extends GeneratePluginBase{ protected function configure() { $this->setName('generate:update') ->setDescription('Adds a new update to an existing plugin or "core"') ->addRequiredValueOption('component', null, 'The name of an existing plugin or "core"'); }
protected function doExecute(): int { $component = $this->getComponent();
$version = $this->getVersion($component); $namespace = $this->getNamespace($component); $className = $this->getUpdateClassName($component, $version);
$exampleFolder = Plugin\Manager::getPluginDirectory('ExamplePlugin'); $replace = array('Piwik\Plugins\ExamplePlugin\Updates' => $namespace, 'ExamplePlugin' => $component, 'Updates_0_0_2' => $className, '0.0.2' => $version); $whitelistFiles = array('/Updates', '/Updates/0.0.2.php');
$this->copyTemplateToPlugin($exampleFolder, $component, $replace, $whitelistFiles);
$this->writeSuccessMessage(array( sprintf('Updates/%s.php for %s generated.', $version, $component), 'You should have a look at the method update() or getSql() now.', 'Enjoy!', ));
return self::SUCCESS; }
private function getUpdateClassName($component, $version) { $updater = new Updater(); $className = $updater->getUpdateClassName($component, $version); $parts = explode('\\', $className);
return end($parts); }
private function getVersion($component) { if ($component === 'core') { return Version::VERSION; }
$pluginManager = Plugin\Manager::getInstance();
if ($pluginManager->isPluginLoaded($component)) { $plugin = $pluginManager->getLoadedPlugin($component); } else { $plugin = new Plugin($component); }
return $plugin->getVersion(); }
private function getNamespace($component) { $updater = new Updater(); $className = $updater->getUpdateClassName($component, 'xx'); $className = str_replace('Updates_xx', '', $className); $className = trim($className, '\\');
return $className; }
/** * @return string * @throws \RuntimeException */ private function getComponent() { $input = $this->getInput(); $components = $this->getPluginNames(); $components[] = 'core';
$validate = function ($component) use ($components) { if (!in_array($component, $components)) { throw new \InvalidArgumentException('You have to enter a name of an existing plugin or "core".'); }
return $component; };
$component = $input->getOption('component');
if (empty($component)) { $component = $this->askAndValidate( 'Enter the name of your plugin or "core": ', $validate, null, $components ); } else { $validate($component); }
return $component; }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Plugin\Manager;
class GenerateVisualizationPlugin extends GeneratePlugin{ protected function configure() { $this->setName('generate:visualizationplugin') ->setDescription('Generates a new visualization plugin including all needed files') ->addRequiredValueOption('name', null, 'Plugin name ([a-Z0-9_-])') ->addRequiredValueOption('visualizationname', null, 'Visualization name ([a-Z0-9])') ->addRequiredValueOption('description', null, 'Plugin description, max 150 characters') ->addOptionalValueOption('pluginversion', null, 'Plugin version') ->addNoValueOption('overwrite', null, 'Generate even if plugin directory already exists.') ->addOptionalValueOption('full', null, 'If a value is set, an API and a Controller will be created as well. Option is only available for creating plugins, not for creating themes.'); }
protected function doExecute(): int { $pluginName = $this->getPluginName(); $this->checkAndUpdateRequiredPiwikVersion($pluginName); $description = $this->getPluginDescription(); $version = $this->getPluginVersion(); $visualizationName = $this->getVisualizationName();
$this->generatePluginFolder($pluginName);
$exampleFolder = Manager::getPluginDirectory('ExampleVisualization'); $replace = array( 'SimpleTable' => $visualizationName, 'simpleTable' => lcfirst($visualizationName), 'Simple Table' => $this->makeTranslationIfPossible($pluginName, $visualizationName), 'ExampleVisualization' => $pluginName, 'ExampleVisualizationDescription' => $description, );
$this->copyTemplateToPlugin($exampleFolder, $pluginName, $replace, $allowListFiles = array());
$this->writeSuccessMessage(array( sprintf('Visualization plugin %s %s generated.', $pluginName, $version), 'Enjoy!', ));
return self::SUCCESS; }
/** * @return string * @throws \RuntimeException */ private function getVisualizationName() { $input = $this->getInput(); $validate = function ($visualizationName) { if (empty($visualizationName)) { throw new \RuntimeException('You have to enter a visualization name'); }
if (!ctype_alnum($visualizationName)) { throw new \RuntimeException(sprintf('The visualization name %s is not valid (only AlNum allowed)', $visualizationName)); }
return $visualizationName; };
$visualizationName = $input->getOption('visualizationname');
if (empty($visualizationName)) { $visualizationName = $this->askAndValidate('Enter a visualization name (only AlNum allowed): ', $validate); } else { $validate($visualizationName); }
$visualizationName = ucfirst($visualizationName);
return $visualizationName; }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
abstract class GenerateVueConstructBase extends GeneratePluginBase{ /** * @param string $optionName the name of the option to use. * @param string $constructType 'directive', 'component', etc. * @return string * @throws \RuntimeException */ protected function getConstructName($optionName, $constructType) { $testname = $this->getInput()->getOption($optionName);
$validate = function ($testname) use ($constructType) { if (empty($testname)) { throw new \InvalidArgumentException("You have to enter a name for the $constructType"); }
if (!ctype_alnum($testname)) { throw new \InvalidArgumentException("Only alphanumeric characters are allowed as a $constructType " . "name. Use CamelCase if the name of your $constructType contains multiple words."); }
return $testname; };
if (empty($testname)) { $testname = $this->askAndValidate( "Enter the name of the $constructType you want to create: ", $validate ); } else { $validate($testname); }
$testname = ucfirst($testname);
return $testname; }
protected function getPluginName() { $pluginNames = $this->getPluginNames(); $invalidName = 'You have to enter the name of an existing plugin';
return $this->askPluginNameAndValidate($pluginNames, $invalidName); }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Container\StaticContainer;use Piwik\Piwik;use Piwik\Plugin\Manager;use Piwik\Widget\WidgetsList;
class GenerateWidget extends GeneratePluginBase{ protected function configure() { $this->setName('generate:widget') ->setDescription('Adds a plugin widget class to an existing plugin') ->addRequiredValueOption('pluginname', null, 'The name of an existing plugin which does not have any widgets defined yet') ->addRequiredValueOption('widgetname', null, 'The name of the widget you want to create') ->addRequiredValueOption('category', null, 'The name of the category the widget should belong to'); }
protected function doExecute(): int { $pluginName = $this->getPluginName(); $this->checkAndUpdateRequiredPiwikVersion($pluginName);
$widgetName = $this->getWidgetName(); $category = $this->getCategory();
if ($category === Piwik::translate($category)) { // no translation found... $category = $this->makeTranslationIfPossible($pluginName, $category); }
$widgetMethod = $this->getWidgetMethodName($widgetName); $widgetClass = ucfirst($widgetMethod);
$exampleFolder = Manager::getPluginDirectory('ExamplePlugin'); $replace = array('ExamplePlugin' => $pluginName, 'MyExampleWidget' => $widgetClass, 'Example Widget Name' => $this->makeTranslationIfPossible($pluginName, $widgetName), 'About Matomo' => $category); $whitelistFiles = array('/Widgets', '/Widgets/MyExampleWidget.php');
$this->copyTemplateToPlugin($exampleFolder, $pluginName, $replace, $whitelistFiles);
$this->writeSuccessMessage(array( sprintf('plugins/%s/Widgets/%s.php generated.', $pluginName, $widgetClass), 'You can now start implementing the <comment>render()</comment> method.', 'Enjoy!', ));
return self::SUCCESS; }
private function getWidgetMethodName($methodName) { $methodName = trim($methodName); $methodName = str_replace(' ', '', $methodName); $methodName = preg_replace("/[^A-Za-z0-9]/", '', $methodName);
if (0 !== strpos(strtolower($methodName), 'get')) { $methodName = 'get' . ucfirst($methodName); }
return lcfirst($methodName); }
/** * @return string * @throws \RuntimeException */ protected function getWidgetName() { $validate = function ($widgetName) { if (empty($widgetName)) { throw new \InvalidArgumentException('Please enter the name of your widget'); }
if (preg_match("/[^A-Za-z0-9 ]/", $widgetName)) { throw new \InvalidArgumentException('Only alpha numerical characters and whitespaces are allowed'); }
return $widgetName; };
$widgetName = $this->getInput()->getOption('widgetname');
if (empty($widgetName)) { $widgetName = $this->askAndValidate( 'Enter the name of your Widget, for instance "Browser Families": ', $validate ); } else { $validate($widgetName); }
$widgetName = ucfirst($widgetName);
return $widgetName; }
protected function getExistingCategories() { $categories = array(); foreach (WidgetsList::get()->getWidgetConfigs() as $widget) { if ($widget->getCategoryId()) { $categories[] = Piwik::translate($widget->getCategoryId()); } } $categories = array_values(array_unique($categories));
return $categories; }
/** * @return string * @throws \RuntimeException */ protected function getCategory() { $input = $this->getInput(); $validate = function ($category) { if (empty($category)) { throw new \InvalidArgumentException('Please enter the name of the category your widget should belong to'); }
return $category; };
$category = $input->getOption('category'); $categories = $this->getExistingCategories();
if (empty($category)) { $category = $this->askAndValidate( 'Enter the widget category, for instance "Visitor" (you can reuse any existing category or define a new one): ', $validate, null, $categories ); } else { $validate($category); }
$translationKey = StaticContainer::get('Piwik\Translation\Translator')->findTranslationKeyForTranslation($category); if (!empty($translationKey)) { return $translationKey; }
$category = ucfirst($category);
return $category; }
/** * @return string * @throws \RuntimeException */ protected function getPluginName() { $pluginNames = $this->getPluginNames(); $invalidName = 'You have to enter a name of an existing plugin.';
return $this->askPluginNameAndValidate($pluginNames, $invalidName); }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\ArchiveProcessor\Parameters;use Piwik\DataAccess\LogAggregator;use Piwik\Development;use Piwik\Metrics;use Piwik\Period\Factory;use Piwik\Plugin\ConsoleCommand;use Piwik\Plugins\SitesManager\Model;use Piwik\Segment;use Piwik\Site;
class GetSegmentSql extends ConsoleCommand{ public function isEnabled() { return Development::isEnabled(); }
protected function configure() { $this->setName('development:get-segment-sql'); $this->setDescription('Print out the SQL used to query for a segment. Used for debugging or diagnosing segment issues. The site ID and dates are hardcoded in the query.'); $this->addRequiredValueOption('segment', null, 'The segment, correctly encoded.'); $this->addRequiredValueOption('idSites', null, 'Comma separated list of site IDs for the segment. (optional)'); $this->addRequiredValueOption('queryType', null, 'The query type to generate: visit, action or conversion'); }
protected function doExecute(): int { $input = $this->getInput(); $output = $this->getOutput(); $idSites = $input->getOption('idSites') ?: ''; $idSites = explode(',', $idSites); $idSites = array_map('intval', $idSites); $idSites = array_filter($idSites);
$queryType = $input->getOption('queryType');
$segment = $input->getOption('segment'); $segment = new Segment($segment, $idSites);
$model = new Model(); $allIdSites = $model->getSitesId(); $idSiteInQuery = reset($allIdSites);
$params = new Parameters(new Site($idSiteInQuery), Factory::build('day', 'today'), $segment);
$logAggregator = new LogAggregator($params); switch ($queryType) { case 'visit': $query = $logAggregator->generateQuery( implode(LogAggregator::FIELDS_SEPARATOR, [ Metrics::INDEX_NB_UNIQ_VISITORS => "count(distinct " . LogAggregator::LOG_VISIT_TABLE . ".idvisitor)", Metrics::INDEX_NB_VISITS => "count(*)", ]), [LogAggregator::LOG_VISIT_TABLE], $logAggregator->getWhereStatement(LogAggregator::LOG_VISIT_TABLE, LogAggregator::VISIT_DATETIME_FIELD), '', '' ); break; case 'action': $query = $logAggregator->generateQuery( implode(LogAggregator::FIELDS_SEPARATOR, [ Metrics::INDEX_NB_VISITS => "count(distinct " . LogAggregator::LOG_ACTIONS_TABLE . ".idvisit)", Metrics::INDEX_NB_UNIQ_VISITORS => "count(distinct " . LogAggregator::LOG_ACTIONS_TABLE . ".idvisitor)", Metrics::INDEX_NB_ACTIONS => "count(*)", ]), [LogAggregator::LOG_ACTIONS_TABLE], $logAggregator->getWhereStatement(LogAggregator::LOG_ACTIONS_TABLE, LogAggregator::ACTION_DATETIME_FIELD), '', '' ); break; case 'conversion': $query = $logAggregator->generateQuery( implode(LogAggregator::FIELDS_SEPARATOR, [ Metrics::INDEX_GOAL_NB_CONVERSIONS => "count(*)", Metrics::INDEX_GOAL_NB_VISITS_CONVERTED => "count(distinct " . LogAggregator::LOG_CONVERSION_TABLE . ".idvisit)", ]), [LogAggregator::LOG_CONVERSION_TABLE], $logAggregator->getWhereStatement(LogAggregator::LOG_CONVERSION_TABLE, LogAggregator::CONVERSION_DATETIME_FIELD), '', '' ); break; default: throw new \InvalidArgumentException('Invalid value for --queryType, must be one of the following: visit, action, conversion'); }
$output->writeln("QUERY: " . $query['sql']); foreach ($query['bind'] as $key => $value) { $output->writeln(' BIND #' . $key . ': ' . $value); }
return self::SUCCESS; }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Development;use Piwik\Plugin\ConsoleCommand;use Piwik\SettingsPiwik;
class GitCommit extends ConsoleCommand{ public function isEnabled() { return Development::isEnabled() && SettingsPiwik::isGitDeployment(); }
protected function configure() { $this->setName('git:commit') ->setDescription('Commit') ->addRequiredValueOption('message', 'm', 'Commit Message'); }
protected function doExecute(): int { $input = $this->getInput(); $output = $this->getOutput(); $submodules = $this->getSubmodulePaths();
foreach ($submodules as $submodule) { if (empty($submodule)) { continue; }
$status = $this->getStatusOfSubmodule($submodule); if (false !== strpos($status, '?? ')) { $output->writeln(sprintf('<error>%s has untracked files or folders. Delete or add them and try again.</error>', $submodule)); $output->writeln('<error>Status:</error>'); $output->writeln(sprintf('<comment>%s</comment>', $status)); return self::FAILURE; } }
$commitMessage = $input->getOption('message');
if (empty($commitMessage)) { $output->writeln('No message specified. Use option -m or --message.'); return self::FAILURE; }
if (!$this->hasChangesToBeCommitted()) { $question = '<question>There are no changes to be committed in the super repo, do you just want to commit and converge submodules?</question>'; if (!$this->askForConfirmation($question, false)) { $output->writeln('<info>Cool, nothing done. Stage files using "git add" and try again.</info>'); return self::SUCCESS; } }
foreach ($submodules as $submodule) { if (empty($submodule)) { continue; }
$status = $this->getStatusOfSubmodule($submodule); if (empty($status)) { $output->writeln(sprintf('%s has no changes, will ignore', $submodule)); continue; }
$cmd = sprintf('cd %s/%s && git pull && git add . && git commit -am "%s"', PIWIK_DOCUMENT_ROOT, $submodule, $commitMessage); $this->passthru($cmd); }
if ($this->hasChangesToBeCommitted()) { $cmd = sprintf('cd %s && git commit -m "%s"', PIWIK_DOCUMENT_ROOT, $commitMessage); $this->passthru($cmd); }
foreach ($submodules as $submodule) { if (empty($submodule)) { continue; }
$cmd = sprintf('cd %s && git add %s', PIWIK_DOCUMENT_ROOT, $submodule); $this->passthru($cmd); }
if ($this->hasChangesToBeCommitted()) { $cmd = sprintf('cd %s && git commit -m "Updating submodules"', PIWIK_DOCUMENT_ROOT); $this->passthru($cmd); }
return self::SUCCESS; }
private function passthru($cmd) { $this->getOutput()->writeln('Executing command: ' . $cmd); passthru($cmd); }
private function hasChangesToBeCommitted() { $cmd = sprintf('cd %s && git status --porcelain', PIWIK_DOCUMENT_ROOT); $result = shell_exec($cmd); $result = trim($result);
if (false !== strpos($result, 'M ')) { // stages return true; }
if (false !== strpos($result, 'MM ')) { // staged and modified return true; }
return false; }
/** * @return array */ private function getSubmodulePaths() { $cmd = sprintf("grep path .gitmodules | sed 's/.*= //'"); $submodules = shell_exec($cmd); $submodules = explode("\n", $submodules);
return $submodules; }
protected function getStatusOfSubmodule($submodule) { $cmd = sprintf('cd %s/%s && git status --porcelain', PIWIK_DOCUMENT_ROOT, $submodule); $status = trim(shell_exec($cmd) ?? '');
return $status; }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Plugin\ConsoleCommand;use Piwik\SettingsPiwik;
class GitPull extends ConsoleCommand{ public function isEnabled() { return SettingsPiwik::isGitDeployment(); }
protected function configure() { $this->setName('git:pull'); $this->setDescription('Pull Piwik repo and all submodules'); }
protected function getBranchName() { $cmd = sprintf('cd %s && git rev-parse --abbrev-ref HEAD', PIWIK_DOCUMENT_ROOT); $branch = shell_exec($cmd);
return trim($branch); }
protected function doExecute(): int { if ('master' != $this->getBranchName()) { $this->getOutput()->writeln('<info>Doing nothing because you are not on the master branch in super repo.</info>'); return self::SUCCESS; }
$cmd = sprintf('cd %s && git checkout master && git pull && git submodule update --init --recursive --remote', PIWIK_DOCUMENT_ROOT); $this->passthru($cmd);
$cmd = 'git submodule foreach "(git checkout master; git pull)&"'; $this->passthru($cmd);
return self::SUCCESS; }
private function passthru($cmd) { $this->getOutput()->writeln('Executing command: ' . $cmd); passthru($cmd); }}12345678910111213141516171819202122232425262728293031323334353637<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Development;use Piwik\Plugin\ConsoleCommand;use Piwik\SettingsPiwik;
class GitPush extends ConsoleCommand{ public function isEnabled() { return Development::isEnabled() && SettingsPiwik::isGitDeployment(); }
protected function configure() { $this->setName('git:push'); $this->setDescription('Push Piwik repo and all submodules'); }
protected function doExecute(): int { $cmd = sprintf('cd %s && git push --recurse-submodules=on-demand', PIWIK_DOCUMENT_ROOT); $this->getOutput()->writeln('Executing command: ' . $cmd); passthru($cmd);
return self::SUCCESS; }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Config;use Piwik\Mail;use Piwik\Plugin\ConsoleCommand;use Piwik\SettingsPiwik;
class TestEmail extends ConsoleCommand{ protected function configure() { $this->setName('core:test-email'); $this->setDescription('Send a test email'); $this->addRequiredArgument('emailAddress', 'The destination email address'); }
protected function doExecute(): int { $config = Config::getInstance();
$email = $this->getInput()->getArgument('emailAddress'); $matomoUrl = SettingsPiwik::getPiwikUrl(); $body = "Hello, world! <br/> This is a test email sent from $matomoUrl"; $subject = "This is a test email sent from $matomoUrl";
$mail = new Mail(); $mail->setSmtpDebug(true); $mail->addTo($email, 'Matomo User'); $mail->setFrom($config->General['noreply_email_address'], $config->General['noreply_email_name']); $mail->setSubject($subject); $mail->setWrappedHtmlBody($body); $mail->send(); $this->getOutput()->writeln('Message sent to ' . $email);
return self::SUCCESS; }}123456789101112131415161718192021222324252627282930313233<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\Commands;
use Piwik\Container\StaticContainer;use Piwik\Plugin\ConsoleCommand;
class WatchLog extends ConsoleCommand{ protected function configure() { $this->setName('log:watch'); $this->setDescription('Outputs the last parts of the log files and follows as the log file grows. Does not work on Windows'); }
protected function doExecute(): int { $path = StaticContainer::get('path.tmp') . '/logs/'; $cmd = sprintf('tail -f %s*.log', $path);
$this->getOutput()->writeln('Executing command: ' . $cmd); passthru($cmd);
return self::SUCCESS; }}1234567891011121314<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole;
class CoreConsole extends \Piwik\Plugin{}12345678910111213141516171819202122<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
declare(strict_types=1);
namespace Piwik\Plugins\CoreConsole\FeatureFlags;
use Piwik\Plugins\FeatureFlags\FeatureFlagInterface;
class CliMultiProcessSymfony implements FeatureFlagInterface{ public function getName(): string { return 'CliMultiProcessSymfony'; }}12345678910111213141516171819202122<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
declare(strict_types=1);
namespace Piwik\Plugins\CoreConsole\FeatureFlags;
use Piwik\Plugins\FeatureFlags\FeatureFlagInterface;
class SystemSignals implements FeatureFlagInterface{ public function getName(): string { return 'SystemSignals'; }}123<?php
return array();123<?php
return array();123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569<?php
/** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */
namespace Piwik\Plugins\CoreConsole\tests\System;
use Piwik\Archive\ArchivePurger;use Piwik\ArchiveProcessor\Rules;use Piwik\CronArchive;use Piwik\DataAccess\ArchiveWriter;use Piwik\DataAccess\Model;use Piwik\Http;use Piwik\Log\Logger;use Piwik\Log\LoggerInterface;use Piwik\Period\Day;use Piwik\Period\Month;use Piwik\Period\Week;use Piwik\Plugins\SegmentEditor\API;use Piwik\Site;use Piwik\Tests\Framework\TestingEnvironmentVariables;use Piwik\Container\Container;use Piwik\Archive\ArchiveInvalidator;use Piwik\Common;use Piwik\Config;use Piwik\Container\StaticContainer;use Piwik\DataAccess\ArchiveTableCreator;use Piwik\Date;use Piwik\Db;use Piwik\Segment;use Piwik\Tests\Framework\TestCase\SystemTestCase;use Piwik\Tests\Fixtures\ManySitesImportedLogs;use Piwik\Tests\Framework\Fixture;
/** * Tests to call the cron core:archive command script and check there is no error, * Then call the API testing for "Browser archiving is disabled" (see disableArchiving) * This tests that, when archiving is disabled, * then Piwik API will return data that was pre-processed during archive.php run * * @group Core * @group ArchiveCronTest */class ArchiveCronTest extends SystemTestCase{ public const NEW_SEGMENT = 'operatingSystemCode==IOS'; public const NEW_SEGMENT_NAME = 'segmentForToday'; public const ENCODED_SEGMENT = 'pageUrl=@%252F'; public const ENCODED_SEGMENT_NAME = 'segmentWithEncoding';
/** * @var ManySitesImportedLogs */ public static $fixture = null; // initialized below class definition
public static function setUpBeforeClass(): void { parent::setUpBeforeClass();
Db::exec("UPDATE " . Common::prefixTable('site') . ' SET ts_created = \'2005-01-02 00:00:00\''); Site::clearCache(); }
private static function trackVisitInPast($ip = null) { $t = Fixture::getTracker(self::$fixture->idSite, '2012-08-09 16:00:00'); if ($ip) { $t->setIp($ip); } $t->setUserAgent('Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148'); $t->setUrl('http://pastwebsite.com/here/we/go'); Fixture::checkResponse($t->doTrackPageView('a page title'));
// update ts_archived for archives in 2012_08 so they will be invalidated and rearchived $sql = "UPDATE " . ArchiveTableCreator::getNumericTable(Date::factory('2012-08-01'), true) . " SET ts_archived = ?"; Db::query($sql, [Date::now()->subHour(2)->getDatetime()]); }
private static function addNewSegmentToPast() { Config::getInstance()->General['enable_browser_archiving_triggering'] = 0; self::$fixture->getTestEnvironment()->overrideConfig('General', 'enable_browser_archiving_triggering', 0); self::$fixture->getTestEnvironment()->save();
Rules::setBrowserTriggerArchiving(false);
// add one segment and set it's created/updated time to some time in the past so we don't re-archive for it $idSegment = API::getInstance()->add(self::NEW_SEGMENT_NAME, self::NEW_SEGMENT, self::$fixture->idSite, $autoArchive = 1, $enabledAllUsers = 1);
// add another segment w/ special encoded value (but do it through the API which will use a definition query param which is not // encoded the same as Request::getRawSegmentFromRequest() $url = Fixture::getTestRootUrl() . '?' . http_build_query([ 'module' => 'API', 'method' => 'SegmentEditor.add', 'name' => self::ENCODED_SEGMENT_NAME, 'definition' => self::ENCODED_SEGMENT, 'idSite' => self::$fixture->idSite, 'autoArchive' => 1, 'enabledAllUsers' => 1, 'format' => 'json', 'token_auth' => Fixture::getTokenAuth(), ]); self::assertStringContainsString(urlencode(self::ENCODED_SEGMENT), $url);
$idSegment2 = Http::sendHttpRequest($url, 10); $idSegment2 = json_decode($idSegment2, $isAssoc = true); $idSegment2 = $idSegment2['value'];
Config::getInstance()->General['enable_browser_archiving_triggering'] = 1; self::$fixture->getTestEnvironment()->overrideConfig('General', 'enable_browser_archiving_triggering', 1); self::$fixture->getTestEnvironment()->save();
Rules::setBrowserTriggerArchiving(true);
Db::exec("UPDATE " . Common::prefixTable('segment') . ' SET ts_created = \'2015-01-02 00:00:00\', ts_last_edit = \'2015-01-02 00:00:00\' WHERE idsegment IN (' . $idSegment . ", " . $idSegment2 . ")"); }
private static function trackVisitsForToday() { $startTime = Date::today()->addHour(12)->getDatetime();
$t = Fixture::getTracker(self::$fixture->idSite, $startTime); $t->setUserAgent('Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148'); $t->setUrl('http://awebsite.com/here/we/go'); Fixture::checkResponse($t->doTrackPageView('a page title'));
$t->setUrl('http://awebsite.com/another/page'); $t->setForceVisitDateTime(Date::factory($startTime)->addHour(1)); Fixture::checkResponse($t->doTrackPageView('a second page title')); }
public function getApiForTesting() { $apiRequiringSegments = ['Goals.get', 'VisitFrequency.get'];
$results = array();
foreach (self::$fixture->getDefaultSegments() as $segmentName => $info) { $results[] = array('VisitsSummary.get', array('idSite' => 'all', 'date' => '2012-08-09', 'periods' => array('day', 'week', 'month', 'year'), 'segment' => $info['definition'], 'testSuffix' => '_' . $segmentName)); }
$results[] = array('VisitsSummary.get', array('idSite' => 'all', 'date' => 'today', 'periods' => ['day', 'week', 'month', 'year'], 'segment' => self::NEW_SEGMENT, 'testSuffix' => '_' . self::NEW_SEGMENT_NAME));
$results[] = array('VisitsSummary.get', array('idSite' => 'all', 'date' => 'today', 'periods' => ['day', 'week', 'month', 'year'], 'segment' => self::ENCODED_SEGMENT, 'testSuffix' => '_' . self::ENCODED_SEGMENT_NAME));
// ExamplePlugin metric $results[] = ['ExamplePlugin.getExampleArchivedMetric', [ 'idSite' => 'all', 'date' => '2007-04-05', 'periods' => ['day', 'week'], ]]; $results[] = ['Actions.get', [ 'idSite' => 'all', 'date' => '2007-04-05', 'periods' => ['day', 'week'], 'testSuffix' => '_examplePluginNoMetricsBecauseNoOtherPluginsArchived', ]];
// API Call Without segments $results[] = array('VisitsSummary.get', array('idSite' => 'all', 'date' => '2012-08-09', 'periods' => array('day', 'month', 'year', 'week')));
$results[] = array($apiRequiringSegments, array('idSite' => 'all', 'date' => '2012-08-09', 'periods' => array('month')));
$results[] = array('VisitsSummary.get', array('idSite' => 'all', 'date' => '2012-08-09', 'periods' => array('day', 'week', 'month', 'year'), 'segment' => 'browserCode==EP', 'testSuffix' => '_nonPreArchivedSegment'));
$segments = array(ManySitesImportedLogs::SEGMENT_PRE_ARCHIVED, ManySitesImportedLogs::SEGMENT_PRE_ARCHIVED_CONTAINS_ENCODED, ); foreach ($segments as $index => $segment) { // Test with a pre-processed segment $results[] = array(array('VisitsSummary.get', 'Live.getLastVisitsDetails', 'VisitFrequency.get'), array('idSite' => '1', 'date' => '2012-08-09', 'periods' => array('day', 'year'), 'segment' => $segment, 'testSuffix' => '_preArchivedSegment' . $index, 'otherRequestParameters' => array( 'hideColumns' => 'latitude,longitude', ), 'xmlFieldsToRemove' => array( 'fingerprint', ), ), ); }
return $results; }
public function testArchivePhpCron() { self::$fixture->getTestEnvironment()->overrideConfig('General', 'enable_browser_archiving_triggering', 0); self::$fixture->getTestEnvironment()->overrideConfig('General', 'browser_archiving_disabled_enforce', 1); self::$fixture->getTestEnvironment()->save();
Config::getInstance()->General['enable_browser_archiving_triggering'] = 0; Config::getInstance()->General['browser_archiving_disabled_enforce'] = 1;
Rules::setBrowserTriggerArchiving(false);
$dateToTest = '2007-04-05';
// invalidate exampleplugin only archives in past $invalidator = StaticContainer::get(ArchiveInvalidator::class); $invalidator->markArchivesAsInvalidated( [1], [$dateToTest], 'day', new Segment('', [1]), false, false, 'ExamplePlugin' );
// track a visit in 2007-04-05 so it will fully archive (ExamplePlugin wouldn't archive without visit) $tracker = Fixture::getTracker(1, $dateToTest); $tracker->setUrl('http://example.com/test/url'); Fixture::checkResponse($tracker->doTrackPageView('abcdefg'));
$invalidationEntries = $this->getInvalidatedArchiveTableEntries(); // there should be 4 invalidations (day, week, month, year) for ExamplePlugin self::assertCount(4, $invalidationEntries); self::assertEquals(['done.ExamplePlugin'], array_unique(array_column($invalidationEntries, 'name')));
// empty the list so nothing is invalidated during core:archive (so we only archive ExamplePlugin and not all plugins) $invalidator->forgetRememberedArchivedReportsToInvalidate(1, Date::factory($dateToTest));
$this->runArchivePhpCron();
$table = ArchiveTableCreator::getNumericTable(Date::factory($dateToTest), true); $doneFlags = Db::fetchAll("SELECT `period`, `date1`, `date2`, `value` FROM `$table` WHERE name LIKE 'done.ExamplePlugin%' ORDER BY `period` ASC , `date1` ASC, `date2` ASC"); $expectedDoneFlags = [ ['period' => Day::PERIOD_ID, 'date1' => '2007-04-05', 'date2' => '2007-04-05', 'value' => ArchiveWriter::DONE_OK], ['period' => Week::PERIOD_ID, 'date1' => '2007-04-02', 'date2' => '2007-04-08', 'value' => ArchiveWriter::DONE_OK], ['period' => Month::PERIOD_ID, 'date1' => '2007-04-01', 'date2' => '2007-04-30', 'value' => ArchiveWriter::DONE_OK], // Year flag is stored in other table ]; self::assertEquals($expectedDoneFlags, $doneFlags);
// add new segment w/ edited created/edit time so it will not trigger segment re-archiving, then track a visit // so the segments will be archived w/ other invalidation. this also runs core:archive forcing CURL requests. try { self::forceCurlCliMulti(); self::addNewSegmentToPast(); self::trackVisitsForToday(); self::trackVisitInPast(); // tracks visit on 2012-08-09, so we end up invalidating and rearchiving a past month $output = $this->runArchivePhpCron(); } finally { self::undoForceCurlCliMulti(); }
// re archiving should not produce any ExamplePlugin specific archives, but 382 done flags for certain periods and segments $table = ArchiveTableCreator::getNumericTable(Date::factory('2012-08-09'), true); self::assertEquals(0, Db::fetchOne("SELECT count(*) FROM `$table` WHERE name LIKE 'done.ExamplePlugin%'")); self::assertEquals(382, Db::fetchOne("SELECT count(*) FROM `$table` WHERE name LIKE 'done%'"));
foreach ($this->getApiForTesting() as $testInfo) { [$api, $params] = $testInfo;
if (!isset($params['testSuffix'])) { $params['testSuffix'] = ''; } $params['testSuffix'] .= '_noOptions'; $params['disableArchiving'] = true;
$success = $this->runApiTests($api, $params);
if (!$success) { var_dump($output); } } }
/** * @depends testArchivePhpCron */ public function testArchivePhpCronWithSingleReportRearchive() { self::$fixture->getTestEnvironment()->overrideConfig('General', 'enable_browser_archiving_triggering', 0); self::$fixture->getTestEnvironment()->overrideConfig('General', 'browser_archiving_disabled_enforce', 1); self::$fixture->getTestEnvironment()->save();
Config::getInstance()->General['enable_browser_archiving_triggering'] = 0; Config::getInstance()->General['browser_archiving_disabled_enforce'] = 1;
Rules::setBrowserTriggerArchiving(false);
// request a different date than other tests so we can test that only the single requested metric is archived $dateToRequest = '2007-04-04';
// track a visit so archiving will go through $tracker = Fixture::getTracker(1, $dateToRequest); $tracker->setUrl('http://example.com/test/url2'); Fixture::checkResponse($tracker->doTrackPageView('jkl'));
$invalidator = StaticContainer::get(ArchiveInvalidator::class); $invalidator->forgetRememberedArchivedReportsToInvalidate(1, Date::factory($dateToRequest));
$table = ArchiveTableCreator::getNumericTable(Date::factory($dateToRequest), true);
// three whole plugin archives from previous tests $doneFlags = Db::fetchAll("SELECT `period`, `date1`, `date2`, `value` FROM `$table` WHERE name LIKE 'done.ExamplePlugin%' ORDER BY `period` ASC , `date1` ASC, `date2` ASC, `value` ASC"); $expectedDoneFlags = [ ['period' => Day::PERIOD_ID, 'date1' => '2007-04-05', 'date2' => '2007-04-05', 'value' => ArchiveWriter::DONE_OK], ['period' => Week::PERIOD_ID, 'date1' => '2007-04-02', 'date2' => '2007-04-08', 'value' => ArchiveWriter::DONE_OK], ['period' => Month::PERIOD_ID, 'date1' => '2007-04-01', 'date2' => '2007-04-30', 'value' => ArchiveWriter::DONE_OK], // Year flag is stored in other table ]; self::assertEquals($expectedDoneFlags, $doneFlags);
// invalidate a report so we get a partial archive (using the metric that gets incremented each time it is archived) // (do it after the last run so we don't end up just re-using the ExamplePlugin archive) $invalidator->markArchivesAsInvalidated([1], [$dateToRequest], 'day', new Segment('', [1]), false, false, 'ExamplePlugin.ExamplePlugin_example_metric');
$output = $this->runArchivePhpCron(['-vvv' => null]);
$this->runApiTests('ExamplePlugin.getExampleArchivedMetric', [ 'idSite' => 'all', 'date' => $dateToRequest, 'periods' => ['day', 'week'], 'testSuffix' => '_singleMetric', ]);
// test that latest archives for ExamplePlugin are partial $doneFlags = Db::fetchAll("SELECT `period`, `date1`, `date2`, `value` FROM `$table` WHERE name LIKE 'done.ExamplePlugin%' ORDER BY `period` ASC , `date1` ASC, `date2` ASC, `value` ASC"); $expectedDoneFlags = [ ['period' => Day::PERIOD_ID, 'date1' => '2007-04-04', 'date2' => '2007-04-04', 'value' => ArchiveWriter::DONE_PARTIAL], ['period' => Day::PERIOD_ID, 'date1' => '2007-04-05', 'date2' => '2007-04-05', 'value' => ArchiveWriter::DONE_OK], ['period' => Week::PERIOD_ID, 'date1' => '2007-04-02', 'date2' => '2007-04-08', 'value' => ArchiveWriter::DONE_OK], ['period' => Week::PERIOD_ID, 'date1' => '2007-04-02', 'date2' => '2007-04-08', 'value' => ArchiveWriter::DONE_PARTIAL], ['period' => Month::PERIOD_ID, 'date1' => '2007-04-01', 'date2' => '2007-04-30', 'value' => ArchiveWriter::DONE_OK], ['period' => Month::PERIOD_ID, 'date1' => '2007-04-01', 'date2' => '2007-04-30', 'value' => ArchiveWriter::DONE_PARTIAL], ]; self::assertEquals($expectedDoneFlags, $doneFlags); }
/** * @depends testArchivePhpCronWithSingleReportRearchive */ public function testArchivePhpCronArchivesFullRanges() { self::$fixture->getTestEnvironment()->overrideConfig('General', 'enable_browser_archiving_triggering', 0); self::$fixture->getTestEnvironment()->overrideConfig('General', 'archiving_range_force_on_browser_request', 0); self::$fixture->getTestEnvironment()->overrideConfig('General', 'archiving_custom_ranges', ['2012-08-09,2012-08-13']); self::$fixture->getTestEnvironment()->save();
Config::getInstance()->General['enable_browser_archiving_triggering'] = 0; Config::getInstance()->General['archiving_range_force_on_browser_request'] = 0; Config::getInstance()->General['archiving_custom_ranges'][] = '';
Rules::setBrowserTriggerArchiving(false);
$output = $this->runArchivePhpCron(['--force-periods' => 'range', '--force-idsites' => 1]);
$expectedInvalidations = []; $invalidationEntries = $this->getInvalidatedArchiveTableEntries();
$invalidationEntries = array_filter($invalidationEntries, function ($entry) { return $entry['period'] == 5; });
$this->assertEquals($expectedInvalidations, $invalidationEntries);
$this->runApiTests( array( 'VisitsSummary.get', 'Actions.get', 'DevicesDetection.getType'), array('idSite' => '1', 'date' => '2012-08-09,2012-08-13', 'periods' => array('range'), 'testSuffix' => '_range_archive') ); }
/** * @depends testArchivePhpCronArchivesFullRanges */ public function testRangeBrowserArchivingWorksWhenInvalidatedByVisit() { self::$fixture->getTestEnvironment()->overrideConfig('General', 'enable_browser_archiving_triggering', 0); // remove the value, since the default is to always force archiving on browser request self::$fixture->getTestEnvironment()->removeOverriddenConfig('General', 'archiving_range_force_on_browser_request'); self::$fixture->getTestEnvironment()->save();
Config::getInstance()->General['enable_browser_archiving_triggering'] = 0; unset(Config::getInstance()->General['archiving_range_force_on_browser_request']);
$table = ArchiveTableCreator::getNumericTable(Date::factory('2012-08-09'), true); $blobTable = ArchiveTableCreator::getBlobTable(Date::factory('2012-08-09'), true);
// remove existing range archives $idArchives = Db::fetchAll("SELECT DISTINCT idarchive FROM `$table` WHERE period = 5"); $idArchives = array_column($idArchives, 'idarchive');
$model = new Model(); $model->deleteArchiveIds($table, $blobTable, $idArchives);
// process archives once $this->runApiTests( array( 'VisitsSummary.get', 'Actions.get', 'DevicesDetection.getType'), array('idSite' => '1', 'date' => '2012-08-09,2012-08-13', 'periods' => array('range'), 'testSuffix' => '_range_archive_before_invalidate') );
$this->trackVisitInPast($ip = '124.56.23.23');
$cronArchive = new CronArchive(); $cronArchive->init(); $cronArchive->invalidateArchivedReportsForSitesThatNeedToBeArchivedAgain(1);
// process day archive so range archive will process below (if we don't, then we'll skip processing the range archive, // since it wouldn't trigger the child day archive. then later the day archive would be updated, and not the range, resulting // in inaccurate data) Rules::setBrowserTriggerArchiving(true); \Piwik\Plugins\VisitsSummary\API::getInstance()->get(1, 'day', '2012-08-09'); Rules::setBrowserTriggerArchiving(false);
$rangeArchivesInvalid = Db::fetchAll("SELECT idarchive, name, date1, date2 FROM " . $table . " WHERE period = 5 and name LIKE 'done.%' and value = " . ArchiveWriter::DONE_INVALIDATED); $this->assertNotEmpty($rangeArchivesInvalid);
// cron archive not run, but ranges should still be rearchived $this->runApiTests( array( 'VisitsSummary.get', 'Actions.get', 'DevicesDetection.getType'), array('idSite' => '1', 'date' => '2012-08-09,2012-08-13', 'periods' => array('range'), 'testSuffix' => '_range_archive_rearchived') );
$archivePurger = StaticContainer::get(ArchivePurger::class); $archivePurger->purgeInvalidatedArchivesFrom(Date::factory('2020-08-09'));
$rangeArchivesStillInvalid = Db::fetchAll("SELECT idarchive, name, date1, date2 FROM " . $table . " WHERE period = 5 and name = 'done.%' and value = " . ArchiveWriter::DONE_INVALIDATED); $this->assertEmpty($rangeArchivesStillInvalid); }
public function testArchivePhpScriptDoesNotFailWhenCommandHelpRequested() { $output = $this->runArchivePhpCron(array('--help' => null), PIWIK_INCLUDE_PATH . '/misc/cron/archive.php');
$this->assertRegExp('/Usage:\s*core:archive/', $output); self::assertStringNotContainsString("Starting Piwik reports archiving...", $output); }
public function testArchivePhpCronWithTimeLimit() { self::$fixture->getTestEnvironment()->overrideConfig('General', 'enable_browser_archiving_triggering', 0); self::$fixture->getTestEnvironment()->overrideConfig('General', 'browser_archiving_disabled_enforce', 1); self::$fixture->getTestEnvironment()->save();
Config::getInstance()->General['enable_browser_archiving_triggering'] = 0; Config::getInstance()->General['browser_archiving_disabled_enforce'] = 1;
Rules::setBrowserTriggerArchiving(false);
// track a visit so archiving will go through $tracker = Fixture::getTracker(1, '2005-09-04'); $tracker->setUrl('http://example.com/test/url2'); Fixture::checkResponse($tracker->doTrackPageView('jkl'));
$output = $this->runArchivePhpCron(['-vvv --stop-processing-after=1' => null]);
self::assertStringContainsString('Maximum time limit per execution has been reached.', $output);
// Ensure work has stopped and some invalidations are left over self::assertNotEmpty($this->getInvalidatedArchiveTableEntries()); }
private function runArchivePhpCron($options = array(), $archivePhpScript = false) { $archivePhpScript = $archivePhpScript ?: PIWIK_INCLUDE_PATH . '/tests/PHPUnit/proxy/archive.php'; $urlToProxy = Fixture::getRootUrl() . 'tests/PHPUnit/proxy/index.php';
// create the command $cmd = "php \"$archivePhpScript\" --url=\"$urlToProxy\""; foreach ($options as $name => $value) { $cmd .= " $name"; if ($value !== null) { $cmd .= "=" . escapeshellarg($value); } } $cmd .= " 2>&1";
// run the command exec($cmd, $output, $result); $output = implode("\n", $output);
if ($result !== 0 || strpos($output, "ERROR") || strpos($output, "Error")) { $this->fail("archive cron failed (result = $result): " . $output . "\n\ncommand used: $cmd"); }
return $output; }
public static function provideContainerConfigBeforeClass() { Date::$now = strtotime('2015-01-01 00:00:00');
return array( LoggerInterface::class => \Piwik\DI::get(Logger::class),
// for some reason, w/o real translations archiving segments in CronArchive fails. the data returned by CliMulti // is a translation token, and nothing else. 'Piwik\Translation\Translator' => function (Container $c) { return new \Piwik\Translation\Translator($c->get('Piwik\Translation\Loader\LoaderInterface')); },
'Tests.log.allowAllHandlers' => true,
CronArchive\SegmentArchiving::class => \Piwik\DI::autowire() // Oldest reports are for 2012, so ensure segments are processed for that year ->constructorParameter('beginningOfTimeLastNInYears', date('Y') - 2012), ); }
public static function getPathToTestDirectory() { return dirname(__FILE__); }
private function getInvalidatedArchiveTableEntries() { return Db::fetchAll("SELECT idinvalidation, idarchive, idsite, date1, date2, period, name, status FROM " . Common::prefixTable('archive_invalidations')); }
private static function undoForceCurlCliMulti() { $testVars = new TestingEnvironmentVariables(); $testVars->forceCliMultiViaCurl = 0; $testVars->save(); }
private static function forceCurlCliMulti() { $testVars = new TestingEnvironmentVariables(); $testVars->forceCliMultiViaCurl = 1; $testVars->save(); }}
ArchiveCronTest::$fixture = new ManySitesImportedLogs();ArchiveCronTest::$fixture->addSegments = true;123456789<?xml version="1.0" encoding="utf-8" ?><results> <result idSite="1"> <ExamplePlugin_example_metric>3382</ExamplePlugin_example_metric> <ExamplePlugin_example_metric2>51</ExamplePlugin_example_metric2> </result> <result idSite="2" /> <result idSite="3" /></results>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
-------------------------------------------------------Using this 'archive.php' script is no longer recommended.Please use '/path/to/php /home/travis/build/matomo-org/matomo/tests/PHPUnit/proxy/../../..//console core:archive --url=http://localhost/tests/PHPUnit/proxy/index.php --force-date-last-n=10' instead.To get help use '/path/to/php /home/travis/build/matomo-org/matomo/tests/PHPUnit/proxy/../../..//console core:archive --help'See also: https://matomo.org/docs/setup-auto-archiving/
If you cannot use the console because it requires CLItry 'php archive.php --url=http://your.piwik/path'-------------------------------------------------------
INFO [2020-09-19 17:11:11] 10540 ---------------------------INFO [2020-09-19 17:11:11] 10540 INITINFO [2020-09-19 17:11:11] 10540 Running Matomo 4.0.0-b2 as Super UserINFO [2020-09-19 17:11:11] 10540 ---------------------------INFO [2020-09-19 17:11:11] 10540 NOTESINFO [2020-09-19 17:11:11] 10540 - If you execute this script at least once per hour (or more often) in a crontab, you may disable 'Browser trigger archiving' in Matomo UI > Settings > General Settings.INFO [2020-09-19 17:11:11] 10540 See the doc at: https://matomo.org/docs/setup-auto-archiving/INFO [2020-09-19 17:11:11] 10540 - Async process archiving supported, using CliMulti.INFO [2020-09-19 17:11:11] 10540 - Reports for today will be processed at most every 900 seconds. You can change this value in Matomo UI > Settings > General Settings.INFO [2020-09-19 17:11:12] 10540 ---------------------------INFO [2020-09-19 17:11:12] 10540 STARTINFO [2020-09-19 17:11:12] 10540 Starting Matomo reports archiving...INFO [2020-09-19 17:11:12] 10540 Start processing archives for site 1.INFO [2020-09-19 17:11:12] 10540 Archived website id 1, period = day, date = 2007-04-05, segment = '', plugin = ExamplePlugin, 1 visits found. Time elapsed: 0.524sINFO [2020-09-19 17:11:13] 10540 Archived website id 1, period = week, date = 2007-04-02, segment = '', plugin = ExamplePlugin, 1 visits found. Time elapsed: 0.536sINFO [2020-09-19 17:11:13] 10540 Archived website id 1, period = month, date = 2007-04-01, segment = '', plugin = ExamplePlugin, 1 visits found. Time elapsed: 0.537sINFO [2020-09-19 17:11:14] 10540 Archived website id 1, period = year, date = 2007-01-01, segment = '', plugin = ExamplePlugin, 1 visits found. Time elapsed: 0.533sINFO [2020-09-19 17:11:14] 10540 Checking for queued invalidations...INFO [2020-09-19 17:11:14] 10540 Will invalidate archived reports for 2014-03-13 for following websites ids: 1INFO [2020-09-19 17:11:14] 10540 Will invalidate archived reports for 2014-03-12 for following websites ids: 1INFO [2020-09-19 17:11:14] 10540 Will invalidate archived reports for 2012-09-30 for following websites ids: 1INFO [2020-09-19 17:11:14] 10540 Will invalidate archived reports for 2012-08-19 for following websites ids: 1INFO [2020-09-19 17:11:14] 10540 Will invalidate archived reports for 2012-08-15 for following websites ids: 1INFO [2020-09-19 17:11:14] 10540 Will invalidate archived reports for 2012-08-11 for following websites ids: 1INFO [2020-09-19 17:11:14] 10540 Will invalidate archived reports for 2012-08-10 for following websites ids: 1INFO [2020-09-19 17:11:14] 10540 Will invalidate archived reports for 2012-08-09 for following websites ids: 1INFO [2020-09-19 17:11:14] 10540 Segment "browserCode==IE" was created or changed recently and will therefore archive today (for site ID = 1)INFO [2020-09-19 17:11:14] 10540 Segment "visitCount<=5;pageUrl=@/blog/;countryCode==jp" was created or changed recently and will therefore archive today (for site ID = 1)INFO [2020-09-19 17:11:14] 10540 Segment "visitCount<=5;pageUrl=@%2Fblog%2F;countryCode==jp" was created or changed recently and will therefore archive today (for site ID = 1)INFO [2020-09-19 17:11:14] 10540 Done invalidatingINFO [2020-09-19 17:11:17] 10540 Archived website id 1, period = day, date = 2014-03-13, segment = '', 11 visits found. Time elapsed: 1.033sINFO [2020-09-19 17:11:17] 10540 Archived website id 1, period = day, date = 2014-03-12, segment = '', 1 visits found. Time elapsed: 1.033sINFO [2020-09-19 17:11:17] 10540 Archived website id 1, period = day, date = 2012-09-30, segment = '', 1 visits found. Time elapsed: 1.033sINFO [2020-09-19 17:11:18] 10540 Archived website id 1, period = week, date = 2014-03-10, segment = '', 12 visits found. Time elapsed: 1.610sINFO [2020-09-19 17:11:18] 10540 Archived website id 1, period = week, date = 2012-09-24, segment = '', 1 visits found. Time elapsed: 1.610sINFO [2020-09-19 17:11:18] 10540 Archived website id 1, period = day, date = 2012-08-19, segment = '', 1 visits found. Time elapsed: 1.610sINFO [2020-09-19 17:11:20] 10540 Archived website id 1, period = month, date = 2014-03-01, segment = '', 12 visits found. Time elapsed: 1.613sINFO [2020-09-19 17:11:20] 10540 Archived website id 1, period = month, date = 2012-09-01, segment = '', 1 visits found. Time elapsed: 1.613sINFO [2020-09-19 17:11:20] 10540 Archived website id 1, period = day, date = 2012-08-15, segment = '', 2 visits found. Time elapsed: 1.613sINFO [2020-09-19 17:11:22] 10540 Archived website id 1, period = year, date = 2014-01-01, segment = '', 12 visits found. Time elapsed: 2.161sINFO [2020-09-19 17:11:22] 10540 Archived website id 1, period = week, date = 2012-08-13, segment = '', 3 visits found. Time elapsed: 2.161sINFO [2020-09-19 17:11:22] 10540 Archived website id 1, period = day, date = 2012-08-11, segment = '', 11 visits found. Time elapsed: 2.161sINFO [2020-09-19 17:11:23] 10540 Archived website id 1, period = year, date = 2014-01-01, segment = 'visitCount%3C%3D5%3BpageUrl%3D%40%2Fblog%2F%3BcountryCode%3D%3Djp', 0 visits found. Time elapsed: 0.759sINFO [2020-09-19 17:11:23] 10540 Archived website id 1, period = day, date = 2012-08-10, segment = '', 8 visits found. Time elapsed: 1.053sINFO [2020-09-19 17:11:23] 10540 Archived website id 1, period = day, date = 2012-08-09, segment = '', 11 visits found. Time elapsed: 1.053sINFO [2020-09-19 17:11:26] 10540 Archived website id 1, period = year, date = 2014-01-01, segment = 'browserCode%3D%3DIE', 1 visits found. Time elapsed: 2.475sINFO [2020-09-19 17:11:26] 10540 Archived website id 1, period = week, date = 2012-08-06, segment = '', 30 visits found. Time elapsed: 2.475sINFO [2020-09-19 17:11:27] 10540 Archived website id 1, period = month, date = 2012-08-01, segment = '', 33 visits found. Time elapsed: 1.073sINFO [2020-09-19 17:11:28] 10540 Archived website id 1, period = year, date = 2012-01-01, segment = '', 34 visits found. Time elapsed: 1.056sINFO [2020-09-19 17:11:32] 10540 Archived website id 1, period = year, date = 2012-01-01, segment = 'visitCount%3C%3D5%3BpageUrl%3D%40%2Fblog%2F%3BcountryCode%3D%3Djp', 7 visits found. Time elapsed: 3.689sINFO [2020-09-19 17:11:35] 10540 Archived website id 1, period = year, date = 2012-01-01, segment = 'browserCode%3D%3DIE', 6 visits found. Time elapsed: 3.181sINFO [2020-09-19 17:11:35] 10540 Checking for queued invalidations...INFO [2020-09-19 17:11:35] 10540 Done invalidatingINFO [2020-09-19 17:11:35] 10540 Finished archiving for site 1, 25 API requests, Time elapsed: 23.792s [1 / 3 done]INFO [2020-09-19 17:11:35] 10540 Start processing archives for site 2.INFO [2020-09-19 17:11:35] 10540 Checking for queued invalidations...INFO [2020-09-19 17:11:35] 10540 Will invalidate archived reports for 2012-08-15 for following websites ids: 2INFO [2020-09-19 17:11:35] 10540 Done invalidatingINFO [2020-09-19 17:11:36] 10540 Archived website id 2, period = day, date = 2012-08-15, segment = '', 1 visits found. Time elapsed: 0.542sINFO [2020-09-19 17:11:37] 10540 Archived website id 2, period = week, date = 2012-08-13, segment = '', 1 visits found. Time elapsed: 0.795sINFO [2020-09-19 17:11:38] 10540 Archived website id 2, period = month, date = 2012-08-01, segment = '', 1 visits found. Time elapsed: 1.064sINFO [2020-09-19 17:11:39] 10540 Archived website id 2, period = year, date = 2012-01-01, segment = '', 1 visits found. Time elapsed: 1.067sINFO [2020-09-19 17:11:39] 10540 Checking for queued invalidations...INFO [2020-09-19 17:11:39] 10540 Done invalidatingINFO [2020-09-19 17:11:39] 10540 Finished archiving for site 2, 4 API requests, Time elapsed: 3.619s [2 / 3 done]INFO [2020-09-19 17:11:39] 10540 Start processing archives for site 3.INFO [2020-09-19 17:11:39] 10540 Checking for queued invalidations...INFO [2020-09-19 17:11:39] 10540 Will invalidate archived reports for 2014-03-13 for following websites ids: 3INFO [2020-09-19 17:11:39] 10540 Will invalidate archived reports for 2014-03-12 for following websites ids: 3INFO [2020-09-19 17:11:39] 10540 Will invalidate archived reports for 2012-08-15 for following websites ids: 3INFO [2020-09-19 17:11:39] 10540 Done invalidatingINFO [2020-09-19 17:11:40] 10540 Archived website id 3, period = day, date = 2014-03-13, segment = '', 11 visits found. Time elapsed: 1.027sINFO [2020-09-19 17:11:40] 10540 Archived website id 3, period = day, date = 2014-03-12, segment = '', 1 visits found. Time elapsed: 1.027sINFO [2020-09-19 17:11:40] 10540 Archived website id 3, period = day, date = 2012-08-15, segment = '', 3 visits found. Time elapsed: 1.027sINFO [2020-09-19 17:11:42] 10540 Archived website id 3, period = week, date = 2014-03-10, segment = '', 12 visits found. Time elapsed: 1.449sINFO [2020-09-19 17:11:42] 10540 Archived website id 3, period = week, date = 2012-08-13, segment = '', 3 visits found. Time elapsed: 1.449sINFO [2020-09-19 17:11:44] 10540 Archived website id 3, period = month, date = 2014-03-01, segment = '', 12 visits found. Time elapsed: 1.411sINFO [2020-09-19 17:11:44] 10540 Archived website id 3, period = month, date = 2012-08-01, segment = '', 3 visits found. Time elapsed: 1.952sINFO [2020-09-19 17:11:46] 10540 Archived website id 3, period = year, date = 2014-01-01, segment = '', 12 visits found. Time elapsed: 2.012sINFO [2020-09-19 17:11:46] 10540 Archived website id 3, period = year, date = 2012-01-01, segment = '', 3 visits found. Time elapsed: 2.012sINFO [2020-09-19 17:11:46] 10540 Checking for queued invalidations...INFO [2020-09-19 17:11:46] 10540 Done invalidatingINFO [2020-09-19 17:11:46] 10540 Finished archiving for site 3, 9 API requests, Time elapsed: 6.651s [3 / 3 done]INFO [2020-09-19 17:11:46] 10540 Done archiving!INFO [2020-09-19 17:11:46] 10540 ---------------------------INFO [2020-09-19 17:11:46] 10540 SUMMARYINFO [2020-09-19 17:11:46] 10540 Processed 38 archives.INFO [2020-09-19 17:11:46] 10540 Total API requests: 38INFO [2020-09-19 17:11:46] 10540 done: 38 req, 34209 ms, no errorINFO [2020-09-19 17:11:46] 10540 Time elapsed: 34.209sINFO [2020-09-19 17:11:46] 10540 ---------------------------INFO [2020-09-19 17:11:46] 10540 SCHEDULED TASKSINFO [2020-09-19 17:11:46] 10540 Starting Scheduled tasks...INFO [2020-09-19 17:11:46] 10540 doneINFO [2020-09-19 17:11:46] 10540 ---------------------------123456<?xml version="1.0" encoding="utf-8" ?><results> <result idSite="1" /> <result idSite="2" /> <result idSite="3" /></results>123456<?xml version="1.0" encoding="utf-8" ?><results> <result idSite="1" /> <result idSite="2" /> <result idSite="3" /></results>123456789<?xml version="1.0" encoding="utf-8" ?><results> <result idSite="1"> <ExamplePlugin_example_metric>3382</ExamplePlugin_example_metric> <ExamplePlugin_example_metric2>0</ExamplePlugin_example_metric2> </result> <result idSite="2" /> <result idSite="3" /></results>123456789<?xml version="1.0" encoding="utf-8" ?><results> <result idSite="1"> <ExamplePlugin_example_metric>3382</ExamplePlugin_example_metric> <ExamplePlugin_example_metric2>0</ExamplePlugin_example_metric2> </result> <result idSite="2" /> <result idSite="3" /></results>123456789101112131415161718192021222324252627282930313233343536373839404142434445<?xml version="1.0" encoding="utf-8" ?><results> <result idSite="1"> <nb_conversions>32</nb_conversions> <nb_visits_converted>32</nb_visits_converted> <revenue>160</revenue> <conversion_rate>94.12%</conversion_rate> <nb_conversions_new_visit>32</nb_conversions_new_visit> <nb_visits_converted_new_visit>32</nb_visits_converted_new_visit> <revenue_new_visit>160</revenue_new_visit> <conversion_rate_new_visit>94.12%</conversion_rate_new_visit> <nb_conversions_returning_visit>0</nb_conversions_returning_visit> <nb_visits_converted_returning_visit>0</nb_visits_converted_returning_visit> <revenue_returning_visit>0</revenue_returning_visit> <conversion_rate_returning_visit>0%</conversion_rate_returning_visit> </result> <result idSite="2"> <nb_conversions>0</nb_conversions> <nb_visits_converted>0</nb_visits_converted> <revenue>0</revenue> <conversion_rate>0%</conversion_rate> <nb_conversions_new_visit>0</nb_conversions_new_visit> <nb_visits_converted_new_visit>0</nb_visits_converted_new_visit> <revenue_new_visit>0</revenue_new_visit> <conversion_rate_new_visit>0%</conversion_rate_new_visit> <nb_conversions_returning_visit>0</nb_conversions_returning_visit> <nb_visits_converted_returning_visit>0</nb_visits_converted_returning_visit> <revenue_returning_visit>0</revenue_returning_visit> <conversion_rate_returning_visit>0%</conversion_rate_returning_visit> </result> <result idSite="3"> <nb_conversions>0</nb_conversions> <nb_visits_converted>0</nb_visits_converted> <revenue>0</revenue> <conversion_rate>0%</conversion_rate> <nb_conversions_new_visit>0</nb_conversions_new_visit> <nb_visits_converted_new_visit>0</nb_visits_converted_new_visit> <revenue_new_visit>0</revenue_new_visit> <conversion_rate_new_visit>0%</conversion_rate_new_visit> <nb_conversions_returning_visit>0</nb_conversions_returning_visit> <nb_visits_converted_returning_visit>0</nb_visits_converted_returning_visit> <revenue_returning_visit>0</revenue_returning_visit> <conversion_rate_returning_visit>0%</conversion_rate_returning_visit> </result></results>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475<?xml version="1.0" encoding="utf-8" ?><results> <result idSite="1"> <nb_uniq_visitors_new>34</nb_uniq_visitors_new> <nb_users_new>1</nb_users_new> <nb_visits_new>34</nb_visits_new> <nb_actions_new>37</nb_actions_new> <nb_visits_converted_new>32</nb_visits_converted_new> <bounce_count_new>32</bounce_count_new> <sum_visit_length_new>305</sum_visit_length_new> <max_actions_new>3</max_actions_new> <bounce_rate_new>94%</bounce_rate_new> <nb_actions_per_visit_new>1.1</nb_actions_per_visit_new> <avg_time_on_site_new>9</avg_time_on_site_new> <nb_uniq_visitors_returning>0</nb_uniq_visitors_returning> <nb_users_returning>0</nb_users_returning> <nb_visits_returning>0</nb_visits_returning> <nb_actions_returning>0</nb_actions_returning> <nb_visits_converted_returning>0</nb_visits_converted_returning> <bounce_count_returning>0</bounce_count_returning> <sum_visit_length_returning>0</sum_visit_length_returning> <max_actions_returning>0</max_actions_returning> <bounce_rate_returning>0%</bounce_rate_returning> <nb_actions_per_visit_returning>0</nb_actions_per_visit_returning> <avg_time_on_site_returning>0</avg_time_on_site_returning> </result> <result idSite="2"> <nb_uniq_visitors_new>1</nb_uniq_visitors_new> <nb_users_new>0</nb_users_new> <nb_visits_new>1</nb_visits_new> <nb_actions_new>1</nb_actions_new> <nb_visits_converted_new>0</nb_visits_converted_new> <bounce_count_new>1</bounce_count_new> <sum_visit_length_new>0</sum_visit_length_new> <max_actions_new>1</max_actions_new> <bounce_rate_new>100%</bounce_rate_new> <nb_actions_per_visit_new>1</nb_actions_per_visit_new> <avg_time_on_site_new>0</avg_time_on_site_new> <nb_uniq_visitors_returning>0</nb_uniq_visitors_returning> <nb_users_returning>0</nb_users_returning> <nb_visits_returning>0</nb_visits_returning> <nb_actions_returning>0</nb_actions_returning> <nb_visits_converted_returning>0</nb_visits_converted_returning> <bounce_count_returning>0</bounce_count_returning> <sum_visit_length_returning>0</sum_visit_length_returning> <max_actions_returning>0</max_actions_returning> <bounce_rate_returning>0%</bounce_rate_returning> <nb_actions_per_visit_returning>0</nb_actions_per_visit_returning> <avg_time_on_site_returning>0</avg_time_on_site_returning> </result> <result idSite="3"> <nb_uniq_visitors_new>2</nb_uniq_visitors_new> <nb_users_new>0</nb_users_new> <nb_visits_new>2</nb_visits_new> <nb_actions_new>4</nb_actions_new> <nb_visits_converted_new>0</nb_visits_converted_new> <bounce_count_new>1</bounce_count_new> <sum_visit_length_new>1</sum_visit_length_new> <max_actions_new>3</max_actions_new> <bounce_rate_new>50%</bounce_rate_new> <nb_actions_per_visit_new>2</nb_actions_per_visit_new> <avg_time_on_site_new>1</avg_time_on_site_new> <nb_uniq_visitors_returning>1</nb_uniq_visitors_returning> <nb_users_returning>0</nb_users_returning> <nb_visits_returning>1</nb_visits_returning> <nb_actions_returning>1</nb_actions_returning> <nb_visits_converted_returning>0</nb_visits_converted_returning> <bounce_count_returning>1</bounce_count_returning> <sum_visit_length_returning>0</sum_visit_length_returning> <max_actions_returning>1</max_actions_returning> <bounce_rate_returning>100%</bounce_rate_returning> <nb_actions_per_visit_returning>1</nb_actions_per_visit_returning> <avg_time_on_site_returning>0</avg_time_on_site_returning> </result></results>123456789101112131415161718<?xml version="1.0" encoding="utf-8" ?><results> <result idSite="1"> <nb_uniq_visitors>12</nb_uniq_visitors> <nb_users>0</nb_users> <nb_visits>12</nb_visits> <nb_actions>12</nb_actions> <nb_visits_converted>12</nb_visits_converted> <bounce_count>12</bounce_count> <sum_visit_length>0</sum_visit_length> <max_actions>1</max_actions> <bounce_rate>100%</bounce_rate> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>0</avg_time_on_site> </result> <result idSite="2" /> <result idSite="3" /></results>123456789101112131415161718192021222324252627282930313233343536373839404142<?xml version="1.0" encoding="utf-8" ?><results> <result idSite="1"> <nb_uniq_visitors>34</nb_uniq_visitors> <nb_users>1</nb_users> <nb_visits>34</nb_visits> <nb_actions>37</nb_actions> <nb_visits_converted>32</nb_visits_converted> <bounce_count>32</bounce_count> <sum_visit_length>305</sum_visit_length> <max_actions>3</max_actions> <bounce_rate>94%</bounce_rate> <nb_actions_per_visit>1.1</nb_actions_per_visit> <avg_time_on_site>9</avg_time_on_site> </result> <result idSite="2"> <nb_uniq_visitors>1</nb_uniq_visitors> <nb_users>0</nb_users> <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_visits_converted>0</nb_visits_converted> <bounce_count>1</bounce_count> <sum_visit_length>0</sum_visit_length> <max_actions>1</max_actions> <bounce_rate>100%</bounce_rate> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>0</avg_time_on_site> </result> <result idSite="3"> <nb_uniq_visitors>2</nb_uniq_visitors> <nb_users>0</nb_users> <nb_visits>3</nb_visits> <nb_actions>5</nb_actions> <nb_visits_converted>0</nb_visits_converted> <bounce_count>2</bounce_count> <sum_visit_length>1</sum_visit_length> <max_actions>3</max_actions> <bounce_rate>67%</bounce_rate> <nb_actions_per_visit>1.7</nb_actions_per_visit> <avg_time_on_site>0</avg_time_on_site> </result></results>123456789101112131415161718<?xml version="1.0" encoding="utf-8" ?><results> <result idSite="1"> <nb_uniq_visitors>31</nb_uniq_visitors> <nb_users>1</nb_users> <nb_visits>31</nb_visits> <nb_actions>34</nb_actions> <nb_visits_converted>29</nb_visits_converted> <bounce_count>29</bounce_count> <sum_visit_length>305</sum_visit_length> <max_actions>3</max_actions> <bounce_rate>94%</bounce_rate> <nb_actions_per_visit>1.1</nb_actions_per_visit> <avg_time_on_site>10</avg_time_on_site> </result> <result idSite="2" /> <result idSite="3" /></results>123456789101112131415161718192021222324252627282930313233343536<?xml version="1.0" encoding="utf-8" ?><results> <result idSite="1"> <nb_visits>35</nb_visits> <nb_actions>47</nb_actions> <nb_visits_converted>33</nb_visits_converted> <bounce_count>32</bounce_count> <sum_visit_length>359</sum_visit_length> <max_actions>10</max_actions> <bounce_rate>91%</bounce_rate> <nb_actions_per_visit>1.3</nb_actions_per_visit> <avg_time_on_site>10</avg_time_on_site> </result> <result idSite="2"> <nb_visits>1</nb_visits> <nb_actions>1</nb_actions> <nb_visits_converted>0</nb_visits_converted> <bounce_count>1</bounce_count> <sum_visit_length>0</sum_visit_length> <max_actions>1</max_actions> <bounce_rate>100%</bounce_rate> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>0</avg_time_on_site> </result> <result idSite="3"> <nb_visits>3</nb_visits> <nb_actions>5</nb_actions> <nb_visits_converted>0</nb_visits_converted> <bounce_count>2</bounce_count> <sum_visit_length>1</sum_visit_length> <max_actions>3</max_actions> <bounce_rate>67%</bounce_rate> <nb_actions_per_visit>1.7</nb_actions_per_visit> <avg_time_on_site>0</avg_time_on_site> </result></results>123456<?xml version="1.0" encoding="utf-8" ?><results> <result idSite="1" /> <result idSite="2" /> <result idSite="3" /></results>123456<?xml version="1.0" encoding="utf-8" ?><results> <result idSite="1" /> <result idSite="2" /> <result idSite="3" /></results>123456<?xml version="1.0" encoding="utf-8" ?><results> <result idSite="1" /> <result idSite="2" /> <result idSite="3" /></results>123456<?xml version="1.0" encoding="utf-8" ?><results> <result idSite="1" /> <result idSite="2" /> <result idSite="3" /></results>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417<?xml version="1.0" encoding="utf-8" ?><result> <row> <idSite>1</idSite> <idVisit>3</idVisit> <visitIp>175.41.192.40</visitIp> <actionDetails> <row> <type>action</type> <url>http://piwik.net/blog/category/community/</url> <pageTitle /> <pageIdAction>3</pageIdAction> <pageId>3</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/community/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>3</goalPageId> <url>http://piwik.net/blog/category/community/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Unknown</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>GNU/Linux</operatingSystem> <operatingSystemName>GNU/Linux</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/LIN.png</operatingSystemIcon> <operatingSystemCode>LIN</operatingSystemCode> <operatingSystemVersion /> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>GNOME Web 2.30</browser> <browserName>GNOME Web</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/EP.png</browserIcon> <browserCode>EP</browserCode> <browserVersion>2.30</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>08:11:56</visitLocalTime> <visitLocalHour>8</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> </customVariables> </row> <row> <idSite>1</idSite> <idVisit>59</idVisit> <visitIp>175.41.193.46</visitIp> <actionDetails> <row> <type>action</type> <url>http://www.included4.com/blog/category/meta/</url> <pageTitle /> <pageIdAction>61</pageIdAction> <pageId>81</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://www.included4.com/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>81</goalPageId> <url>http://www.included4.com/blog/category/meta/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Apple</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>Mac 10.6</operatingSystem> <operatingSystemName>Mac</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/MAC.png</operatingSystemIcon> <operatingSystemCode>MAC</operatingSystemCode> <operatingSystemVersion>10.6</operatingSystemVersion> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>RockMelt 0.9</browser> <browserName>RockMelt</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/RM.png</browserIcon> <browserCode>RM</browserCode> <browserVersion>0.9</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>08:10:39</visitLocalTime> <visitLocalHour>8</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> </customVariables> </row> <row> <idSite>1</idSite> <idVisit>1</idVisit> <visitIp>175.41.192.40</visitIp> <actionDetails> <row> <type>action</type> <url>http://piwik.net/blog/category/meta/</url> <pageTitle /> <pageIdAction>1</pageIdAction> <pageId>1</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>1</goalPageId> <url>http://piwik.net/blog/category/meta/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Apple</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>Mac 10.6</operatingSystem> <operatingSystemName>Mac</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/MAC.png</operatingSystemIcon> <operatingSystemCode>MAC</operatingSystemCode> <operatingSystemVersion>10.6</operatingSystemVersion> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>RockMelt 0.9</browser> <browserName>RockMelt</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/RM.png</browserIcon> <browserCode>RM</browserCode> <browserVersion>0.9</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>08:10:38</visitLocalTime> <visitLocalHour>8</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> </customVariables> </row></result>12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202<?xml version="1.0" encoding="utf-8" ?><result> <row> <idSite>1</idSite> <idVisit>57</idVisit> <visitIp>175.41.192.40</visitIp> <actionDetails> <row> <type>action</type> <url>http://piwik.net/blog/category/meta/</url> <pageTitle /> <pageIdAction>1</pageIdAction> <pageId>70</pageId> <bandwidth /> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>70</goalPageId> <url>http://piwik.net/blog/category/meta/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> <row> <type>action</type> <url>http://piwik.net/blog/category/meta/</url> <pageTitle /> <pageIdAction>1</pageIdAction> <pageId>74</pageId> <bandwidth /> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>5</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>action</type> <url>http://piwik.net/blog/category/meta/</url> <pageTitle /> <pageIdAction>1</pageIdAction> <pageId>78</pageId> <bandwidth /> <timeSpent>52</timeSpent> <timeSpentPretty>52s</timeSpentPretty> <pageviewPosition>9</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>action</type> <url>http://piwik.net/faq/</url> <pageTitle /> <pageIdAction>2</pageIdAction> <pageId>71</pageId> <bandwidth /> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>2</pageviewPosition> <title /> <subtitle>http://piwik.net/faq/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>action</type> <url>http://piwik.net/faq/</url> <pageTitle /> <pageIdAction>2</pageIdAction> <pageId>75</pageId> <bandwidth /> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>6</pageviewPosition> <title /> <subtitle>http://piwik.net/faq/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>action</type> <url>http://piwik.net/faq/</url> <pageTitle /> <pageIdAction>2</pageIdAction> <pageId>79</pageId> <bandwidth /> <timeSpent>26</timeSpent> <timeSpentPretty>26s</timeSpentPretty> <pageviewPosition>10</pageviewPosition> <title /> <subtitle>http://piwik.net/faq/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>action</type> <url>http://piwik.net/blog/category/community/</url> <pageTitle /> <pageIdAction>3</pageIdAction> <pageId>72</pageId> <bandwidth /> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>3</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/community/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>action</type> <url>http://piwik.net/blog/category/community/</url> <pageTitle /> <pageIdAction>3</pageIdAction> <pageId>76</pageId> <bandwidth /> <timeSpent>7</timeSpent> <timeSpentPretty>7s</timeSpentPretty> <pageviewPosition>7</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/community/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>action</type> <url>http://piwik.net/docs/manage-websites/</url> <pageTitle /> <pageIdAction>4</pageIdAction> <pageId>73</pageId> <bandwidth /> <timeSpent>1</timeSpent> <timeSpentPretty>1s</timeSpentPretty> <pageviewPosition>4</pageviewPosition> <title /> <subtitle>http://piwik.net/docs/manage-websites/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>action</type> <url>http://piwik.net/docs/manage-websites/</url> <pageTitle /> <pageIdAction>4</pageIdAction> <pageId>77</pageId> <bandwidth /> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>8</pageviewPosition> <title /> <subtitle>http://piwik.net/docs/manage-websites/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>54</visitDuration> <visitDurationPretty>54s</visitDurationPretty> <searches>0</searches> <actions>10</actions> <interactions>10</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Unknown</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/unknown.png</deviceTypeIcon> <deviceBrand>Unknown</deviceBrand> <deviceModel>Unknown</deviceModel> <operatingSystem>Unknown</operatingSystem> <operatingSystemName>Unknown</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/UNK.png</operatingSystemIcon> <operatingSystemCode>UNK</operatingSystemCode> <operatingSystemVersion>UNK</operatingSystemVersion> <browserFamily /> <browserFamilyDescription>Unknown</browserFamilyDescription> <browser>Unknown</browser> <browserName>Unknown</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/UNK.png</browserIcon> <browserCode>UNK</browserCode> <browserVersion /> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>08:10:38</visitLocalTime> <visitLocalHour>8</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> </customVariables> </row> <row> <idSite>1</idSite> <idVisit>25</idVisit> <visitIp>175.41.192.41</visitIp> <actionDetails> <row> <type>action</type> <url>http://piwik.net/blog/category/meta/</url> <pageTitle /> <pageIdAction>1</pageIdAction> <pageId>28</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>28</goalPageId> <url>http://piwik.net/blog/category/meta/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Apple</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>Mac 10.6</operatingSystem> <operatingSystemName>Mac</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/MAC.png</operatingSystemIcon> <operatingSystemCode>MAC</operatingSystemCode> <operatingSystemVersion>10.6</operatingSystemVersion> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>RockMelt 0.9</browser> <browserName>RockMelt</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/RM.png</browserIcon> <browserCode>RM</browserCode> <browserVersion>0.9</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>20:15:41</visitLocalTime> <visitLocalHour>20</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> <row> <customVariableName1>Not-Bot</customVariableName1> <customVariableValue1>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.24 (KHTML, like Gecko) RockMelt/0.9.58.494 Chrome/11.0.696.71 Safari/534.24</customVariableValue1> </row> </customVariables> </row> <row> <idSite>1</idSite> <idVisit>19</idVisit> <visitIp>175.41.192.41</visitIp> <actionDetails> <row> <type>action</type> <url>http://piwik.net/blog/category/meta/</url> <pageTitle /> <pageIdAction>1</pageIdAction> <pageId>19</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>19</goalPageId> <url>http://piwik.net/blog/category/meta/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Apple</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>Mac 10.6</operatingSystem> <operatingSystemName>Mac</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/MAC.png</operatingSystemIcon> <operatingSystemCode>MAC</operatingSystemCode> <operatingSystemVersion>10.6</operatingSystemVersion> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>RockMelt 0.9</browser> <browserName>RockMelt</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/RM.png</browserIcon> <browserCode>RM</browserCode> <browserVersion>0.9</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>16:10:38</visitLocalTime> <visitLocalHour>16</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> <row> <customVariableName1>Not-Bot</customVariableName1> <customVariableValue1>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.24 (KHTML, like Gecko) RockMelt/0.9.58.494 Chrome/11.0.696.71 Safari/534.24</customVariableValue1> </row> </customVariables> </row> <row> <idSite>1</idSite> <idVisit>58</idVisit> <visitIp>175.41.193.45</visitIp> <actionDetails> <row> <type>action</type> <url>http://included3.com/blog/category/meta/</url> <pageTitle /> <pageIdAction>60</pageIdAction> <pageId>80</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://included3.com/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>80</goalPageId> <url>http://included3.com/blog/category/meta/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Apple</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>Mac 10.6</operatingSystem> <operatingSystemName>Mac</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/MAC.png</operatingSystemIcon> <operatingSystemCode>MAC</operatingSystemCode> <operatingSystemVersion>10.6</operatingSystemVersion> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>RockMelt 0.9</browser> <browserName>RockMelt</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/RM.png</browserIcon> <browserCode>RM</browserCode> <browserVersion>0.9</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>08:10:38</visitLocalTime> <visitLocalHour>8</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> </customVariables> </row> <row> <idSite>1</idSite> <idVisit>3</idVisit> <visitIp>175.41.192.40</visitIp> <actionDetails> <row> <type>action</type> <url>http://piwik.net/blog/category/community/</url> <pageTitle /> <pageIdAction>3</pageIdAction> <pageId>3</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/community/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>3</goalPageId> <url>http://piwik.net/blog/category/community/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Unknown</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>GNU/Linux</operatingSystem> <operatingSystemName>GNU/Linux</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/LIN.png</operatingSystemIcon> <operatingSystemCode>LIN</operatingSystemCode> <operatingSystemVersion /> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>GNOME Web 2.30</browser> <browserName>GNOME Web</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/EP.png</browserIcon> <browserCode>EP</browserCode> <browserVersion>2.30</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>08:11:56</visitLocalTime> <visitLocalHour>8</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> </customVariables> </row> <row> <idSite>1</idSite> <idVisit>59</idVisit> <visitIp>175.41.193.46</visitIp> <actionDetails> <row> <type>action</type> <url>http://www.included4.com/blog/category/meta/</url> <pageTitle /> <pageIdAction>61</pageIdAction> <pageId>81</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://www.included4.com/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>81</goalPageId> <url>http://www.included4.com/blog/category/meta/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Apple</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>Mac 10.6</operatingSystem> <operatingSystemName>Mac</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/MAC.png</operatingSystemIcon> <operatingSystemCode>MAC</operatingSystemCode> <operatingSystemVersion>10.6</operatingSystemVersion> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>RockMelt 0.9</browser> <browserName>RockMelt</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/RM.png</browserIcon> <browserCode>RM</browserCode> <browserVersion>0.9</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>08:10:39</visitLocalTime> <visitLocalHour>8</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> </customVariables> </row> <row> <idSite>1</idSite> <idVisit>1</idVisit> <visitIp>175.41.192.40</visitIp> <actionDetails> <row> <type>action</type> <url>http://piwik.net/blog/category/meta/</url> <pageTitle /> <pageIdAction>1</pageIdAction> <pageId>1</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>1</goalPageId> <url>http://piwik.net/blog/category/meta/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Apple</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>Mac 10.6</operatingSystem> <operatingSystemName>Mac</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/MAC.png</operatingSystemIcon> <operatingSystemCode>MAC</operatingSystemCode> <operatingSystemVersion>10.6</operatingSystemVersion> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>RockMelt 0.9</browser> <browserName>RockMelt</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/RM.png</browserIcon> <browserCode>RM</browserCode> <browserVersion>0.9</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>08:10:38</visitLocalTime> <visitLocalHour>8</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> </customVariables> </row></result>12345678910111213141516171819202122232425<?xml version="1.0" encoding="utf-8" ?><result> <nb_uniq_visitors_new>3</nb_uniq_visitors_new> <nb_users_new>0</nb_users_new> <nb_visits_new>3</nb_visits_new> <nb_actions_new>3</nb_actions_new> <nb_visits_converted_new>3</nb_visits_converted_new> <bounce_count_new>3</bounce_count_new> <sum_visit_length_new>0</sum_visit_length_new> <max_actions_new>1</max_actions_new> <bounce_rate_new>100%</bounce_rate_new> <nb_actions_per_visit_new>1</nb_actions_per_visit_new> <avg_time_on_site_new>0</avg_time_on_site_new> <nb_uniq_visitors_returning>0</nb_uniq_visitors_returning> <nb_users_returning>0</nb_users_returning> <nb_visits_returning>0</nb_visits_returning> <nb_actions_returning>0</nb_actions_returning> <nb_visits_converted_returning>0</nb_visits_converted_returning> <bounce_count_returning>0</bounce_count_returning> <sum_visit_length_returning>0</sum_visit_length_returning> <max_actions_returning>0</max_actions_returning> <bounce_rate_returning>0%</bounce_rate_returning> <nb_actions_per_visit_returning>0</nb_actions_per_visit_returning> <avg_time_on_site_returning>0</avg_time_on_site_returning></result>123456789101112131415161718192021<?xml version="1.0" encoding="utf-8" ?><result> <nb_visits_new>7</nb_visits_new> <nb_actions_new>16</nb_actions_new> <nb_visits_converted_new>7</nb_visits_converted_new> <bounce_count_new>6</bounce_count_new> <sum_visit_length_new>54</sum_visit_length_new> <max_actions_new>10</max_actions_new> <bounce_rate_new>86%</bounce_rate_new> <nb_actions_per_visit_new>2.3</nb_actions_per_visit_new> <avg_time_on_site_new>8</avg_time_on_site_new> <nb_visits_returning>0</nb_visits_returning> <nb_actions_returning>0</nb_actions_returning> <nb_visits_converted_returning>0</nb_visits_converted_returning> <bounce_count_returning>0</bounce_count_returning> <sum_visit_length_returning>0</sum_visit_length_returning> <max_actions_returning>0</max_actions_returning> <bounce_rate_returning>0%</bounce_rate_returning> <nb_actions_per_visit_returning>0</nb_actions_per_visit_returning> <avg_time_on_site_returning>0</avg_time_on_site_returning></result>1234567891011121314<?xml version="1.0" encoding="utf-8" ?><result> <nb_uniq_visitors>3</nb_uniq_visitors> <nb_users>0</nb_users> <nb_visits>3</nb_visits> <nb_actions>3</nb_actions> <nb_visits_converted>3</nb_visits_converted> <bounce_count>3</bounce_count> <sum_visit_length>0</sum_visit_length> <max_actions>1</max_actions> <bounce_rate>100%</bounce_rate> <nb_actions_per_visit>1</nb_actions_per_visit> <avg_time_on_site>0</avg_time_on_site></result>123456789101112<?xml version="1.0" encoding="utf-8" ?><result> <nb_visits>7</nb_visits> <nb_actions>16</nb_actions> <nb_visits_converted>7</nb_visits_converted> <bounce_count>6</bounce_count> <sum_visit_length>54</sum_visit_length> <max_actions>10</max_actions> <bounce_rate>86%</bounce_rate> <nb_actions_per_visit>2.3</nb_actions_per_visit> <avg_time_on_site>8</avg_time_on_site></result>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417<?xml version="1.0" encoding="utf-8" ?><result> <row> <idSite>1</idSite> <idVisit>3</idVisit> <visitIp>175.41.192.40</visitIp> <actionDetails> <row> <type>action</type> <url>http://piwik.net/blog/category/community/</url> <pageTitle /> <pageIdAction>3</pageIdAction> <pageId>3</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/community/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>3</goalPageId> <url>http://piwik.net/blog/category/community/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Unknown</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>GNU/Linux</operatingSystem> <operatingSystemName>GNU/Linux</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/LIN.png</operatingSystemIcon> <operatingSystemCode>LIN</operatingSystemCode> <operatingSystemVersion /> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>GNOME Web 2.30</browser> <browserName>GNOME Web</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/EP.png</browserIcon> <browserCode>EP</browserCode> <browserVersion>2.30</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>08:11:56</visitLocalTime> <visitLocalHour>8</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> </customVariables> </row> <row> <idSite>1</idSite> <idVisit>59</idVisit> <visitIp>175.41.193.46</visitIp> <actionDetails> <row> <type>action</type> <url>http://www.included4.com/blog/category/meta/</url> <pageTitle /> <pageIdAction>61</pageIdAction> <pageId>81</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://www.included4.com/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>81</goalPageId> <url>http://www.included4.com/blog/category/meta/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Apple</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>Mac 10.6</operatingSystem> <operatingSystemName>Mac</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/MAC.png</operatingSystemIcon> <operatingSystemCode>MAC</operatingSystemCode> <operatingSystemVersion>10.6</operatingSystemVersion> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>RockMelt 0.9</browser> <browserName>RockMelt</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/RM.png</browserIcon> <browserCode>RM</browserCode> <browserVersion>0.9</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>08:10:39</visitLocalTime> <visitLocalHour>8</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> </customVariables> </row> <row> <idSite>1</idSite> <idVisit>1</idVisit> <visitIp>175.41.192.40</visitIp> <actionDetails> <row> <type>action</type> <url>http://piwik.net/blog/category/meta/</url> <pageTitle /> <pageIdAction>1</pageIdAction> <pageId>1</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>1</goalPageId> <url>http://piwik.net/blog/category/meta/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Apple</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>Mac 10.6</operatingSystem> <operatingSystemName>Mac</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/MAC.png</operatingSystemIcon> <operatingSystemCode>MAC</operatingSystemCode> <operatingSystemVersion>10.6</operatingSystemVersion> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>RockMelt 0.9</browser> <browserName>RockMelt</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/RM.png</browserIcon> <browserCode>RM</browserCode> <browserVersion>0.9</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>08:10:38</visitLocalTime> <visitLocalHour>8</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> </customVariables> </row></result>12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202<?xml version="1.0" encoding="utf-8" ?><result> <row> <idSite>1</idSite> <idVisit>57</idVisit> <visitIp>175.41.192.40</visitIp> <actionDetails> <row> <type>action</type> <url>http://piwik.net/blog/category/meta/</url> <pageTitle /> <pageIdAction>1</pageIdAction> <pageId>70</pageId> <bandwidth /> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>70</goalPageId> <url>http://piwik.net/blog/category/meta/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> <row> <type>action</type> <url>http://piwik.net/blog/category/meta/</url> <pageTitle /> <pageIdAction>1</pageIdAction> <pageId>74</pageId> <bandwidth /> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>5</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>action</type> <url>http://piwik.net/blog/category/meta/</url> <pageTitle /> <pageIdAction>1</pageIdAction> <pageId>78</pageId> <bandwidth /> <timeSpent>52</timeSpent> <timeSpentPretty>52s</timeSpentPretty> <pageviewPosition>9</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>action</type> <url>http://piwik.net/faq/</url> <pageTitle /> <pageIdAction>2</pageIdAction> <pageId>71</pageId> <bandwidth /> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>2</pageviewPosition> <title /> <subtitle>http://piwik.net/faq/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>action</type> <url>http://piwik.net/faq/</url> <pageTitle /> <pageIdAction>2</pageIdAction> <pageId>75</pageId> <bandwidth /> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>6</pageviewPosition> <title /> <subtitle>http://piwik.net/faq/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>action</type> <url>http://piwik.net/faq/</url> <pageTitle /> <pageIdAction>2</pageIdAction> <pageId>79</pageId> <bandwidth /> <timeSpent>26</timeSpent> <timeSpentPretty>26s</timeSpentPretty> <pageviewPosition>10</pageviewPosition> <title /> <subtitle>http://piwik.net/faq/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>action</type> <url>http://piwik.net/blog/category/community/</url> <pageTitle /> <pageIdAction>3</pageIdAction> <pageId>72</pageId> <bandwidth /> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>3</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/community/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>action</type> <url>http://piwik.net/blog/category/community/</url> <pageTitle /> <pageIdAction>3</pageIdAction> <pageId>76</pageId> <bandwidth /> <timeSpent>7</timeSpent> <timeSpentPretty>7s</timeSpentPretty> <pageviewPosition>7</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/community/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>action</type> <url>http://piwik.net/docs/manage-websites/</url> <pageTitle /> <pageIdAction>4</pageIdAction> <pageId>73</pageId> <bandwidth /> <timeSpent>1</timeSpent> <timeSpentPretty>1s</timeSpentPretty> <pageviewPosition>4</pageviewPosition> <title /> <subtitle>http://piwik.net/docs/manage-websites/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>action</type> <url>http://piwik.net/docs/manage-websites/</url> <pageTitle /> <pageIdAction>4</pageIdAction> <pageId>77</pageId> <bandwidth /> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>8</pageviewPosition> <title /> <subtitle>http://piwik.net/docs/manage-websites/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>0 M</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>54</visitDuration> <visitDurationPretty>54s</visitDurationPretty> <searches>0</searches> <actions>10</actions> <interactions>10</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Unknown</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/unknown.png</deviceTypeIcon> <deviceBrand>Unknown</deviceBrand> <deviceModel>Unknown</deviceModel> <operatingSystem>Unknown</operatingSystem> <operatingSystemName>Unknown</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/UNK.png</operatingSystemIcon> <operatingSystemCode>UNK</operatingSystemCode> <operatingSystemVersion>UNK</operatingSystemVersion> <browserFamily /> <browserFamilyDescription>Unknown</browserFamilyDescription> <browser>Unknown</browser> <browserName>Unknown</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/UNK.png</browserIcon> <browserCode>UNK</browserCode> <browserVersion /> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>08:10:38</visitLocalTime> <visitLocalHour>8</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> </customVariables> </row> <row> <idSite>1</idSite> <idVisit>25</idVisit> <visitIp>175.41.192.41</visitIp> <actionDetails> <row> <type>action</type> <url>http://piwik.net/blog/category/meta/</url> <pageTitle /> <pageIdAction>1</pageIdAction> <pageId>28</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>28</goalPageId> <url>http://piwik.net/blog/category/meta/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Apple</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>Mac 10.6</operatingSystem> <operatingSystemName>Mac</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/MAC.png</operatingSystemIcon> <operatingSystemCode>MAC</operatingSystemCode> <operatingSystemVersion>10.6</operatingSystemVersion> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>RockMelt 0.9</browser> <browserName>RockMelt</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/RM.png</browserIcon> <browserCode>RM</browserCode> <browserVersion>0.9</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>20:15:41</visitLocalTime> <visitLocalHour>20</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> <row> <customVariableName1>Not-Bot</customVariableName1> <customVariableValue1>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.24 (KHTML, like Gecko) RockMelt/0.9.58.494 Chrome/11.0.696.71 Safari/534.24</customVariableValue1> </row> </customVariables> </row> <row> <idSite>1</idSite> <idVisit>19</idVisit> <visitIp>175.41.192.41</visitIp> <actionDetails> <row> <type>action</type> <url>http://piwik.net/blog/category/meta/</url> <pageTitle /> <pageIdAction>1</pageIdAction> <pageId>19</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>19</goalPageId> <url>http://piwik.net/blog/category/meta/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Apple</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>Mac 10.6</operatingSystem> <operatingSystemName>Mac</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/MAC.png</operatingSystemIcon> <operatingSystemCode>MAC</operatingSystemCode> <operatingSystemVersion>10.6</operatingSystemVersion> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>RockMelt 0.9</browser> <browserName>RockMelt</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/RM.png</browserIcon> <browserCode>RM</browserCode> <browserVersion>0.9</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>16:10:38</visitLocalTime> <visitLocalHour>16</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> <row> <customVariableName1>Not-Bot</customVariableName1> <customVariableValue1>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.24 (KHTML, like Gecko) RockMelt/0.9.58.494 Chrome/11.0.696.71 Safari/534.24</customVariableValue1> </row> </customVariables> </row> <row> <idSite>1</idSite> <idVisit>58</idVisit> <visitIp>175.41.193.45</visitIp> <actionDetails> <row> <type>action</type> <url>http://included3.com/blog/category/meta/</url> <pageTitle /> <pageIdAction>60</pageIdAction> <pageId>80</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://included3.com/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>80</goalPageId> <url>http://included3.com/blog/category/meta/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Apple</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>Mac 10.6</operatingSystem> <operatingSystemName>Mac</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/MAC.png</operatingSystemIcon> <operatingSystemCode>MAC</operatingSystemCode> <operatingSystemVersion>10.6</operatingSystemVersion> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>RockMelt 0.9</browser> <browserName>RockMelt</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/RM.png</browserIcon> <browserCode>RM</browserCode> <browserVersion>0.9</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>08:10:38</visitLocalTime> <visitLocalHour>8</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> </customVariables> </row> <row> <idSite>1</idSite> <idVisit>3</idVisit> <visitIp>175.41.192.40</visitIp> <actionDetails> <row> <type>action</type> <url>http://piwik.net/blog/category/community/</url> <pageTitle /> <pageIdAction>3</pageIdAction> <pageId>3</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/community/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>3</goalPageId> <url>http://piwik.net/blog/category/community/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Unknown</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>GNU/Linux</operatingSystem> <operatingSystemName>GNU/Linux</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/LIN.png</operatingSystemIcon> <operatingSystemCode>LIN</operatingSystemCode> <operatingSystemVersion /> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>GNOME Web 2.30</browser> <browserName>GNOME Web</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/EP.png</browserIcon> <browserCode>EP</browserCode> <browserVersion>2.30</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>08:11:56</visitLocalTime> <visitLocalHour>8</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> </customVariables> </row> <row> <idSite>1</idSite> <idVisit>59</idVisit> <visitIp>175.41.193.46</visitIp> <actionDetails> <row> <type>action</type> <url>http://www.included4.com/blog/category/meta/</url> <pageTitle /> <pageIdAction>61</pageIdAction> <pageId>81</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://www.included4.com/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>81</goalPageId> <url>http://www.included4.com/blog/category/meta/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Apple</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>Mac 10.6</operatingSystem> <operatingSystemName>Mac</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/MAC.png</operatingSystemIcon> <operatingSystemCode>MAC</operatingSystemCode> <operatingSystemVersion>10.6</operatingSystemVersion> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>RockMelt 0.9</browser> <browserName>RockMelt</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/RM.png</browserIcon> <browserCode>RM</browserCode> <browserVersion>0.9</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>08:10:39</visitLocalTime> <visitLocalHour>8</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> </customVariables> </row> <row> <idSite>1</idSite> <idVisit>1</idVisit> <visitIp>175.41.192.40</visitIp> <actionDetails> <row> <type>action</type> <url>http://piwik.net/blog/category/meta/</url> <pageTitle /> <pageIdAction>1</pageIdAction> <pageId>1</pageId> <bandwidth>3574</bandwidth> <timeSpent>0</timeSpent> <timeSpentPretty>0s</timeSpentPretty> <pageviewPosition>1</pageviewPosition> <title /> <subtitle>http://piwik.net/blog/category/meta/</subtitle> <icon /> <iconSVG>plugins/Morpheus/images/action.svg</iconSVG> <bandwidth_pretty>3.5 K</bandwidth_pretty> <customVariables> <row> <customVariablePageName1>HTTP-code</customVariablePageName1> <customVariablePageValue1>200</customVariablePageValue1> </row> </customVariables> </row> <row> <type>goal</type> <goalName>all</goalName> <goalId>1</goalId> <revenue>5</revenue> <goalPageId>1</goalPageId> <url>http://piwik.net/blog/category/meta/</url> <referrerType>direct</referrerType> <referrerName /> <referrerKeyword /> <icon>plugins/Morpheus/images/goal.png</icon> <iconSVG>plugins/Morpheus/images/goal.svg</iconSVG> <title>Goal conversion</title> <subtitle>all ($5 revenue)</subtitle> </row> </actionDetails> <goalConversions>1</goalConversions> <siteCurrency>USD</siteCurrency> <siteCurrencySymbol>$</siteCurrencySymbol> <siteName>Piwik test</siteName> <userId /> <visitorType>new</visitorType> <visitorTypeIcon /> <visitConverted>1</visitConverted> <visitConvertedIcon>plugins/Morpheus/images/goal.svg</visitConvertedIcon> <visitCount>1</visitCount> <visitEcommerceStatus>none</visitEcommerceStatus> <visitEcommerceStatusIcon /> <daysSinceFirstVisit>0</daysSinceFirstVisit> <secondsSinceFirstVisit>0</secondsSinceFirstVisit> <daysSinceLastEcommerceOrder>0</daysSinceLastEcommerceOrder> <secondsSinceLastEcommerceOrder /> <visitDuration>0</visitDuration> <visitDurationPretty>0s</visitDurationPretty> <searches>0</searches> <actions>1</actions> <interactions>1</interactions> <referrerType>direct</referrerType> <referrerTypeName>Direct Entry</referrerTypeName> <referrerName /> <referrerKeyword /> <referrerKeywordPosition /> <referrerUrl /> <referrerSearchEngineUrl /> <referrerSearchEngineIcon /> <referrerSocialNetworkUrl /> <referrerSocialNetworkIcon /> <referrerAIAssistantUrl /> <referrerAIAssistantIcon /> <languageCode /> <language>Unknown</language> <deviceType>Desktop</deviceType> <deviceTypeIcon>plugins/Morpheus/icons/dist/devices/desktop.png</deviceTypeIcon> <deviceBrand>Apple</deviceBrand> <deviceModel>Generic Desktop</deviceModel> <operatingSystem>Mac 10.6</operatingSystem> <operatingSystemName>Mac</operatingSystemName> <operatingSystemIcon>plugins/Morpheus/icons/dist/os/MAC.png</operatingSystemIcon> <operatingSystemCode>MAC</operatingSystemCode> <operatingSystemVersion>10.6</operatingSystemVersion> <browserFamily>WebKit</browserFamily> <browserFamilyDescription>WebKit (Safari)</browserFamilyDescription> <browser>RockMelt 0.9</browser> <browserName>RockMelt</browserName> <browserIcon>plugins/Morpheus/icons/dist/browsers/RM.png</browserIcon> <browserCode>RM</browserCode> <browserVersion>0.9</browserVersion> <totalEcommerceRevenue>0</totalEcommerceRevenue> <totalEcommerceConversions>0</totalEcommerceConversions> <totalEcommerceItems>0</totalEcommerceItems> <totalAbandonedCartsRevenue>0</totalAbandonedCartsRevenue> <totalAbandonedCarts>0</totalAbandonedCarts> <totalAbandonedCartsItems>0</totalAbandonedCartsItems> <events>0</events> <continent>Asia</continent> <continentCode>asi</continentCode> <country>Japan</country> <countryCode>jp</countryCode> <countryFlag>plugins/Morpheus/icons/dist/flags/jp.png</countryFlag> <region /> <regionCode /> <city /> <location>Japan</location> <visitLocalTime>08:10:38</visitLocalTime> <visitLocalHour>8</visitLocalHour> <daysSinceLastVisit>0</daysSinceLastVisit> <secondsSinceLastVisit>0</secondsSinceLastVisit> <resolution>unknown</resolution> <plugins /> <pluginsIcons /> <customVariables> </customVariables> </row></result>plugins/CoreConsole/Commands/GenerateController.phpDeleted-54
plugins/CoreConsole/Commands/GenerateDimension.phpDeleted-265
plugins/CoreConsole/Commands/GenerateMenu.phpDeleted-54
plugins/CoreConsole/Commands/GeneratePlugin.phpDeleted-198
plugins/CoreConsole/Commands/GeneratePluginBase.phpDeleted-431
plugins/CoreConsole/Commands/GenerateReport.phpDeleted-311
plugins/CoreConsole/Commands/GenerateScheduledTask.phpDeleted-54
plugins/CoreConsole/Commands/GenerateSettings.phpDeleted-93
plugins/CoreConsole/Commands/GenerateSystemCheck.phpDeleted-103
plugins/CoreConsole/Commands/GenerateTest.phpDeleted-190
plugins/CoreConsole/Commands/GenerateUpdate.phpDeleted-120
plugins/CoreConsole/Commands/GenerateVisualizationPlugin.phpDeleted-88
plugins/CoreConsole/Commands/GenerateVueConstructBase.phpDeleted-58
plugins/CoreConsole/Commands/GenerateWidget.phpDeleted-172
plugins/CoreConsole/Commands/GetSegmentSql.phpDeleted-108
plugins/CoreConsole/Commands/GitCommit.phpDeleted-146
plugins/CoreConsole/Commands/GitPull.phpDeleted-57
plugins/CoreConsole/Commands/GitPush.phpDeleted-37
plugins/CoreConsole/Commands/TestEmail.phpDeleted-46
plugins/CoreConsole/Commands/WatchLog.phpDeleted-33
plugins/CoreConsole/CoreConsole.phpDeleted-14
plugins/CoreConsole/FeatureFlags/CliMultiProcessSymfony.phpDeleted-22
plugins/CoreConsole/FeatureFlags/SystemSignals.phpDeleted-22
plugins/CoreConsole/config/config.phpDeleted-3
plugins/CoreConsole/config/tracker.phpDeleted-3
plugins/CoreConsole/tests/System/ArchiveCronTest.phpDeleted-569
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest__ExamplePlugin.getExampleArchivedMetric_day.xmlDeleted-9
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_archive_php_cron_output.txtDeleted-107
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_examplePluginNoMetricsBecauseNoOtherPluginsArchived_noOptions__Actions.get_day.xmlDeleted-6
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_examplePluginNoMetricsBecauseNoOtherPluginsArchived_noOptions__Actions.get_week.xmlDeleted-6
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_noOptions__ExamplePlugin.getExampleArchivedMetric_day.xmlDeleted-9
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_noOptions__ExamplePlugin.getExampleArchivedMetric_week.xmlDeleted-9
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_noOptions__Goals.get_month.xmlDeleted-45
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_noOptions__VisitFrequency.get_month.xmlDeleted-75
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_noOptions__VisitsSummary.get_day.xmlDeleted-18
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_noOptions__VisitsSummary.get_month.xmlDeleted-42
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_noOptions__VisitsSummary.get_week.xmlDeleted-18
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_noOptions__VisitsSummary.get_year.xmlDeleted-36
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_nonPreArchivedSegment_noOptions__VisitsSummary.get_day.xmlDeleted-6
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_nonPreArchivedSegment_noOptions__VisitsSummary.get_month.xmlDeleted-6
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_nonPreArchivedSegment_noOptions__VisitsSummary.get_week.xmlDeleted-6
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_nonPreArchivedSegment_noOptions__VisitsSummary.get_year.xmlDeleted-6
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_preArchivedSegment0_noOptions__Live.getLastVisitsDetails_day.xmlDeleted-417
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_preArchivedSegment0_noOptions__Live.getLastVisitsDetails_year.xmlDeleted-1202
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_preArchivedSegment0_noOptions__VisitFrequency.get_day.xmlDeleted-25
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_preArchivedSegment0_noOptions__VisitFrequency.get_year.xmlDeleted-21
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_preArchivedSegment0_noOptions__VisitsSummary.get_day.xmlDeleted-14
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_preArchivedSegment0_noOptions__VisitsSummary.get_year.xmlDeleted-12
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_preArchivedSegment1_noOptions__Live.getLastVisitsDetails_day.xmlDeleted-417
plugins/CoreConsole/tests/System/expected/test_ArchiveCronTest_preArchivedSegment1_noOptions__Live.getLastVisitsDetails_year.xmlDeleted-1202