Skip to content

Google Analytics character encoding issue ( \u0020 ) #13827

@bigbywolf-uk

Description

@bigbywolf-uk

Preconditions

  1. Magento 2.2.2.
  2. PHP 7.0

Steps to reproduce

  1. Set locale to en_GB
  2. Enable Google Analytics tracking on backend
  3. Purchase products on the frontend
  4. Login to Google Analytics
  5. Go to Conversions ->E-Commerce -> Overview

Expected result

  1. Product names showing up correctly

Actual result

  1. Spaces in product names get replaced by their HTML value: \u0020
    https://goo.gl/5EjjZx

Fix found in this error report:
#13350

Edit: /vendor/magento/module-google-analytics/Block/Ga.php
and replace every escapeJs with escapeJsQuote

Result:
https://goo.gl/mb1YU3

Metadata

Metadata

Assignees

No one assigned

    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 validGate 1 Passed. Automatic verification of issue format passedduplicate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions