Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering Search Console keywords #4077

Merged
merged 17 commits into from May 14, 2024
Merged

Filtering Search Console keywords #4077

merged 17 commits into from May 14, 2024

Conversation

ukutaht
Copy link
Contributor

@ukutaht ukutaht commented May 7, 2024

Changes

Fixes and expands the capability to filter Search Console keywords with our integration.

I saw @macobo removing some code that was not functional in #4068. However, this code is worth fixing because it's not that complicated while being a highly requested feature.

I was able to fix the feature and improve the following:

  • All page filter types are supported (is, member, matches, matches_member)
  • Alias event:page and visit:entry_page filters for the purpose of keyword data
  • Filter Search Console data by device
  • Filter Search Console data by country
  • Show a message to the user if the set of filters cannot be requested from Search Console (currently we just show unfiltered dataset which can be misleading)

Demo (In which I find a typo that has since been fixed)

EDIT: Since recording this @aerosol and I have also added impression, CTR and position data to the keyword modal

Search.Console.Demo.mp4

Tests

  • Automated tests have been added

Changelog

  • Entry has been added to changelog

Documentation

  • Docs do not need to be changed

Dark mode

  • This PR does not change the UI

@ukutaht ukutaht changed the title WIP Filtering Search Console keywords May 7, 2024
@ukutaht ukutaht marked this pull request as ready for review May 9, 2024 09:10
@ukutaht ukutaht requested review from macobo and a team May 9, 2024 09:10
lib/plausible/google/api.ex Outdated Show resolved Hide resolved
{:ok, access_token} <- maybe_refresh_token(site.google_auth),
{:ok, search_console_filters} <-
SearchConsole.Filters.transform(site.google_auth.property, filters),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is going to cause an annoying conflict with #4082. I propose we merge this before that PR since I have an idea on how to fix it.

lib/plausible/google/http.ex Outdated Show resolved Hide resolved
@ukutaht ukutaht merged commit 06e8118 into master May 14, 2024
9 checks passed
@ukutaht ukutaht deleted the search-console-filtering branch May 14, 2024 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants