Skip to content

Plugin version attribution missing in internal event tracking #11802

@aaemnnosttv

Description

@aaemnnosttv

Bug Description

The plugin version is missing in the plugin's internal event tracking since 1.163.0. This coincides with several major upgrades that happened between this and the previous release, primarily around Node and Webpack.

Steps to reproduce

  1. Enable tracking in Admin settings or from splash page
  2. Inspect session with Tag Assistant
  3. Load a Site Kit screen (e.g. dashboard)
  4. See missing plugin_version parameter in Tag Assistant

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • The current plugin version should always be present in all internal events as the Event Parameter plugin_version

Implementation Brief

  • In assets/js/util/tracking/index.js:

Test Coverage

  • Add an E2E test that does the following:
    • Turns on tracking.
    • Inspects the config property of window._googlesitekitDataLayer and verifies that the necessary configuration is set, including at least the plugin_version and if time permits, the other configs as set here.

QA Brief

  • Use the steps to reproduce mentioned in the issue description.
  • Verify that the plugin_version is present and correctly set in the event payload.

Changelog entry

  • Fix internal event tracking to include plugin version information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0High priorityTeam MIssues for Squad 2Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions