Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
Hi Magnus,
In EPiServer.LogService.exe.Config file, there is a key <EPnPublishedPagesMaxCount and default value is set to 5.
Try changing that value to whatever number you required
<EPnPublishedPagesMaxCount>5</EPnPublishedPagesMaxCount>
Doest it help?
No, changing that value does not change anything, it still only reports 5. I have changed the value, restarted the service and browsed many pages on the site.
You might get luckier with the setting "EPnMostVissitPagesMaxCount" instead.
And yes, it really spells Visit with 2 's' :-)
If left out, it will default to 5
/johan
Thanks Johan! I just found it using Reflector too, it was not in the example file.
Next issue: I'm trying to gather results from a subtree of the site (otherwise the start page will probably always be the top hit page), and I use ITransformer.CreateUrl to construct the argument for the GetMaxHits method from a PageReference. I get hits in all cases, but I get the same hits or at least I get the start page even though I'm searching nodes below the start page. Am I doing something wrong or can't this be done?
Edit:
I unleashed reflector on the class and it seems the statistics are only per-site... I suppose I should find another way to exclude some nodes from the statistics, I suppose I could selectively output the log generator in the pages for example?
I am using the statistics log to get the most hit pages, but I can only seem to get the five top pages. I use CMS 5 R2 SP2 and the code to get the dataset with the page id:s looks like this:
RealTimeAnalyzerView client = new RealTimeAnalyzerView();ITransformer transformer = (ITransformer)EPiServer.BaseLibrary.ClassFactory.CreateInstance(typeof(ITransformer), new object[0]);DataSet data = client.GetMaxHits(transformer.CreateURL(PageReference.StartPage))