(cross-posting to ops@ as requested. This is in regards to an EventLogging schema[1] applied in javascript to track user behavior on pages they find via internal search to measure the quality of the search results[2][3]. )

The referrer would be nice to use, but we are trying to track more than just a single click away from Special:Search. We are trying to track all pages the user visits (for 10 minutes) by clicking from search results to one page and then another. The other difficulty here is we are trying to track only the pages the user clicked to coming from our search, and not a page they found by repeating their search on google and clicking through to Wikipedia.

Using the wprov[4] query parameter to declare the provenance as desktop search should avoid all the issues mentioned above. Varnish strips wprov so the varnish cache remains unfragmented. The javascript can pickup on the parameter and log the necessary events.

[1] https://meta.wikimedia.org/wiki/Schema:TestSearchSatisfaction2
[2] https://phabricator.wikimedia.org/T109482
[3] https://gerrit.wikimedia.org/r/#/c/232896/
[4] https://wikitech.wikimedia.org/wiki/Provenance

On Thu, Aug 27, 2015 at 3:10 AM, Giuseppe Lavagetto <glavagetto@wikimedia.org> wrote:
Hi all,

in determining where a user is coming from, the "referer" header would
be much more advisable in general, but maybe I'm losing the context
here.

Also, I think this thread should be x-posted to ops@ and/or relevant
tickets should be brought to our attention :)

Cheers

Joe

On Thu, Aug 27, 2015 at 9:13 AM, Federico Leva (Nemo)
<nemowiki@gmail.com> wrote:
> Max Semenik, 26/08/2015 22:30:
>>
>> It does that by appending fromsearch=1 to links for 0.5% of users.
>
>
> See also https://phabricator.wikimedia.org/T106594
>
>
> _______________________________________________
> Wikimedia-search mailing list
> Wikimedia-search@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikimedia-search

_______________________________________________
Wikimedia-search mailing list
Wikimedia-search@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikimedia-search