Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Aubry <mattab@users.noreply.github.com>2016-12-12 13:54:03 +0300
committerGitHub <noreply@github.com>2016-12-12 13:54:03 +0300
commit53454e8efd0ab2a03dd9bb9f837aa63f36cfe552 (patch)
treebe7dc483dad0dcac6577b73e9e82ede7bc097682 /plugins/ProfessionalServices/ProfessionalServices.php
parentb1c09fa5123155ab9cd79342a4a0cef42e80de7f (diff)
parent67f2661f24602a07ebee66172f8446887ab83787 (diff)
Merge pull request #10994 from piwik/3.x-dev3.0.0-rc2
3.0.0-rc2 release
Diffstat (limited to 'plugins/ProfessionalServices/ProfessionalServices.php')
-rw-r--r--plugins/ProfessionalServices/ProfessionalServices.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/ProfessionalServices/ProfessionalServices.php b/plugins/ProfessionalServices/ProfessionalServices.php
index 2dd0811b6b..8dafa079bd 100644
--- a/plugins/ProfessionalServices/ProfessionalServices.php
+++ b/plugins/ProfessionalServices/ProfessionalServices.php
@@ -21,6 +21,8 @@ class ProfessionalServices extends \Piwik\Plugin
'AssetManager.getStylesheetFiles' => 'getStylesheetFiles',
'Request.getRenamedModuleAndAction' => 'renameProfessionalServicesModule',
'Template.afterGoalConversionOverviewReport' => array('function' => 'getGoalOverviewPromo', 'after' => true),
+ 'Template.afterGoalCannotAddNewGoal' => array('function' => 'getGoalOverviewPromo', 'after' => true),
+ 'Template.endGoalEditTable' => array('function' => 'getGoalFunnelOverviewPromo', 'after' => true),
'Template.afterEventsReport' => 'getEventsPromo',
);
}
@@ -56,6 +58,22 @@ class ProfessionalServices extends \Piwik\Plugin
return $isWidget;
}
+ public function getGoalFunnelOverviewPromo(&$out)
+ {
+ if(\Piwik\Plugin\Manager::getInstance()->isPluginActivated('Funnels')
+ || $this->isRequestForDashboardWidget()) {
+ return;
+ }
+
+ $out .= '
+ <p style="margin-top:3em;margin-bottom:3em" class=" alert-info alert">Did you know?
+ A Funnel defines a series of actions that you expect your visitors to take on their way to converting a goal.
+ <br/>With <a target="_blank" rel="noreferrer" href="https://piwik.org/recommends/conversion-funnel/">Funnels for Piwik</a>,
+ you can easily determine your funnel and see where your visitors drop off and how to focus efforts to increase your conversions.
+ </p>';
+ }
+
+
public function getGoalOverviewPromo(&$out)
{
if(\Piwik\Plugin\Manager::getInstance()->isPluginActivated('AbTesting')