Making WordPress.org

Changes between Version 3 and Version 4 of Ticket #5157


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5157 – Description

    v3 v4  
    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 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").
     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.
    44
    55E.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.
    66
    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.:
     7Additionally, 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.:
    88
    99https://wordpress.org/search/dogs?search_category=all