Register goals using php

(haestan) #1


is it possible to track a goal without Javascript just by using some php functions from piwik?
The reason I’m asking is that I’d like to track a goal on a redirect page which is written in php. But since it’s doing just a HTTP 302 redirect, there is no output, hence I cannot add the Piwik Javascript tag.

EDIT: just seen that a very similar question (301 Moved Permanently) was already asked. I will follow the previous question then.


(Matthieu Aubry) #2

It’s possible, but not yet documented. You can trigger the piwik.php?idsite=X&idgoal=Y etc. request. You can find the request using Firebug > Net tab, when triggering a manual goal using the trackGoal(Y) request.

(vnome) #3


I tried all the way to record a goal, but nothing appends.
I would try to record using php but I dont know where (and how) to find the “net tab” in firebug.

Can you give more informations please ?

(Matthieu Aubry) #4

see : Firebug