blob: ae7502874a736e0ef5d5c7fed6c1e63c29b21562 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<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>
|