PHPackages                             svewap/abtest2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. svewap/abtest2

ActiveTypo3-cms-extension

svewap/abtest2
==============

v1.0.0(8y ago)394[1 PRs](https://github.com/svewap/abtest2/pulls)PHP

Since Dec 25Pushed 3y ago6 watchersCompare

[ Source](https://github.com/svewap/abtest2)[ Packagist](https://packagist.org/packages/svewap/abtest2)[ RSS](/packages/svewap-abtest2/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

abtest2 TYPO3 Extension
=======================

[](#abtest2-typo3-extension)

Extension for A/B-Tests

This extension supports TYPO3 administrators in performing A/B tests. This is useful when a site owner want to measure whether a new version improves or reduces user interaction compared to the current version.

### Features of the extension

[](#features-of-the-extension)

1. Caching of each page version
2. A real 50/50% chance. That means: No selection by random, because of the unreliable random method. So the versions are always taken alternately.
3. Complete different content with same page id. So only one URL for two versions. The displayed version is determined by the cookie value.

#### More information

[](#more-information)

Page properties get a new field "B Page" where you can provide the alternative page version. If the page is requested by the user, the extension checks wheter there is a B version specified. If this is the case, the version is selected by "random". A cookie is set that remembers which version the user got (so there is no flip-flop if the user requests the page repeatedly). Once the cookie expires, the user is back to random at the next request.

Additional header information may be specified both for the original version as well as for the B version. This allows to track version differences in a web analysis tool such as Analytics.

#### Demo

[](#demo)

[![Demo](https://raw.githubusercontent.com/svewap/abtest2/master/Documentation/Images/demo.gif)](https://raw.githubusercontent.com/svewap/abtest2/master/Documentation/Images/demo.gif)

#### Example for Google Tag Manager:

[](#example-for-google-tag-manager)

You have two options to define the parameter: By page settings or by TypoScript:

##### Additional Header Information at page settings

[](#additional-header-information-at-page-settings)

On original page (version A):

```

dataLayer.push({'variant': 'a'});

```

On version B:

```

dataLayer.push({'variant': 'b'});

```

##### TypoScript

[](#typoscript)

```
[globalVar = GP:abtest = a]
  page.headerData.129 = TEXT
  page.headerData.129.value (

  dataLayer = [{
    'variant': 'a'
  }];

  )
[global]
[globalVar = GP:abtest = b]
  page.headerData.129 = TEXT
  page.headerData.129.value (

  dataLayer = [{
    'variant': 'b'
  }];

  )
[global]

page.headerData.130 = TEXT
page.headerData.130.value (

....

)

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3109d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a944bb90af783b13d74049f2d8adcff598f4e7cb0aad9d7040a6af0bb8c23984?d=identicon)[svewap](/maintainers/svewap)

---

Top Contributors

[![CarlosAgrelis](https://avatars.githubusercontent.com/u/22834317?v=4)](https://github.com/CarlosAgrelis "CarlosAgrelis (3 commits)")

---

Tags

typo3typo3-cms-extensiontypo3-extension

### Embed Badge

![Health badge](/badges/svewap-abtest2/health.svg)

```
[![Health](https://phpackages.com/badges/svewap-abtest2/health.svg)](https://phpackages.com/packages/svewap-abtest2)
```

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k45](/packages/friendsoftypo3-content-blocks)[wazum/sluggi

TYPO3 extension for URL slug management with inline editing, auto-sync, locking, access control, and redirects

41515.2k](/packages/wazum-sluggi)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

611.0M6](/packages/netresearch-rte-ckeditor-image)[praetorius/vite-asset-collector

Use AssetCollector to embed frontend assets generated by vite

54299.7k1](/packages/praetorius-vite-asset-collector)[pagemachine/typo3-formlog

Form log for TYPO3

23233.9k8](/packages/pagemachine-typo3-formlog)[b13/assetcollector

Asset collector - Add CSS and SVG files and strings as inline style tag/inline svg to the html code.

10123.2k](/packages/b13-assetcollector)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
