Developer Resources

A comprehensive list of filters and actions included in our plugin

Hooks / nab_{$experiment_type}_should_trigger_page_view

apply_filters( “nab_{$experiment_type}_should_trigger_page_view”, boolean $should_trigger_page_view, array $alternative, array $control, int $experiment_id, string $alternative_id )

Whether the given experiment should trigger a page view in the current page/alternative combination.

Parameters

$should_trigger_page_view boolean

(Required) whether the given experiment should trigger a page view. Default: false.

$alternative array

(Required) the current alternative.

$control array

(Required) original version.

$experiment_id int

(Required) id of the experiment.

$alternative_id string

(Required) id of the current alternative.