ACSD-48634: JS errors when Google Analytics Content Experiments enabled
The ACSD-48634 patch fixes JS errors on a staging update page when Google Analytics Content Experiments is enabled. This patch is available when the Quality Patches Tool (QPT) 1.1.27 is installed. The patch ID is ACSD-48634. Please note that the issue was fixed in Adobe Commerce 2.4.7.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.5
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.3.7 - 2.4.6
magento/quality-patches
package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
JS errors occur on a staging update page when Google Analytics Content Experiments is enabled.
Steps to reproduce:
-
In Admin > Stores > All Stores, create an additional website, store, and Store View. Make sure the Store View is Enabled.
-
Configure Configure Google Analytics by going to Stores > Settings > Configuration > Sales > Google API:
-
For Main and additional websites scope:
- Enabled: Yes
- Account type: Google Tag Manager
- Anonymize IP: Yes
- Enable Content Experiments: Yes
- Container Id: (GTM container ID)
- Uncheck Use Default for other fields, but do not change them.
-
For Default Config scope:
- Enabled: Yes
- Account type: Universal Analytics
- Account Number: (Universal Analytics account number)
- Anonymize IP: Yes
- Enable Content Experiments: Yes
-
-
Disable Configure Google Analytics on Default Config scope by changing Enable from Yes to No. Make sure not to change anything else!
-
Go to Catalog > Categories.
-
Create and Edit any category and add a scheduled update for it:
- Any name, start date in the future, end date in the future, and any change in category (For Example: disable category).
-
Save the update and check the browser developer console for errors.
Expected results:
No JS errors and the changes to the staging update are saved successfully.
Actual results:
JS errors are visible in the console, the form is malformed, and the spinner never gets disabled after the save.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool released: a new tool to self-serve quality patches in the support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in the Quality Patches Tool guide.
For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.