'wpcf7_contact_form', 'label' => 'Contact Form 7', '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($form) { $formId = $form->id(); $abTestTracking = new ABTestTracking(); $abTestTracking->trackPostId($formId, 'wpcf7_contact_form'); } }