Skip to content

Magento 2.2 Encoding Issue -> Google Analytics #13350

@danielpfarmer

Description

@danielpfarmer

With the Magento 2.2 update we are now seeing incorrect data in Google Analytics.

Steps to reproduce

  1. Complete a sale on Magento 2.2
  2. View Sale in Google Analytics
  3. Observe the Product Titles are incorrect

Expected result

  1. The product titles are transferred from Magento correctly

Actual result

  1. The product titles are incorrect

image

Potential Fix

This has been introduced in Magento 2.2 with changes to the Magento\Framework\Escaper

In the file Magento\GoogleAnalytics\Block\Ga

Replace all instances of

escapeJs

with

escapeJsQuote

After making this change the data coming into GA is now correct for our store.

Metadata

Metadata

Assignees

Labels

Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions