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

modify piwik.js #1720

Closed
anonymous-matomo-user opened this issue Sep 22, 2010 · 4 comments
Closed

modify piwik.js #1720

anonymous-matomo-user opened this issue Sep 22, 2010 · 4 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@anonymous-matomo-user
Copy link

Hi all,
is it possible modify the file piwik.js for register in the DB the vaule of "title" istead of the value of "href" for the html A tag with class = "download" ?
If in the site there are download link like "download.php?id=41" instead of "file.zip" it's hard to understand what file has been downloaded...:)
I tried to modify the file, but I think that it's offuscated...there are var names strange.
Thank you

@robocoder
Copy link
Contributor

You don't have to modify piwik.js.

Use: .trackLink( 'value_of_title', 'download' )

@anonymous-matomo-user
Copy link
Author

I used the page Javascript Tracking to help me, and now "works".
Just, if I have two kind of download in the same page and if I should save both title and url, with that function I cannot! I call that function from onclick, how i red in the mailing list.

PS: forum doesn't work.

@robocoder
Copy link
Contributor

That sounds like a bug in your click handler. Use lookup table to map between the name of the download and the title you want to use.

Yes, the forum is temporarily offline.

@anonymous-matomo-user
Copy link
Author

I don't understand what I have to do...
I will wait to reopen the forum and I will ask over there... I tried to modify some file Actions but nothing and in the folder Action there aren't template to modify

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 1.1 milestone Jul 8, 2014
@mattab mattab added the wontfix label Aug 3, 2014
This issue was closed.
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. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

3 participants