Record Goal without recording pageview?


#1

Hi, new to Piwik. Thank you for great script :slight_smile:

I have some popups that I want to record goals for. They are really not pageviews, and I don’t want to count them as such. I am using the php interface for piwik. How do I record those as goals, but making sure the page views are not incremented. I am using $t->doTrackGoal but it seems to also increment pageviews.


(Matthieu Aubry) #2

doTrackGoal will increase “actions” but not “pageviews” in the Visitors>Overview report so it should work as you expect?


#3

Thanks, Matt.

On reviewing my code, you are correct. I am calling $t->doTrackSiteSearch before calling $t->doTrackGoal and Search is the one incrementing the views.

Regards,

steve