Install Piwik instance.
Create a single Goal, manually activated.
Point browser to a page ('test.html') that has the following code
piwikTracker.trackPageView(); piwikTracker.enableLinkTracking(); piwikTracker.trackLink("http://example.com/2", "link"); piwikTracker.trackGoal(1);
(note: tried this with IE8 and FF3.6.x, cookies enabled; with a cleaned cache and without.)
piwik_log_link_visit_action has entries for
test.html and for manually tracked
piwik_log_conversion has entry for goal 1.
Only the entries in the
piwik_log_link_visit_action table. Goal was not tracked.
Cannot find anything in docs why Piwik would choose to ignore an API command.
This should work. Do your web server logs show the trackGoal request hitting the server?
Your example is similar to my typical test script. However, I'm currently unable to reproduce this in trunk. I get the expected page view, outlink, and conversion recorded. (And just for kicks, I repeated this and tested the async API. Same results.)
These are some implementation limitations to be aware of:
Please use the forum for further assistance.