简体   繁体   English

谷歌优化中的可视化编辑器

[英]visual editor in google optimise

My client wants to improve coupon usage in cart page which will act as a typeahead component. 我的客户希望改善购物车页面中的优惠券使用情况,该页面将充当预先组件。 He wanted to test with Google Optimise(A/B testing). 他想用Google Optimize(A / B测试)进行测试。

Current cart page: Just a coupon textbox and apply button. 当前购物车页面:只是优惠券文本框和应用按钮。

Variation: suggestion textbox(like typeahead) with the apply button. 变化:带有应用按钮的建议文本框(如typeahead)。

We have developed cart page with angularjs but my client wants to create variation page only with google optimize visual editor. 我们开发了带有angularjs的购物车页面,但我的客户只想使用google optimize visual editor创建变体页面。 How can I create typeahead using optimize editor without angularjs and how to bind a value to the textbox model? 如何使用不带angularjs的优化编辑器以及如何将值绑定到文本框模型来创建预先输入?

The best approach that i can see here is to make use of a redirect test described here: 我在这里看到的最好的方法是使用这里描述的重定向测试:

https://support.google.com/optimize/answer/6361119?hl=en https://support.google.com/optimize/answer/6361119?hl=en

If implemented correctly the URL of you variation should be something like this ?ver=2 如果正确实现,您的变体的URL应该是这样的?ver = 2

Now, In you angular code write a run block which will read the URL and set a flag ie depending on whether ver=2 is present or not set the flag to true or false. 现在,在你的角度代码中写一个运行块,它将读取URL并设置一个标志,即取决于是否存在ver = 2或不将标志设置为true或false。

Further in you cart page create a widget for the type-ahead coupon text-box. 此外,在您的购物车页面中,为预先输入优惠券文本框创建一个小部件。 If implemented correctly you should have 2 widgets to enter the coupon, the first should be the original and the second should be the one with type-ahead. 如果正确实施,您应该有两个小工具来输入优惠券,第一个应该是原始的,第二个应该是具有提前输入的小工具。

Lastly you need to hide/show the appropriate widget based on the flag created above. 最后,您需要根据上面创建的标志隐藏/显示相应的小部件。

Hope this points you in the right direction, Cheers! 希望这能指出你正确的方向,干杯!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM