Hi, the goodwebpractices.com script (gatag.js) that you mentioned is the same one that I referenced. The script doesn't currently work with JoomDOC downloads because it is looking for file extensions (for example: .pdf, .doc) which JoomDOC does not display.
Normally a link generated by JoomDOC to download a file implemented by JoomDOC would appear in the following fashion as a Real URL:
index.php?option=com_joomdoc&Itemid=474&gid=4&lang=&task=doc_download
Someone suggested modifying the gatag.js script so that it looks for the term "doc_download" (which appears in the JoomDOC generated links) instead of file extensions.
Replacing:
var isDoc = path.match(/\.(?:doc|eps|jpg|png|svg|xls|ppt|pdf|xls|zip|txt|vsd|vxd|js|css|rar|exe|wma|mov|avi|wmv|mp3)($|\&|\?)/);
with:
var isDoc = path.match(/doc_download/);
But that didn't appear to work as the relevant info still did not show up in Google Analtyics.
If Artio added an additional Filter field in the Download Logs area or even support multiple terms in the existing single Filter field, that would make the logs even more helpful. For example, filtering the log results by: August 2010, datasheet. Of course, sites with a large quantity of downloadable files will still require a lot of manual work for better document analytics, but it would be a start.
Another possibility to try may be to manually add in the appropriate file extension to SEF URL links generated by a Joomla extension which makes JoomDOC real URLs appear as SEF links publicly. Perhaps the gatag.js script can then detect the download files.
Regards,
Frank