addCustomQuery( 'GravityForms', "SELECT id, title FROM %sgf_form ORDER BY date_updated, date_created DESC", function ($item) { return [ 'ID' => $item->id, 'post_title' => $item->title, ]; } ); } public function addGoalType($types) { array_push( $types, [ 'name' => 'GravityForms', 'label' => 'Gravity Forms', '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) { $formId = $entry['form_id']; $abTestTracking = new ABTestTracking(); $abTestTracking->trackPostId($formId, 'GravityForms'); } }