How to use trackGoal?


(Demas) #1

Sorry, if this may be a dump question, but I do not understand how the goal tracking should work.

I have enabled the goal plugin and defined 2 goals (e. g. “goal1” and “goal2”).

In the tracking code I added:

piwikTracker.trackGoal(1);

Should this now track “goal1”? If so, I get no data for this goal.


(jazzybon) #2

[quote=Demas @ Aug 6 2009, 01:03 PM]Sorry, if this may be a dump question, but I do not understand how the goal tracking should work.

I have enabled the goal plugin and defined 2 goals (e. g. “goal1” and “goal2”).

In the tracking code I added:

piwikTracker.trackGoal(1);

Should this now track “goal1”? If so, I get no data for this goal.[/quote]

Ditto please
I could do with some help on setting this up too

Thanks All


(vipsoft) #3

[quote=Demas @ Aug 6 2009, 01:03 PM]In the tracking code I added:

piwikTracker.trackGoal(1);

Should this now track “goal1”? If so, I get no data for this goal.[/quote]
Yes, if the Id for goal1 is “1” and you’ve instantiated piwikTracker. Select Edit existing Goals to see the table of active Goals.