Hello Damon,
There is nothing built in currently to allow this.
However with the package installed you could in theory create a new method in a controller or WebAPI controller depending on how you see yourself implementing this, using the same/similar code I use to display the results in the section.
You can see the method in the WebAPI controller here for a pointer. This would give you most page views. You would need to modify the request for the date range you wish and to use the object to loop over the results in a partial razor view for your navigation or whatever you wish to do with these results in your front end of your site.
Can a list of most viewed page be retrieved using this package?
Hi,
can this package simply provide a list of most viewed pages so they can be built into a navigation menu?
Thanks,
Hello Damon,
There is nothing built in currently to allow this.
However with the package installed you could in theory create a new method in a controller or WebAPI controller depending on how you see yourself implementing this, using the same/similar code I use to display the results in the section.
https://github.com/warrenbuckley/Analytics/blob/develop/Analytics/Controllers/AnalyticsApiController.cs#L96
You can see the method in the WebAPI controller here for a pointer. This would give you most page views. You would need to modify the request for the date range you wish and to use the object to loop over the results in a partial razor view for your navigation or whatever you wish to do with these results in your front end of your site.
is working on a reply...