Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add document title to downloads #6877

Open
tobia opened this issue Dec 18, 2014 · 4 comments
Open

Cannot add document title to downloads #6877

tobia opened this issue Dec 18, 2014 · 4 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@tobia
Copy link

tobia commented Dec 18, 2014

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?

@mattab
Copy link
Member

mattab commented Jan 6, 2015

Hi @tobia yes you can use setCustomUrl to overwrite the URL for a file download or URL outlink click.

@mattab mattab closed this as completed Jan 6, 2015
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Jan 6, 2015
@tobia
Copy link
Author

tobia commented Jan 10, 2015

@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.

@mattab
Copy link
Member

mattab commented Jan 12, 2015

Downlaods and Outlinks don't support "Action name" so far, you can only track the URL for those actions.

@tobia
Copy link
Author

tobia commented Feb 21, 2015

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.

@mattab mattab reopened this Feb 23, 2015
@mattab mattab added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. and removed answered For when a question was asked and we referred to forum or answered it. labels Feb 23, 2015
@mattab mattab added this to the Long term milestone Feb 23, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 23, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

2 participants