2016-11-14 86 views
5

我需要將A/B測試功能添加到使用Angular 2構建的大型應用程序,並與Webpack捆綁在一起。角度和A/B測試

像VWO這樣的工具對我們來說不夠靈活。

任何在線指南或提示?

謝謝。

+0

不幸的是,在這裏,題目要求我們推薦或找到一本書,工具,軟件庫,教程或其他非現場資源。但是,您可能會發現更好的運氣[SoftwareRecs.SE](// softwarerecs.stackexchange.com/tour)。請記住閱讀[他們的問題要求](// softwarerecs.stackexchange.com/help/on-topic),因爲它們比本網站更嚴格。 – Kevin

+2

我想這個問題可能過於籠統,因而被誤解。我整天搜索了有關使用Webpack的Angular 2進行A/B測試的資源,但沒有運氣,所以我認爲在這裏有一個關於它的線索是很好的。 –

回答

-1

如果有人遇到同樣的問題,我會推出一款產品來解決這個問題。它適用於Angular2/4或任何其他JavaScript框架。

下面是docs的一個示例。您可以輕鬆地將jQuery DOM操作轉換爲更新綁定到ng-if以供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>'); 
      } 
     } 
    } 
}); 

主頁現升在https://engaugeab.com,如果你提到這篇文章我給你訪問到延伸的無級。

+0

感謝您的反饋!我更新了這個帖子以包含一個具體的例子。 –