[wp-trac] [WordPress Trac] #40082: Pretty links for users when searching

WordPress Trac noreply at wordpress.org
Mon Jun 19 12:06:19 UTC 2017


#40082: Pretty links for users when searching
--------------------------+------------------------------
 Reporter:  henry.wright  |       Owner:
     Type:  enhancement   |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Canonical     |     Version:  4.7.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by Cybr):

 Analytics plugins can simply expand their script when users are reaching
 search pages (Option 2):
 https://support.google.com/analytics/answer/1012264?hl=en#Post

 > **Option 2:** Customize the tracking code on your results page to
 dynamically specify a virtual page path that includes the query keywords.
 The tracking code on the results page would look something like:
 >
 > `analytics.js: ga('send', 'pageview', '/search_results.php?q=keyword');`

 In WordPress' case:

 `analytics.js: ga('send', 'pageview', '/search/keyword/?s=keyword');`

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40082#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list