Skip to content

Gtag module assume GDPR compliance limiting analytics functionality #37685

Open
@sdouma

Description

@sdouma

Preconditions and environment

2.4.5
For whatever reason, someone decided to take the liberty to hardcode the gtag module setting anonymize_ip to true and adding in a developer_id. This is not the same functionality that UA which had configurations for these options. This is a defect not a feature request, GA is limited by default without functionality to fix it.

Steps to reproduce

Admin > Configuration > Sales > Google Api
Enable GA4 and enter a measurement ID

Expected result

Google Analytics works providing the same functionality as the UA module before it

Actual result

Code is added limiting the data sent, hard coding anonymize_ip, and setting a developer_id.

Additional information

vendor/magento/module-google-gtag/view/frontend/web/js/google-analytics.js

gtag('set', 'developer_id.dYjhlMD', true);
gtag('config', measurementId, { 'anonymize_ip': true });

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Analytics / ReportingComponent: OtherIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReported on 2.4.5Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions