Skip to content
Extraits de code Groupes Projets
Valider f3575224 rédigé par mattab's avatar mattab
Parcourir les fichiers

Add new Custom Segments: outlinkURL and downloadUrl to segment on any Clicked...

Add new Custom Segments: outlinkURL and downloadUrl to segment on any Clicked URL or Downloaded file
parent 2226511b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -202,6 +202,8 @@ class TableLogAction
private static function guessActionTypeFromSegment($segmentName)
{
$exactMatch = array(
'outlinkUrl' => Action::TYPE_OUTLINK,
'downloadUrl' => Action::TYPE_DOWNLOAD,
'eventAction' => Action::TYPE_EVENT_ACTION,
'eventCategory' => Action::TYPE_EVENT_CATEGORY,
'eventName' => Action::TYPE_EVENT_NAME,
......
......@@ -9,13 +9,21 @@
namespace Piwik\Plugins\Actions\Columns;
use Piwik\Piwik;
use Piwik\Plugin\Dimension\ActionDimension;
use Piwik\Plugins\Actions\Segment;
class ClickedUrl extends ActionDimension
class ClickedUrl extends PageUrl
{
public function getName()
{
return Piwik::translate('Actions_ColumnClickedURL');
}
protected function configureSegments()
{
$segment = new Segment();
$segment->setSegment('outlinkUrl');
$segment->setName('Actions_ColumnClickedURL');
$this->addSegment($segment);
}
}
......@@ -9,13 +9,21 @@
namespace Piwik\Plugins\Actions\Columns;
use Piwik\Piwik;
use Piwik\Plugin\Dimension\ActionDimension;
use Piwik\Plugins\Actions\Segment;
class DownloadUrl extends ActionDimension
class DownloadUrl extends PageUrl
{
public function getName()
{
return Piwik::translate('Actions_ColumnDownloadURL');
}
protected function configureSegments()
{
$segment = new Segment();
$segment->setSegment('downloadUrl');
$segment->setName('Actions_ColumnDownloadURL');
$this->addSegment($segment);
}
}
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