No tracking in unified search result

Vote:
 

I'm trying to enable statistics and tracking for my Episerver Find queries. The only thing I've done is adding .Track() in the query - for example, SearchClient.Instance.UnifiedSearchFor(query, Language.Swedish).Filter(x => ...).Track().GetResult(). My expectation is that the property Url of UnifiedSearchHit<> would contain tracking query parameters, but it looks (for example) like this: http://localhost:1337/se/support.

What did I miss?

#214664
Edited, Jan 10, 2020 17:21
Vote:
 

Hi,

Have you tried this?

SearchClient.Instance.UnifiedSearchFor(searchQuery).Track().GetResult()
#214666
Jan 10, 2020 19:03
Vote:
 
#214667
Jan 10, 2020 20:10
Vote:
 

@Ravindra - I don't see why that would change anything. @Henrik - At that point I had not added it, but it would be really wierd if the Find query result would depend on something in a layout file.

Anyway - I did both your suggested changes and it worked. Then I removed them. Still worked. So now I have changed nothing and it somehow works. Seems stable...

#215742
Jan 12, 2020 19:17
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.