Advanced Configuration¶
This section covers advanced configuration options for BoastPress AB Testing, including the bucket rules system, version assignment modes, and cookie settings.
Bucket Rules System¶
The bucket rules system allows you to segment users and target specific variations to different user groups.
Creating and Managing Buckets¶
To create and manage buckets:
- Navigate to A/B Tests > Bucket Rules
- Click Add New Bucket
- Enter a name and description for the bucket
- Configure rules (see below)
- Set a priority (lower numbers = higher priority)
- Click Save Bucket
Understanding Rule Types¶
Bucket rules can be based on four types of conditions:
Query Parameters¶
Query parameters are values in the URL after the question mark (?
).
Example rule: - Field: Query - Key: utm_source
- Operator: Equals - Value: facebook
This rule matches users who arrive from a URL containing ?utm_source=facebook
.
Cookies¶
Cookie rules check for specific values in the user's browser cookies.
Example rule: - Field: Cookie - Key: returning_visitor
- Operator: Equals - Value: true
This rule matches users who have a cookie named returning_visitor
with the value true
.
HTTP Headers¶
HTTP header rules check values in the request headers.
Example rule: - Field: Header - Key: User-Agent
- Operator: Contains - Value: iPhone
This rule matches users browsing from an iPhone.
IP Ranges¶
IP range rules check if the user's IP address falls within a specified range.
Example rule: - Field: IP - Key: (leave empty) - Operator: (not applicable) - Value: 192.168.1.1-192.168.1.255
This rule matches users with IP addresses in the specified range.
Rule Operators¶
For query parameters, cookies, and headers, you can use these operators:
- Equals: Exact match (case-insensitive)
- Contains: Partial match (case-insensitive)
- Starts With: Value begins with the specified string
- Ends With: Value ends with the specified string
Setting Rule Priorities¶
When multiple buckets could match a user, the priority determines which one takes precedence:
- Lower numbers indicate higher priority
- Default priority is 10
- Buckets with the same priority are evaluated in the order they were created
Combining Multiple Rules¶
You can add multiple rules to a single bucket. When multiple rules are present:
- All rules must match for the bucket to be applied (AND logic)
Assigning Buckets to Test Versions¶
To assign a bucket to a test version:
- Edit the test version
- In the "Bucket Assignment" dropdown, select the bucket
- Save the version
Now, users who match the bucket's rules will see this version.
Version Assignment Modes¶
BoastPress AB Testing offers two methods for assigning users to test variations:
Random Assignment¶
In random assignment mode:
- Users are randomly assigned to variations
- Each variation has an equal chance of being shown
- Assignment is based on a hash of the user's session ID or cookie
To use random assignment:
- When creating or editing a test, select "Random" as the Version Assignment Mode
- Ensure each version has a unique name
- Set one version as the default
Bucket-Based Targeting¶
In bucket-based targeting:
- Create buckets with specific rules (as described above)
- Assign each version to a specific bucket
- When a user matches a bucket's rules, they see the corresponding version
- If a user doesn't match any bucket, they see the default version
To use bucket-based targeting:
- When creating or editing a test, select "Bucket-based" as the Version Assignment Mode
- Create buckets in A/B Tests > Bucket Rules
- Assign buckets to versions in the test edit page
- Set one version as the default for users who don't match any bucket
In the next section, we'll cover how to track and analyze the results of your A/B tests.