Angular and A / B testing

I need to add A / B testing functionality to a large application built with Angular 2 and bundled with Webpack.

Tools like VWO are not flexible enough for us.

Any online guides or tips?

Thanks.

+5
source share
1 answer

In case someone else comes up with the same question, I am launching a product to solve this problem. It works great with Angular2 / 4 or any other JavaScript framework.

Here is an example from docs . You can easily turn off jQuery DOM manipulation for a function that updates a variable bound to ng-if for use with Angular.

 var experiment = engauge.experiment({ name: 'signup-button', variants: { // This is the first variant. It should be your control. '#ff5722': { activate: function() { $('#signup-col').html('<button class="variant-1 signup-button">Try it Free</button>'); } }, // This is the second variant. '#9c27b0': { activate: function() { $('#signup-col').html('<button class="variant-2 signup-button">Try it Free</button>'); } } } }); 

The homepage is now at https://engaugeab.com , and if you check this post, I will give you access to the advanced free tier,

-1
source

Source: https://habr.com/ru/post/1259705/


All Articles