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:
authorThomas Steur <tsteur@users.noreply.github.com>2018-03-20 13:11:03 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2018-03-20 13:11:03 +0300
commitedfc875f782abc603afdd5898b7fa503310f951a (patch)
tree26999734dc75576bbcf06802bf43f02fb243a801 /plugins/ProfessionalServices
parent319adb5f232e669b943cd8ab79f73e725eefd84a (diff)
Adding some more did you know sections (#12356)
Diffstat (limited to 'plugins/ProfessionalServices')
-rw-r--r--plugins/ProfessionalServices/ProfessionalServices.php33
-rw-r--r--plugins/ProfessionalServices/templates/promoBelowCampaigns.twig4
-rw-r--r--plugins/ProfessionalServices/templates/promoBelowReferrerTypes.twig3
-rw-r--r--plugins/ProfessionalServices/templates/promoCustomVariables.twig3
4 files changed, 34 insertions, 9 deletions
diff --git a/plugins/ProfessionalServices/ProfessionalServices.php b/plugins/ProfessionalServices/ProfessionalServices.php
index 5e6ef3f6f0..7c821418c6 100644
--- a/plugins/ProfessionalServices/ProfessionalServices.php
+++ b/plugins/ProfessionalServices/ProfessionalServices.php
@@ -27,7 +27,9 @@ class ProfessionalServices extends \Piwik\Plugin
'Template.endGoalEditTable' => array('function' => 'getGoalFunnelOverviewPromo', 'after' => true),
'Template.afterEventsReport' => 'getEventsPromo',
'Template.afterCampaignsReport' => 'getCampaignsPromo',
+ 'Template.afterReferrerTypeReport' => 'getReferrerTypePromo',
'Template.afterReferrersKeywordsReport' => 'getSearchKeywordsPerformancePromo',
+ 'Template.afterCustomVariablesReport' => 'getCustomVariablesPromo',
'Template.afterOverlaySidebar' => 'getHeatmapPromo',
'Template.afterVisitorProfileOverview' => 'getSessionRecordingPromo',
);
@@ -96,22 +98,26 @@ class ProfessionalServices extends \Piwik\Plugin
public function getGoalFunnelOverviewPromo(&$out)
{
- if (!$this->shouldShowPromoForPlugin('Funnels')) {
- return;
+ if ($this->shouldShowPromoForPlugin('Funnels')) {
+ $view = new View('@ProfessionalServices/promoFunnel');
+ $out .= $view->render();
}
-
- $view = new View('@ProfessionalServices/promoFunnel');
- $out .= $view->render();
}
public function getGoalOverviewPromo(&$out)
{
- if (!$this->shouldShowPromoForPlugin('AbTesting')) {
- return;
+ if ($this->shouldShowPromoForPlugin('AbTesting')) {
+ $view = new View('@ProfessionalServices/promoExperiments.twig');
+ $out .= $view->render();
}
+ }
- $view = new View('@ProfessionalServices/promoExperiments.twig');
- $out .= $view->render();
+ public function getCustomVariablesPromo(&$out)
+ {
+ if ($this->shouldShowPromoForPlugin('CustomReports')) {
+ $view = new View('@ProfessionalServices/promoCustomVariables.twig');
+ $out .= $view->render();
+ }
}
public function getEventsPromo(&$out)
@@ -133,9 +139,18 @@ class ProfessionalServices extends \Piwik\Plugin
$view = new View('@ProfessionalServices/promoBelowCampaigns');
$view->displayMarketingCampaignsReportingAd = !$this->isPluginActivated('MarketingCampaignsReporting');
+ $view->multiChannelConversionAttributionAd = !$this->isPluginActivated('MultiChannelConversionAttribution') && !empty($_REQUEST['idGoal']);
$out .= $view->render();
}
+ public function getReferrerTypePromo(&$out)
+ {
+ if ($this->shouldShowPromoForPlugin('MultiChannelConversionAttribution') && !empty($_REQUEST['idGoal'])) {
+ $view = new View('@ProfessionalServices/promoBelowReferrerTypes');
+ $out .= $view->render();
+ }
+ }
+
private function shouldShowPromoForPlugin($pluginName)
{
return !$this->isPluginActivated($pluginName) && !$this->isRequestForDashboardWidget();
diff --git a/plugins/ProfessionalServices/templates/promoBelowCampaigns.twig b/plugins/ProfessionalServices/templates/promoBelowCampaigns.twig
index 2b9efc0bf3..1aa00beabf 100644
--- a/plugins/ProfessionalServices/templates/promoBelowCampaigns.twig
+++ b/plugins/ProfessionalServices/templates/promoBelowCampaigns.twig
@@ -4,4 +4,8 @@
{% if displayMarketingCampaignsReportingAd %}
<br/> Install our <a target="_blank" rel="noreferrer" href="https://plugins.matomo.org/MarketingCampaignsReporting">Marketing Campaigns Reporting plugin</a> to get even more campaigns reports and new segments for up to five marketing channels (campaign, source, medium, keyword, content).
{% endif %}
+ {% if multiChannelConversionAttributionAd %}
+ <br />
+ Discover how much each campaign truly contributes to your success by applying attribution models using the <a target="_blank" rel="noreferrer" href="https://plugins.piwik.org/MarketingCampaignsReporting">Multi Channel Conversion Attribution</a> premium feature.
+ {% endif %}
</p> \ No newline at end of file
diff --git a/plugins/ProfessionalServices/templates/promoBelowReferrerTypes.twig b/plugins/ProfessionalServices/templates/promoBelowReferrerTypes.twig
new file mode 100644
index 0000000000..673c4f4367
--- /dev/null
+++ b/plugins/ProfessionalServices/templates/promoBelowReferrerTypes.twig
@@ -0,0 +1,3 @@
+<p style="margin-top:3em" class=" alert-info alert">Did you know?
+ <br/>You can get advanced insights into how much each of your marking channel truly contributes to your success by applying attribution models using the <a target="_blank" rel="noreferrer" href="https://plugins.piwik.org/MultiChannelConversionAttribution">Multi Channel Conversion Attribution</a> premium feature.
+</p> \ No newline at end of file
diff --git a/plugins/ProfessionalServices/templates/promoCustomVariables.twig b/plugins/ProfessionalServices/templates/promoCustomVariables.twig
new file mode 100644
index 0000000000..69da4dbc11
--- /dev/null
+++ b/plugins/ProfessionalServices/templates/promoCustomVariables.twig
@@ -0,0 +1,3 @@
+<p style="margin-top:1em" class=" alert-info alert">Did you know?
+ <br/> With the <a target="_blank" rel="noreferrer" href="https://plugins.piwik.org/CustomReports">Custom Reports</a> premium feature you can pull out the information you need in a matter of seconds.
+</p> \ No newline at end of file