Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add official antiflicker for the A / B tests #19937

Closed
nicoco59 opened this issue Nov 2, 2022 · 1 comment
Closed

Add official antiflicker for the A / B tests #19937

nicoco59 opened this issue Nov 2, 2022 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@nicoco59
Copy link

nicoco59 commented Nov 2, 2022

Hi,

It would be great if you could add an anti-flicker like the one from Optimize, for now when a visitor enters an A / B test he'll always see the variant A before being redirected to B.

<style>.async-hide { opacity: 0 !important} </style> <script>(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date; h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')}; (a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c; })(window,document.documentElement,'async-hide','dataLayer',4000, {'MATOMO_CONTAINER_ID':true});</script>

I'm trying this right now by replacing the MATOMO_CONTAINER_ID by my container id, and it seems to work.

In the doc it's written to sync the matomo js file, but as I'm using the container it's not recommended to sync the container as I have many tags in it and it'll slowdown the page.

@nicoco59 nicoco59 added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Nov 2, 2022
@sgiehl
Copy link
Member

sgiehl commented Nov 9, 2022

Hi there, Thank you for creating the issue. It seems the request is actually for our A/B Testing Premium Feature.
For suggestions or support on our premium plugins please contact shop at innocraft.com or ask in the Premium Features forum here: https://forum.matomo.org/c/premium-features
We are only handling issue for Matomo core here.

@sgiehl sgiehl closed this as completed Nov 9, 2022
@elabuwa elabuwa added the answered For when a question was asked and we referred to forum or answered it. label Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

3 participants