diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-06-02 04:09:15 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-06-17 08:09:13 +0300 |
commit | 18501381cec766aa729fdc7bdcd282c90a7be45f (patch) | |
tree | cf7cfe213d72cbd57ec86e570a5e2a7c4dc55815 /plugins/SitesManager/SitesManager.php | |
parent | 1f707dd3c9422494b7cf844591079c11c651158c (diff) |
refs #7893 added possibility to measure mobile apps
Diffstat (limited to 'plugins/SitesManager/SitesManager.php')
-rw-r--r-- | plugins/SitesManager/SitesManager.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/SitesManager/SitesManager.php b/plugins/SitesManager/SitesManager.php index b4390f32d9..6baa7ac427 100644 --- a/plugins/SitesManager/SitesManager.php +++ b/plugins/SitesManager/SitesManager.php @@ -10,7 +10,9 @@ namespace Piwik\Plugins\SitesManager; use Piwik\Common; use Piwik\Archive\ArchiveInvalidator; +use Piwik\Db; use Piwik\Plugins\PrivacyManager\PrivacyManager; +use Piwik\Measurable\Settings\Storage; use Piwik\Tracker\Cache; use Piwik\Tracker\Model as TrackerModel; @@ -69,6 +71,9 @@ class SitesManager extends \Piwik\Plugin $archiveInvalidator = new ArchiveInvalidator(); $archiveInvalidator->forgetRememberedArchivedReportsToInvalidateForSite($idSite); + + $measurableStorage = new Storage(Db::get(), $idSite); + $measurableStorage->deleteAllValues(); } /** @@ -88,6 +93,7 @@ class SitesManager extends \Piwik\Plugin $jsFiles[] = "plugins/SitesManager/angularjs/sites-manager/api-helper.service.js"; $jsFiles[] = "plugins/SitesManager/angularjs/sites-manager/api-site.service.js"; $jsFiles[] = "plugins/SitesManager/angularjs/sites-manager/api-core.service.js"; + $jsFiles[] = "plugins/SitesManager/angularjs/sites-manager/sites-manager-type-model.js"; $jsFiles[] = "plugins/SitesManager/angularjs/sites-manager/sites-manager-admin-sites-model.js"; $jsFiles[] = "plugins/SitesManager/angularjs/sites-manager/multiline-field.directive.js"; $jsFiles[] = "plugins/SitesManager/angularjs/sites-manager/edit-trigger.directive.js"; @@ -326,7 +332,11 @@ class SitesManager extends \Piwik\Plugin $translationKeys[] = "SitesManager_SelectDefaultTimezone"; $translationKeys[] = "SitesManager_DefaultCurrencyForNewWebsites"; $translationKeys[] = "SitesManager_SelectDefaultCurrency"; + $translationKeys[] = "SitesManager_AddMeasurable"; $translationKeys[] = "SitesManager_AddSite"; + $translationKeys[] = "SitesManager_XManagement"; + $translationKeys[] = "SitesManager_ChooseMeasurableTypeHeadline"; + $translationKeys[] = "General_Measurables"; $translationKeys[] = "Goals_Ecommerce"; $translationKeys[] = "SitesManager_NotFound"; } |