forked from matomo-org/matomo-php-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PiwikTracker.php
50 lines (46 loc) · 1.05 KB
/
PiwikTracker.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* Matomo - free/libre analytics platform
*
* For more information, see README.md
*
* @license released under BSD License http://www.opensource.org/licenses/bsd-license.php
* @link https://matomo.org/docs/tracking-api/
*
* @category Matomo
* @package MatomoTracker
*/
if (!class_exists('\MatomoTracker')) {
include_once('MatomoTracker.php');
}
/**
* Helper function to quickly generate the URL to track a page view.
*
* @deprecated
* @param $idSite
* @param string $documentTitle
* @return string
*/
function Piwik_getUrlTrackPageView($idSite, $documentTitle = '')
{
return Matomo_getUrlTrackPageView($idSite, $documentTitle);
}
/**
* Helper function to quickly generate the URL to track a goal.
*
* @deprecated
* @param $idSite
* @param $idGoal
* @param float $revenue
* @return string
*/
function Piwik_getUrlTrackGoal($idSite, $idGoal, $revenue = 0.0)
{
return Matomo_getUrlTrackGoal($idSite, $idGoal, $revenue);
}
/**
* For BC only
*
* @deprecated use MatomoTracker instead
*/
class PiwikTracker extends MatomoTracker {}