hi
We started using AB Testing and to be honest, we are quite frustrated about the really poor documentation on technical integration e.g. with PHP Library.
I describe you here our setup and requirements, as well what we have done so far.
Setup & Requirements
We are using Drupal (which is based on PHP).
For AB-Tests we will use two different URL’s.
We want to have a very easy setup for our marketer for AB Tests he defines. Easy setup means:
- For a new test it should not be required to add custom JS Code or whatever code in Website Pages
- IF it is still required, we need a very easy way where the marketer can enter custom code in drupal and it is loaded on the pages (we can implement it)
What we tried first: JS Setup
The problems:
1: with JS the original layout/page is always loaded first and sometimes get redirected to the next variant
The issue here is the user can see the original layout for a short time before redirecting, after doing some research we can solve this with css and js so the page is only displayed or visible after the page is redirected or loaded
→ Can you confirm this? Is there some documentation about hat?
2: When the test is defined for URL1 and URL2, then ULRS cannot be changed without a JS Code update.
This means: Each URL Change requires a JS Code update.
→ Is this correct?
3: Even when the distribution between two pages changes, e.g from 50/50 to 70/30 a JS Code update is needed?
→ Is this correct? Is there some documentation in which cases the JS Code must be updated?
4: When we exclude pages, add or remove variations or add a condition, or uncheck forward argument checkbox: Then always a JS Code update is needed?
→ Is this correct?
The alternative solution: Your PHP Library
Based on your documentation https://developer.matomo.org/guides/ab-tests/server we then decided to implement the PHP Library.
After 1.5 days implementation we found now out, that we must also define in Drupal for each test the following:
- AB Name / Experiment Name
- URL Page for AB Testing
- variations 1…n: name, redirect, allocation
And all this for each experiment.
It seems that all what is in Matomo defined ( and used in the JS variant) is ignored in the PHP LIbrary variant.
Is this true? There is no way to access experiemnts in Matomo from phplibrary and each experiment must be setup twice in Matomo and PHP?
thanks for your feedback