Skip to content

AttributionWindow ​

Rasuvaeff\Yii3AbTesting\AttributionWindow

Class · rasuvaeff/yii3-ab-testing · Source

How long after an exposure a conversion still counts for it.

A report is meaningless without this bound: without a window, a conversion months later is credited to an experiment the subject no longer sees. The contract lives in the core so every reporting backend answers with the same rule; the query implementation lives in the analytics package.

Constants ​

DEFAULT_DAYS ​

php
DEFAULT_DAYS = 7

The value used when an application does not choose one.

Properties ​

PropertyTypeReadonlyDescription
secondsintyes

Methods ​

default() ​

php
static default(): self

ofDays() ​

php
static ofDays(int $days): self

ofSeconds() ​

php
static ofSeconds(int $seconds): self