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.

Description

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.

Source

File: public/helpers/class-nelio-ab-testing-tracking.php

Changelog

Changelog
VersionDescription
5.0.0Introduced.