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
path: root/libs
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-10-23 05:13:51 +0400
committermattab <matthieu.aubry@gmail.com>2013-10-23 05:13:51 +0400
commit821b73991988bd738707a00c754a9bbc4af34c79 (patch)
treee0405b7c8286044f2ccb8652446daae779b4f3d6 /libs
parentc3caa9e8c1d46183bdb8e3cfe7ddf4fc644fc167 (diff)
refs #472 Adding Javascript API for tracking Event + Javascript tests
Diffstat (limited to 'libs')
-rw-r--r--libs/PiwikTracker/PiwikTracker.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/libs/PiwikTracker/PiwikTracker.php b/libs/PiwikTracker/PiwikTracker.php
index 262bfdeec5..8456b6687a 100644
--- a/libs/PiwikTracker/PiwikTracker.php
+++ b/libs/PiwikTracker/PiwikTracker.php
@@ -370,9 +370,12 @@ class PiwikTracker
}
/**
- * Tracks a page view
+ * Tracks an event
*
- * @param string $documentTitle Page title as it will appear in the Actions > Page titles report
+ * @param string $category The Event Category (Videos, Music, Games...)
+ * @param string $action The Event's Action (Play, Pause, Duration, Add Playlist, Downloaded, Clicked...)
+ * @param string $name (optional) The Event's object Name (a particular Movie name, or Song name, or File name...)
+ * @param float $value (optional) The Event's value
* @return mixed Response string or true if using bulk requests.
*/
public function doTrackEvent($category, $action, $name = false, $value = false)
@@ -650,10 +653,10 @@ class PiwikTracker
* Builds URL to track a custom event.
*
* @see doTrackEvent()
- * @param string $category (optional) The Event Category (Videos, Music, Games...)
+ * @param string $category The Event Category (Videos, Music, Games...)
* @param string $action The Event's Action (Play, Pause, Duration, Add Playlist, Downloaded, Clicked...)
- * @param string $name The Event's object Name (a particular Movie name, or Song name, or File name...)
- * @param float $value The Event's value
+ * @param string $name (optional) The Event's object Name (a particular Movie name, or Song name, or File name...)
+ * @param float $value (optional) The Event's value
* @return string URL to piwik.php with all parameters set to track the pageview
*/
public function getUrlTrackEvent($category, $action, $name = false, $value = false)