diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-11-30 03:47:21 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-12-01 06:19:52 +0300 |
commit | ea9ac058ff5da7ffe8354529e13e927ddcaf3f27 (patch) | |
tree | 50bc2d87e6c7e7fdbccb0458528d2512fb78ff94 /plugins/Events/Actions | |
parent | 5ce9ba9744ef93c193b21cfcafe39c719b592fd9 (diff) |
New segment: ActionType
Diffstat (limited to 'plugins/Events/Actions')
-rw-r--r-- | plugins/Events/Actions/ActionEvent.php | 14 |
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) |