[wp-meta] [Making WordPress.org] #5157: Update URL on search actions
Making WordPress.org
noreply at wordpress.org
Fri Apr 17 10:47:40 UTC 2020
#5157: Update URL on search actions
----------------------------+---------------------
Reporter: jonoaldersonwp | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone:
Component: General | Resolution:
Keywords: analytics |
----------------------------+---------------------
Description changed by jonoaldersonwp:
Old description:
> Our site search tracking is currently severely limited due to the way in
> which the search has been implemented. Whilst there are some workarounds
> we can utilise in Google Tag Manager, we need to make some minor
> alterations to the functionality in order close some gaps.
>
> On a generic search results page like https://wordpress.org/search/cats,
> the URL should be updated (via the history API) when the query is altered
> and the form submitted, or when the category of results is altered (e.g.,
> selecting "Support Docs").
>
> E.g., changing the value of 'cats' to 'dogs' and either clicking the
> 'submit' button or pressing enter should alter the URL to
> https://wordpress.org/search/dogs.
>
> Additionally, the (lowercased) text value of the 'category' label should
> be appended to the URL via a `search_category` parameter (replacing
> spaces with underscores). E.g.:
>
> https://wordpress.org/search/dogs?search_category=all
> https://wordpress.org/search/dogs?search_category=support_forums
> https://wordpress.org/search/dogs?search_category=support_docs
> https://wordpress.org/search/dogs?search_category=developer_documentation
>
> Note that none of this applies to plugin/theme search templates, which
> work differently.
New description:
Our site search tracking is currently severely limited due to the way in
which the search has been implemented. Whilst there are some workarounds
we can utilise in Google Tag Manager, we need to make some minor
alterations to the functionality in order close some gaps.
On a generic search results page like https://wordpress.org/search/cats,
the URL should be updated (via the history API) when the query is altered
and the form submitted.
E.g., changing the value of 'cats' to 'dogs' and either clicking the
'submit' button or pressing enter should alter the URL to
https://wordpress.org/search/dogs.
Additionally, the (lowercased) text value of the 'category' label should
be appended to the URL via a `search_category` parameter (replacing spaces
with underscores) when the category of results is altered (e.g., selecting
"Support Docs"). E.g.:
https://wordpress.org/search/dogs?search_category=all
https://wordpress.org/search/dogs?search_category=support_forums
https://wordpress.org/search/dogs?search_category=support_docs
https://wordpress.org/search/dogs?search_category=developer_documentation
Note that none of this applies to plugin/theme search templates, which
work differently.
--
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/5157#comment:4>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list