Changes between Initial Version and Version 1 of Ticket #5157
- Timestamp:
- 04/17/2020 10:14:29 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5157 – Description
initial v1 1 1 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. 2 2 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. 3 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. 5 4 6 5 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. 6 7 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.: 8 9 https://wordpress.org/search/dogs?search_category=all 10 https://wordpress.org/search/dogs?search_category=support_forums 11 https://wordpress.org/search/dogs?search_category=support_docs 12 https://wordpress.org/search/dogs?search_category=developer_documentation 13 14 Note that none of this applies to plugin/theme search templates, which work differently.