google / google/site-kit-wp

Change GA4 report dimension from `pagePath` to `pagePathPlusQueryString` if/when compatible.

Open
#6,424 5 comments 0 reactions 0 assignees View on GitHub
blocked upstream Module: Analytics Type: Enhancement
Dominant language
JavaScript
Stars
1.4k
Forks
383
Avg merge
4d 14h
Merged PRs (30d)
77

Description

## Feature Description

Following on from the change [here](https://github.com/google/site-kit-wp/pull/6422) to switch from `pagePathPlusQueryString` to `pagePath` (see the PR description for details), if/when `pagePathPlusQueryString` is made more compatible and supports the various metrics/dimensions that we need to combine it with, we should revert to `pagePathPlusQueryString` in order to better support sites which don't use pretty permalinks.

Note that we might want to switch to `pagePathPlusQueryString` only for sites which are not using pretty permalinks, and keep using `pagePath` for permalink-enabled sites, as `pagePath` would prevent unrelated query params from impacting the per-page report filtering.

---------------

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

## Acceptance criteria

*

## Implementation Brief

*

### Test Coverage

*

## QA Brief

*

## Changelog entry

*

Contributor guide

Open the contributing guide

Research direction

Start by reading PR 6422 and its description to understand the current switch from pagePathPlusQueryString to pagePath. Investigate whether GA4 now supports pagePathPlusQueryString with the required metrics and dimensions, including the pretty-permalink distinction. Done means selecting a compatible dimension and validating the affected per-page reports.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
analytics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.