Skip to content
Extraits de code Groupes Projets
Valider b018cf1d rédigé par Matthieu Aubry's avatar Matthieu Aubry Validation de GitHub
Parcourir les fichiers

Add a link to Campaign tracking docs + URL Builder + Marketing Campaigns Reporting plugin (#11997)

* Add a link to Campaign tracking docs + URL Builder + Marketing Campaigns Reporting plugin

* Update UI tests
parent 8a23b7e7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -26,6 +26,7 @@ class ProfessionalServices extends \Piwik\Plugin
'Template.afterGoalCannotAddNewGoal' => array('function' => 'getGoalOverviewPromo', 'after' => true),
'Template.endGoalEditTable' => array('function' => 'getGoalFunnelOverviewPromo', 'after' => true),
'Template.afterEventsReport' => 'getEventsPromo',
'Template.afterCampaignsReport' => 'getCampaignsPromo',
'Template.afterReferrersKeywordsReport' => 'getSearchKeywordsPerformancePromo',
'Template.afterOverlaySidebar' => 'getHeatmapPromo',
'Template.afterVisitorProfileOverview' => 'getSessionRecordingPromo',
......@@ -124,6 +125,17 @@ class ProfessionalServices extends \Piwik\Plugin
$out .= $view->render();
}
public function getCampaignsPromo(&$out)
{
if ($this->isRequestForDashboardWidget()) {
return;
}
$view = new View('@ProfessionalServices/promoBelowCampaigns');
$view->displayMarketingCampaignsReportingAd = !$this->isPluginActivated('MarketingCampaignsReporting');
$out .= $view->render();
}
private function shouldShowPromoForPlugin($pluginName)
{
return !$this->isPluginActivated($pluginName) && !$this->isRequestForDashboardWidget();
......
<p style="margin-top:3em" class=" alert-info alert">Did you know?
<br/> <a target="_blank" rel="noreferrer" href="https://piwik.org/docs/tracking-campaigns/">Campaign tracking</a> lets you measure the effectiveness of your marketing campaigns such as emails marketing, paid search, banner ads, affiliates links, etc.
Use the <a target="_blank" rel="noreferrer" href="https://piwik.org/docs/tracking-campaigns/">URL Builder tool</a> to create your links with new URL campaign parameters.
{% if displayMarketingCampaignsReportingAd %}
<br/> Install our <a target="_blank" rel="noreferrer" href="https://plugins.piwik.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 %}
</p>
\ No newline at end of file
......@@ -8,6 +8,7 @@
*/
namespace Piwik\Plugins\Referrers\Reports;
use Piwik\EventDispatcher;
use Piwik\Piwik;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\Referrers\Columns\Campaign;
......@@ -34,6 +35,20 @@ class GetCampaigns extends Base
$view->config->addTranslation('label', $this->dimension->getName());
$view->requestConfig->filter_limit = 25;
$this->configureFooterMessage($view);
}
protected function configureFooterMessage(ViewDataTable $view)
{
if ($this->isSubtableReport) {
// no footer message for subtables
return;
}
$out = '';
EventDispatcher::getInstance()->postEvent('Template.afterCampaignsReport', array(&$out));
$view->config->show_footer_message = $out;
}
}
Le fichier a été supprimé par une entrée .gitattributes, ou son encodage n'est pas pris en charge.
Le fichier a été supprimé par une entrée .gitattributes, ou son encodage n'est pas pris en charge.
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter