Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refreshed whole tracking code page. Refactored code to reuse in Installation and in the piwik.org docs at http://piwik.org/docs/tracking-api/ (upcoming) * inviting externals devs to submit the Tracking API Client in their languages (currently in PHP, could be in Perl, python, java etc) * Comments in PiwikTracker * Removed unused admin UI strings
- Loading branch information
matt
committed
Jul 8, 2010
1 parent
3436f55
commit 1de54c3
Showing
11 changed files
with
398 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
// Example file to demonstrate PiwikTracker.php | ||
// See http://piwik.org/docs/tracking-api/ | ||
require_once '../core/Tracker/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); |
Oops, something went wrong.