I've started some testing with the hit count listing and associated triggers. I'm curious as to the mechanism by which it works. Is there a separate table in the DB where the hits are recorded?
It seems there are (at least) two occassions when hits are not recorded:
When the content is coming for a cache (which makes sense)
When the content is a static file - or at least when the content is a static file coming from an alternative static URL (which again makes sense).
Is this assessment correct? If so, is there a way to work around this?
We want to build a list of the most accessed assets in a particular part of the site (for users not analytics).
When the content is a static file - or at least when the content is a static file coming from an alternative static URL (which again makes sense).
[/quote]
Set "allow unrestricted" to no so that Matrix will serve the files rather than Apache. This will let you trigger hit counts for these file assets.
We do this on puc.edu for about 50 files and don't see any speed issues. But, if you are doing it for your entire site it might not be a goo idea to have Matrix host each file.
Michael - We've pretty much decided to just have a static list which we will manually update based on the results from GA. I did consider writing an external script that would pull the data from GA then use Matrix web services to modify the list but it seems like massive overkill.