addCustomQuery( 'Formidable', "SELECT id, name FROM %sfrm_forms ORDER BY created_at DESC", function ($item) { return [ 'ID' => $item->id, 'post_title' => $item->name, ]; } ); } public function addGoalType($types) { array_push( $types, [ 'name' => 'Formidable', 'label' => 'Formidable', 'itemName' => __('On submit of form'), 'help' => __('If the visitor submits this form it will add a point to the tested variant.') ] ); return $types; } public function catchFormSubmits($entry_id, $formId) { $abTestTracking = new ABTestTracking(); $abTestTracking->trackPostId($formId, 'Formidable'); } }