Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

PHP Piwik Tracker issue

$
0
0

@RonanChardonneau wrote:

Hi there,

I am trying to understand how the Piwik PHP tracking is working.
In order to do that I installed Piwik locally under :
http://localhost/piwik/

I followed the documentation at http://piwik.org/docs/tracking-api/ but I cannot make it work.

Any ideas of where it could come from?

Thanks for your help, i added below the source code that I am using, copied/pasted from the official documentation :





My title


<?php
// -- Piwik Tracking API init --
require_once "/piwik/PiwikTracker.php";
PiwikTracker::$URL = 'http://localhost/';
?>
<?php
// Example 1: Tracks a pageview for Website id = {$IDSITE}
echo ' Page titles')) . '" alt="" />';
?>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles