如何从控制台获取活动 Google 优化测试中的备选方案名称?
How can I get the name of the alternative in an active Google Optimize test from the console?
如何从控制台获取活动 Google 优化测试中备选方案的名称?
我需要它来进行多个变体的 SessionCam 录制。
我尝试在测试中设置 public 个变量,但无法像在 Adobe Target 中那样编辑原始变体。
似乎没有关于在活动 Google 优化测试中获取备选名称的文档,但是 SessionCam 可以通过插入此 "BETA" 代码段的测试备选进行过滤:
<script type="text/javascript">
if(!window.sessioncamConfiguration)
window.sessioncamConfiguration = new Object();
if(!window.sessioncamConfiguration.customDataObjects)
window.sessioncamConfiguration.customDataObjects = [];
var item = { key: "GoogleOptimise", value: "testName" };
window.sessioncamConfiguration.customDataObjects.push(item);
</script>
然后可以在 SessionCam 中使用具有过滤器读数 "Field Value" for "GoogleOptimise" 的 Segment 进行过滤 "Entered"。
如何从控制台获取活动 Google 优化测试中备选方案的名称?
我需要它来进行多个变体的 SessionCam 录制。
我尝试在测试中设置 public 个变量,但无法像在 Adobe Target 中那样编辑原始变体。
似乎没有关于在活动 Google 优化测试中获取备选名称的文档,但是 SessionCam 可以通过插入此 "BETA" 代码段的测试备选进行过滤:
<script type="text/javascript">
if(!window.sessioncamConfiguration)
window.sessioncamConfiguration = new Object();
if(!window.sessioncamConfiguration.customDataObjects)
window.sessioncamConfiguration.customDataObjects = [];
var item = { key: "GoogleOptimise", value: "testName" };
window.sessioncamConfiguration.customDataObjects.push(item);
</script>
然后可以在 SessionCam 中使用具有过滤器读数 "Field Value" for "GoogleOptimise" 的 Segment 进行过滤 "Entered"。