{"id":17781720,"url":"https://github.com/bastibuck/contao-ab-testing","last_synced_at":"2025-10-18T20:40:31.178Z","repository":{"id":56221341,"uuid":"95958605","full_name":"bastibuck/contao-ab-testing","owner":"bastibuck","description":"A/B testing with Contao Open Source CMS","archived":false,"fork":false,"pushed_at":"2020-11-19T19:17:46.000Z","size":708,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-19T04:18:09.511Z","etag":null,"topics":["ab-testing","analytics","contao","conversion","split-testing","visitor"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bastibuck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-01T10:52:03.000Z","updated_at":"2020-11-19T19:10:29.000Z","dependencies_parsed_at":"2022-08-15T15:00:26.028Z","dependency_job_id":null,"html_url":"https://github.com/bastibuck/contao-ab-testing","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastibuck%2Fcontao-ab-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastibuck%2Fcontao-ab-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastibuck%2Fcontao-ab-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastibuck%2Fcontao-ab-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bastibuck","download_url":"https://codeload.github.com/bastibuck/contao-ab-testing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801635,"owners_count":20350107,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ab-testing","analytics","contao","conversion","split-testing","visitor"],"created_at":"2024-10-27T04:41:30.783Z","updated_at":"2025-10-18T20:40:26.131Z","avatar_url":"https://github.com/bastibuck.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contao: A/B Testing\n\n[![Latest Stable Version](https://poser.pugx.org/bastibuck/contao-ab-testing/v/stable)](https://packagist.org/packages/bastibuck/contao-ab-testing)\n[![Total Downloads](https://poser.pugx.org/bastibuck/contao-ab-testing/downloads)](https://packagist.org/packages/bastibuck/contao-ab-testing)\n[![License](https://poser.pugx.org/bastibuck/contao-ab-testing/license)](https://packagist.org/packages/bastibuck/contao-ab-testing)\n\nThis extension provides a new page type to evenly split up visitor traffic between the selected test-pages. At the same time it makes sure that returning visitors will be shown the same page they have visited before.\n\nThis way A/B tests can be performed in Contao Open Source CMS.\n\n## Features\n\n- Select one or more pages to be tested\n- test pages are rendered within the the new page type so all versions have the same url\n- Set a cookie and its' expiring time to identify returning visitors\n- adds a new Content Element to set a Matomo Custom Variable easily\n\n## Notice\n\nThis extension **doesn't** provide analytics! To get insights on statistics of your visitors you will need to use an analytic software like Google Analytics, Matomo or similar.\n\n## How does the extension work?\n\n![A/B Testing visitor flow](../screens/AB-Test-Extension.jpg)\n\nThe visitor flow is visualized in the graphic above and shows how the extension works.\n\n1. Visitor **a** is the first visitor to our A/B test. The A/B test page checks which test-page was last visited by any visitor. Since visitor **a** is the first visitor there will be no result and **a** will be rendered the first of the test-pages **V0**.\n2. Visitor **b** is the second visitor. Checking which page was rendered before will now return the ID of test-page **V0**. Therefore visitor **b** will be given the second test-page **V1**.\n3. When visitor **c** visits our A/B test the check of the last visited page will return the ID of the second page **V1** since the last visitor was shown this one. Visitor **c** will therefore be rendered test-page **V0** again as **V1** was the last page in the test.\n4. Visitor **d** is a returning visitor. He visited the A/B test before and was given **V0**. By this time a cookie was saved on his device containing the value of the test-page he got to see. On the returning visit the A/B test checks if the cookie exists and if so gets its' value and renders the same page he has seen before. In this case this will also be **V0** although the next page to be visited would be **V1** again (if it wasn't a returning visitor). Additionally the last visited pge won't be saved in the case of returning visitors so the regular visitor order won't be messed up.\n5. Visitor **e** is a first time visitor, has no cookie with a page ID value and therefore triggers the check of the last visited page which returns the ID of page **V0** (visitor **c** was the last one to visit it). Therefore visitor **e** will be shown test-page **V1**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbastibuck%2Fcontao-ab-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbastibuck%2Fcontao-ab-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbastibuck%2Fcontao-ab-testing/lists"}