GA Enhanced Ecommerce:在 Step 字段中使用字符串值而不是数值
GA Enhanced Ecommerce: using string value for the Step field instead of a numeric value
借助 Google Analytics Enhanced Ecommerce,我可以在 step
字段中使用 字符串值 来衡量 checkout process,而不是使用数字(整数)值?
像这样:
ga('ec:setAction','checkout', {
// Instead of: 'step': 1,
'step': 'login',
});
//
ga('ec:setAction','checkout', {
// Instead of: 'step': 2,
'step': 'shipping_method',
});
不,您不能使用字符串值。步骤必须是整数;但是,如果您想在结帐渠道中标记步骤名称,以便在结帐行为等报告中看到 'billing'、'payment' 或 'shipping address' 等步骤,则您可以在 GA 增强型电子商务配置页面中为您的步骤指定名称。阅读此处的第 7 步,https://support.google.com/analytics/answer/6032539?hl=en。
借助 Google Analytics Enhanced Ecommerce,我可以在 step
字段中使用 字符串值 来衡量 checkout process,而不是使用数字(整数)值?
像这样:
ga('ec:setAction','checkout', {
// Instead of: 'step': 1,
'step': 'login',
});
//
ga('ec:setAction','checkout', {
// Instead of: 'step': 2,
'step': 'shipping_method',
});
不,您不能使用字符串值。步骤必须是整数;但是,如果您想在结帐渠道中标记步骤名称,以便在结帐行为等报告中看到 'billing'、'payment' 或 'shipping address' 等步骤,则您可以在 GA 增强型电子商务配置页面中为您的步骤指定名称。阅读此处的第 7 步,https://support.google.com/analytics/answer/6032539?hl=en。