Episerver Find: Enable automatic tracking not working

Vote:
 

Hi,

I use demo Service and i enable automatic tracking by call Track() on the search query like bellow

contentResult =
                    search.Track().GetResult(hitSpecification, filterForPublicSearch);

And then i perform search several time followed by i goto Find-> Manager->Statistics

I don't know why i can't see any Search phrase.

Can anyone tried it before please help me?

Regards,

Thang Le

#217119
Feb 17, 2020 11:52
Vote:
 

One thing that might cause this is when DNT is enabled in your browser, you can tell Find to ignore DNT in the config

#217124
Feb 17, 2020 13:46
Vote:
 

Have you make sure to include the Episerver js files (html.RequiredClientResources(RenderingTags.Header), Html.RequiredClientResources(RenderingTags.Footer))
It is explained here:
https://world.episerver.com/documentation/developer-guides/search-navigation/search-statistics/tracking/

Also, it is only working if you do unified search, if you do typed search then you need to do some work yourself, I wrote about it a while (wow, many years now) ago, hope this still work
https://world.episerver.com/blogs/Henrik-Fransas/Dates/2015/2/how-to-do-custom-query-and-click-tracking-with-episerver-find/

#217126
Feb 17, 2020 15:52
Vote:
 

Hi Henrik,

Thank for your answer. It work fine now

Regards,

Thao Pham

#217184
Feb 19, 2020 7:11
Vote:
 

Great to hear that it works! Happy coding!

#217207
Feb 19, 2020 11:00
* 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.