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 <thomas.steur@gmail.com>2015-11-30 03:47:21 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-12-01 06:19:52 +0300
commitea9ac058ff5da7ffe8354529e13e927ddcaf3f27 (patch)
tree50bc2d87e6c7e7fdbccb0458528d2512fb78ff94 /plugins/Events
parent5ce9ba9744ef93c193b21cfcafe39c719b592fd9 (diff)
New segment: ActionType
Diffstat (limited to 'plugins/Events')
-rw-r--r--plugins/Events/Actions/ActionEvent.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/plugins/Events/Actions/ActionEvent.php b/plugins/Events/Actions/ActionEvent.php
index 9921c8d39b..5106ec6092 100644
--- a/plugins/Events/Actions/ActionEvent.php
+++ b/plugins/Events/Actions/ActionEvent.php
@@ -60,9 +60,17 @@ class ActionEvent extends Action
protected function getActionsToLookup()
{
- return array(
- 'idaction_url' => $this->getUrlAndType()
- );
+ $actionUrl = false;
+
+ $url = $this->getActionUrl();
+
+ if (!empty($url)) {
+ // normalize urls by stripping protocol and www
+ $url = Tracker\PageUrl::normalizeUrl($url);
+ $actionUrl = array($url['url'], $this->getActionType(), $url['prefixId']);
+ }
+
+ return array('idaction_url' => $actionUrl);
}
// Do not track this Event URL as Entry/Exit Page URL (leave the existing entry/exit)