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

WordPress Trac noreply at wordpress.org
Sun Jun 18 21:05:38 UTC 2017

#40082: Pretty links for users when searching
 Reporter:  henry.wright  |       Owner:
     Type:  enhancement   |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Canonical     |     Version:  4.7.3
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
Changes (by lisota):

 * status:  new => closed
 * resolution:   => invalid


 This will break basic Google Analytics site search tracking on WordPress
 sites. Google Analytics looks for a query string with the search term, 's'
 or another one if you specify it.

 Changing the URL to a pretty permalink breaks this and requires additional
 coding workarounds to surface search terms in Google Analytics, which is a
 bad thing.

 Since this already works if someone wants to use /search/, I don't think
 there is anything to do here.

 Supporting Google Analytics site search tracking seems far more important
 than a "clean" URL for the vast majority of users, so the default should
 be left as is. I don't believe this change "improves" the project.

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

More information about the wp-trac mailing list