ACSD-48634:启用Google Analytics Content Experiments时出现JS错误

启用Google Analytics Content Experiments后,ACSD-48634修补程序修复了staging更新页面上的JS错误。 安装Quality Patches Tool (QPT) 1.1.27时,此修补程序可用。 修补程序ID为ACSD-48634。 请注意,Adobe Commerce 2.4.7中已修复此问题。

受影响的产品和版本

为Adobe Commerce版本创建了修补程序:

  • Adobe Commerce(所有部署方法) 2.4.5

与Adobe Commerce版本兼容:

  • Adobe Commerce(所有部署方法) 2.3.7 - 2.4.6
NOTE
该修补程序可能适用于具有新Quality Patches Tool发行版本的其他版本。 要检查修补程序是否与您的Adobe Commerce版本兼容,请将magento/quality-patches包更新到最新版本,并在Quality Patches Tool:搜索修补程序页面上检查兼容性。 使用修补程序ID作为搜索关键字来查找修补程序。

问题

启用Google Analytics Content Experiments后,staging更新页面上出现JS错误。

重现步骤

  1. 在​ Admin > Stores > All Stores ​中,创建其他网站、商店和​ Store View。 确保​ Store View ​为​ Enabled

  2. 通过转至​ Stores > Settings > Configuration > Sales > Google API ​配置​ Configure Google Analytics

    • 对于​ Main ​和其他网站scope:

      • EnabledYes
      • Account typeGoogle Tag Manager
      • Anonymize IPYes
      • Enable Content ExperimentsYes
      • Container Id(GTM container ID)
      • 其他字段的​ Uncheck Use Default,但不更改它们。
    • 对于​ Default Config scope:

      • EnabledYes
      • Account typeUniversal Analytics
      • Account Number(Universal Analytics account number)
      • Anonymize IPYes
      • Enable Content ExperimentsYes
  3. 通过将​ Enable ​从​ Yes ​更改为​ No,禁用​ Default Config scope上的​ Configure Google Analytics。 确保不更改其他任何内容!

  4. 转到​ Catalog > Categories

  5. 创建并编辑任何​ category ​并为其添加计划更新:

    • 任何名称、将来的开始日期、将来的结束日期以及​ category ​中的任何更改(For Example: disable category)。
  6. 保存更新并检查browser developer console是否有错误。

预期的结果

没有JS错误,对staging更新的更改已成功保存。

实际结果

控制台中显示JS个错误,表单格式不正确,保存后spinner从未被禁用。

应用修补程序

要应用单独的修补程序,请根据您的部署方法使用以下链接:

相关阅读

要了解有关Quality Patches Tool的更多信息,请参阅:

有关QPT中其他可用修补程序的信息,请参阅Quality Patches Tool指南中的Quality Patches Tool:搜索修补程序

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3