I know this is dumb, but since we have been having so many issues with Piwik, I just want to make sure I won’t mess up my anything.
In this article (Tracking API - Analytics Platform - Matomo), it ask to move the “PiwikTracker.php” to where my Project Files are. Are we talking about were my piwik folder is?
Please let me know,
style_emoticons/<#EMO_DIR#>/blink.gif
thanks.
Thanks.
I am not sure what “allow_url_fopen” is.
Is it a configuration in the php.ini? We are currently using php 5.3.3
I will try to give it a shot to the PiwikTracker.php on a server that we have for testing purposes.
I also noticed that the “PiwikTracker.php” is already in my “tracker” folder. Should I replace it with the one I just downloaded? I am now running Piwik 0.6.4
<?php
// -- Piwik Tracking API init --
require_once "piwik/core/Tracker/PiwikTracker.php";
PiwikTracker::$url = 'http://131.94.117.181/sunguide/piwik/';
?>
<?php
// Example 1: Tracks a pageview for Website id = 1
echo '<img src="'. Piwik_getUrlTrackPageView( $idSite = 1, $customTitle = 'This title will appear in the report Actions > Page titles') . '" alt="" />';
// Example 2: Triggers a Goal conversion for Website id = 1 and Goal id = 2
// $customRevenue is optional and is set to the amount generated by the current transaction (in online shops for example)
echo '<img src="'. Piwik_getUrlTrackGoal( $idSite = 1, $idGoal = 2, $customRevenue = 39) . '" alt="" />';
?>
Nothing shows there.
There is no image URL whatsoever. style_emoticons/<#EMO_DIR#>/sad.gif
I think it is related to the path to the “PiwikTracker.php”. I have the impression that it is not loading it.
While in your “PiwikTracker.php” file, you have the $url defined as "URL"
So, if someone finds this same issue, by replacing the previous line with this one, it should work.
[quote=atiosis @ Jul 28 2010, 09:22 PM]The problem is that it is not tracking style_emoticons/<#EMO_DIR#>/sad.gif
We are using php 5.3.3
… and piwik’s version 0.6.4[/quote]