diff options
author | mattab <matthieu.aubry@gmail.com> | 2017-03-15 12:35:50 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2017-03-15 12:35:50 +0300 |
commit | cf6edc487cfd688b8c533118755ec44d884a6e87 (patch) | |
tree | 33a72990fd392e3b4d4a90c4ccdcfc4be768e3fc /plugins/ProfessionalServices | |
parent | 43f1858afa056aaa1e9e58d86d87917e2daf76b8 (diff) |
Ad for new SearchEngineKeywordsPerformance plugin
Diffstat (limited to 'plugins/ProfessionalServices')
-rw-r--r-- | plugins/ProfessionalServices/ProfessionalServices.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/ProfessionalServices/ProfessionalServices.php b/plugins/ProfessionalServices/ProfessionalServices.php index 8dafa079bd..76a2350b54 100644 --- a/plugins/ProfessionalServices/ProfessionalServices.php +++ b/plugins/ProfessionalServices/ProfessionalServices.php @@ -24,6 +24,7 @@ class ProfessionalServices extends \Piwik\Plugin 'Template.afterGoalCannotAddNewGoal' => array('function' => 'getGoalOverviewPromo', 'after' => true), 'Template.endGoalEditTable' => array('function' => 'getGoalFunnelOverviewPromo', 'after' => true), 'Template.afterEventsReport' => 'getEventsPromo', + 'Template.afterReferrersKeywordsReport' => 'getSearchKeywordsPerformancePromo', ); } @@ -58,6 +59,22 @@ class ProfessionalServices extends \Piwik\Plugin return $isWidget; } + public function getSearchKeywordsPerformancePromo(&$out) + { + if(\Piwik\Plugin\Manager::getInstance()->isPluginActivated('SearchEngineKeywordsPerformance') + || $this->isRequestForDashboardWidget()) { + return; + } + + $out .= ' + <p style="margin-top:3em;margin-bottom:3em" class=" alert-info alert">Did you know?<br/> + Use <a target="_blank" rel="noreferrer" href="https://piwik.org/recommends/search-keywords-performance/">Search Keywords Performance</a> + to see all keywords behind \'keyword not defined\'. + All keywords searched by your users on Google, Bing and other search engines will be listed + and you can even monitor the SEO position of your website in their search results. + </p>'; + } + public function getGoalFunnelOverviewPromo(&$out) { if(\Piwik\Plugin\Manager::getInstance()->isPluginActivated('Funnels') |