Changes between Version 3 and Version 4 of Ticket #5157
- Timestamp:
- 04/17/2020 10:47:40 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5157 – Description
v3 v4 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 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").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. 4 4 5 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 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.: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) when the category of results is altered (e.g., selecting "Support Docs"). E.g.: 8 8 9 9 https://wordpress.org/search/dogs?search_category=all