Making WordPress.org

Changes between Initial Version and Version 1 of Ticket #5157


Ignore:
Timestamp:
04/17/2020 10:14:29 AM (5 years ago)
Author:
jonoaldersonwp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5157 – Description

    initial v1  
    11Our 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.
    22
    3 
    4 On a 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.
     3On 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.
    54
    65E.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.
     6
     7Additionally, 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.:
     8
     9https://wordpress.org/search/dogs?search_category=all
     10https://wordpress.org/search/dogs?search_category=support_forums
     11https://wordpress.org/search/dogs?search_category=support_docs
     12https://wordpress.org/search/dogs?search_category=developer_documentation
     13
     14Note that none of this applies to plugin/theme search templates, which work differently.