- Posts: 7
- Thank you received: 3
Ask the community, share ideas, and connect with other LimeSurvey users!
Topic moved.SteveCohen wrote: Mods, would you move this to the 'plugins' forum? My apologies for posting in the wrong place.
That's a limitation at the moment . Currently the plugin will make Piwik track every survey, but disabling on a per-survey basis is on the roadmap. I'll try to get that done in the next week or so.Mazi wrote: Just a short question: Does piwik track all surveys or would it be possible to enable tracking for certain surveys only like we do with the Google Analytics feature of Limesurvey?
public function beforeSurveySettings() { $event = $this->getEvent(); $event->set("surveysettings.{$this->id}", array( 'name' => get_class($this), 'settings' => array( 'piwik_trackThisSurvey' => array( 'type' => 'select', 'options'=>array(0=>'No', 1=>'Yes'), 'default'=>$this->get('piwik_trackSurveyPages', null, null, false), //Default is whatever is set by the superadmin. 'label' => 'Collect web analytics data from respondents', 'current' => $this->get('piwik_trackThisSurvey', 'Survey', $event->get('survey')) ) ) )); }