Piwik doesn't track goals by tracking code


Hi Guys,

I’ve installed piwik in different sites and it runs perfectly, it’s amazing the data in real time!..i love it. The problem is when i try to track goals…when i configure goals when a visitor gets to a single page goes well, piwik tracks the goals without problems…but when i use piwikTracker code there’s no conversion tracking.

Reading the forums and the API documentation, i didn’t find how to insert the tracking code exactly embedded into the piwik tracking code. Here’s my piwik code inserted in the thankyou page:

The objective to track named “NewLead” is not tracked this way…what am i doing wrong?

Thanks in advance.

(vipsoft) #2

Is newlead initialized? you need to use the numeric goal id from your Goals administration screen.


So, the problem is in using a text name in piwikTracker.trackGoal(NewLead) ?

The solution can be to use just numbers in objectives?


(Matthieu Aubry) #4

The function trackGoal( integer) accepts an integer (number) by default, the idGoal as vipsoft explained…