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:
authorStefan Giehl <stefan@matomo.org>2020-01-28 00:20:43 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2020-01-28 00:20:43 +0300
commit907a3d6f78693bcaadde7460fe0c2224161de63b (patch)
tree1c87dd15286dca1afc9fc6b20ca8ca80ca3cb218 /misc/others
parentf734983e24af1dd2c1b37208bc18d6dea4114815 (diff)
Use rebranded components (#15253)
Diffstat (limited to 'misc/others')
-rw-r--r--misc/others/ExampleMatomoTracker.php17
-rw-r--r--misc/others/ExamplePiwikTracker.php17
-rw-r--r--misc/others/tracker_simpleImageTracker.php8
3 files changed, 21 insertions, 21 deletions
diff --git a/misc/others/ExampleMatomoTracker.php b/misc/others/ExampleMatomoTracker.php
new file mode 100644
index 0000000000..4f784b0159
--- /dev/null
+++ b/misc/others/ExampleMatomoTracker.php
@@ -0,0 +1,17 @@
+<?php
+// Example file to demonstrate MatomoTracker.php
+// See https://matomo.org/docs/tracking-api/
+require_once '../../vendor/matomo/matomo-php-tracker/MatomoTracker.php';
+MatomoTracker::$URL = 'http://localhost/trunk/';
+
+$matomoTracker = new MatomoTracker($idSite = 1);
+// You can manually set the Visitor details (resolution, time, plugins)
+// See all other ->set* functions available in the MatomoTracker class
+$matomoTracker->setResolution(1600, 1400);
+
+// Sends Tracker request via http
+$matomoTracker->doTrackPageView('Document title of current page view');
+// You can also track Goal conversions
+$matomoTracker->doTrackGoal($idGoal = 1, $revenue = 42);
+
+echo 'done'; \ No newline at end of file
diff --git a/misc/others/ExamplePiwikTracker.php b/misc/others/ExamplePiwikTracker.php
deleted file mode 100644
index 5daa2d7701..0000000000
--- a/misc/others/ExamplePiwikTracker.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-// Example file to demonstrate PiwikTracker.php
-// See http://piwik.org/docs/tracking-api/
-require_once '../../libs/PiwikTracker/PiwikTracker.php';
-PiwikTracker::$URL = 'http://localhost/trunk/';
-
-$piwikTracker = new PiwikTracker($idSite = 1);
-// You can manually set the Visitor details (resolution, time, plugins)
-// See all other ->set* functions available in the PiwikTracker class
-$piwikTracker->setResolution(1600, 1400);
-
-// Sends Tracker request via http
-$piwikTracker->doTrackPageView('Document title of current page view');
-// You can also track Goal conversions
-$piwikTracker->doTrackGoal($idGoal = 1, $revenue = 42);
-
-echo 'done'; \ No newline at end of file
diff --git a/misc/others/tracker_simpleImageTracker.php b/misc/others/tracker_simpleImageTracker.php
index bf4ac796c5..aa81319560 100644
--- a/misc/others/tracker_simpleImageTracker.php
+++ b/misc/others/tracker_simpleImageTracker.php
@@ -1,9 +1,9 @@
<?php
-// -- Piwik Tracking API init --
-require_once "../../libs/PiwikTracker/PiwikTracker.php";
-PiwikTracker::$URL = 'http://localhost/matomo-master/';
+// -- Matomo Tracking API init --
+require_once '../../vendor/matomo/matomo-php-tracker/MatomoTracker.php';
+MatomoTracker::$URL = 'http://localhost/matomo-master/';
// Example 1: Tracks a pageview for Website id = {$IDSITE}
-$trackingURL = Piwik_getUrlTrackPageView($idSite = 16, $customTitle = 'This title will appear in the report Actions > Page titles');
+$trackingURL = Matomo_getUrlTrackPageView($idSite = 16, $customTitle = 'This title will appear in the report Actions > Page titles');
?>
<html>