Skip to content

Filtering Search Console keywords - #4077

Merged
ukutaht merged 17 commits into
masterfrom
search-console-filtering
May 14, 2024
Merged

Filtering Search Console keywords#4077
ukutaht merged 17 commits into
masterfrom
search-console-filtering

Conversation

@ukutaht

@ukutaht ukutaht commented May 7, 2024

Copy link
Copy Markdown
Contributor

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 force-pushed the search-console-filtering branch from 2e193c4 to d689d60 Compare May 7, 2024 13:06
@ukutaht
ukutaht force-pushed the search-console-filtering branch from d689d60 to dc1ad1e Compare May 9, 2024 09:06
@ukutaht
ukutaht marked this pull request as ready for review May 9, 2024 09:10
@ukutaht
ukutaht requested review from a team and macobo May 9, 2024 09:10
Comment thread lib/plausible/google/api.ex Outdated
@ukutaht
ukutaht force-pushed the search-console-filtering branch from 2a27c62 to 022e110 Compare May 9, 2024 12:55
with {:ok, site} <- ensure_search_console_property(site),
{:ok, access_token} <- maybe_refresh_token(site.google_auth),
{:ok, search_console_filters} <-
SearchConsole.Filters.transform(site.google_auth.property, filters),

Copy link
Copy Markdown
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.

Comment thread lib/plausible/google/http.ex Outdated
@ukutaht
ukutaht merged commit 06e8118 into master May 14, 2024
@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.

3 participants