I'm tracking stats for a website made with Liferay that publishes attachments stored in Alfresco, using some java portlet.
As a result, the download urls are very long, with many query parameters. I'd like to give them a readable title in the Piwik stat pages (the actual file name, with or without extension) while keeping the actual long url intact.
I have tried setting the document title by adding
action_name in a
setCustomRequestProcessing function, but Piwik apparently ignores it.
Is there a way to set a readable title for a download url?
Hi @tobia yes you can use
setCustomUrl to overwrite the URL for a file download or URL outlink click.
@mattab I can use
setCustomUrl to overwrite the URL, but how do I use it to set the title?
As I said, I'd like to give the download links a readable title in the Piwik stat pages, while keeping the actual long url intact.
Downlaods and Outlinks don't support "Action name" so far, you can only track the URL for those actions.
So can we get this issue re-opened? It's quite important to be able to set an Action name for downloads. Understandably, users have trouble dealing with reports full of http://mysite.com/dl/61cf69f2-1388-4b36-82c4-04fcf5757e6e that only when clicked generate a file with a sensible name.