pfefferle / wordpress-open-search-document

Create an Open Search Document for your blog
https://wordpress.org/plugins/open-search-document/
Other
7 stars 2 forks source link

Ability to add referrer tags #3

Closed 2br-2b closed 2 years ago

2br-2b commented 2 years ago

Hi,

I just found this extension, and it is exactly what I needed! It works fantastically, and I wish more people used it!

It would be really helpful if I could add a referrer tag to the end of any Opensearch search (for example, https://codegito.xyz/?s=Email&mtm_campaign=opensearch)

pfefferle commented 2 years ago

Would a filter to extend the URL with query params be enough?

2br-2b commented 2 years ago

I think so, but I'm not completely sure what you mean by that.

Other note: it might be easier to change the url to it to https://codegito.xyz/?mtm_campaign=opensearch&s=Email rather than https://codegito.xyz/?s=Email&mtm_campaign=opensearch (flipping the order of the parameters).

pfefferle commented 2 years ago

See: https://github.com/pfefferle/wordpress-open-search-document#how-to-add-query-params-to-the-search-urls