Getting goal tracking functional

Dear reader, first of all, thanks for taking the time to read my post.

I’ve been trying for the past couple of days to get Goal tracking in Piwik JS operational. The problem is that not once I did manage to track a goal succesfully.

Some special settings and considerations:

  • Turned off cookies;
  • I have checked numerous times that the website and Goal ID is indeed correct;
  • Firebug does not report any JavaScript errors;
  • Normal visitor tracking works wonderfully;
  • I’ve enabled the e-commerce module;
  • I’m positive that my server time is correct because it’s synced every few minutes.
  • Also tried it without SSL and without a float number for the order amount.

This is my JavaScript code (which is loaded in an external .js file):


var piwikTracker = Piwik.getTracker("https://www.seo-visuals.com/piwik/piwik.php", 1);
piwikTracker.trackGoal(1, 4.00);

I’ve also made it available online, so that someone can dissect the code:

http://www.seo-visuals.com/test.html

I have also tried the same thing with the PHP api, but this also didn’t track any goal.

Cheers!

Ok so the last thing is to try is to use firebug and enable tracker debug as per instructions in: http://piwik.org/docs/tracking-api/reference/#toc-debugging-the-tracking-api-requests

Then you will see exactly what is happening. The only thing I can think of is, delete tmp/cache/* ?

Thanks, cleaned the cache dir. The debugging is on, but no HTML code or answer according to firebug. Except when I decide to visit the URL manually. But even then still no goal tracked. I’m positive that the ID’s for the goal and website are correct and that I didn’t exclude my IP :frowning:

debug url

Other than the goal tracking which I can’t seem to get to work I’m absolutely in love with Piwik :slight_smile:

It looks like it’s working … are you sure there is no data in your table piwik_log_conversion?

Is there no data in Piwik > Goals > OVerview report?

It’s working now! Thanks, at least someone triggered it now :slight_smile: