blob: 373ed31474bd0eedf38bdfadbded501e2939ad3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<html>
<body>
This page loads a Simple Tracker request to Piwik website id=1
<?php
// -- Piwik Tracking API init --
require_once "../libs/PiwikTracker/PiwikTracker.php";
PiwikTracker::$URL = 'http://example.org/piwik/';
// Example 1: Tracks a pageview for Website id = {$IDSITE}
$trackingURL = Piwik_getUrlTrackPageView($idSite = 1, $customTitle = 'This title will appear in the report Actions > Page titles');
echo '<img src="' . htmlentities($trackingURL) . '" alt="" />';
?>
</body>
</html>
|