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

Outlink tracking, Download tracking plugin #5460

Closed
mattab opened this issue Jan 3, 2008 · 11 comments
Closed

Outlink tracking, Download tracking plugin #5460

mattab opened this issue Jan 3, 2008 · 11 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.

Comments

@mattab
Copy link
Member

mattab commented Jan 3, 2008

This plugins is heavily requested by the community (http://feedback.phpmyvisites.net/feedbacks/3135-external-link-clicks-statistics).
- Outlink tracking
– activation requires a flag in the javascript file + optional list of host alias for each site ID (so we don’t save clicks on internal Urls)
– detects automatically the external links via some JS magic and record these clicks
– display the list of out clicks as actions in the piwik interface
- Download tracking
– activation requires a flag in the JS file
– detects automatically the clicks on files (given a list of extensions in the JS file : zip, exe, doc, pdf, etc. )
– display the list of downloads as actions in the piwik interface

@anonymous-matomo-user
Copy link

I believe Download Tracking should be implemented server side. If outbound link tracking is enabled then you can process the URLs later for file extensions or custom mask,s such as ‘/download.php?file_id=’.

I believe I can have a prototype for outbound link tracking early in February.

@mattab
Copy link
Member Author

mattab commented Feb 18, 2008

Eli-D we want to add this feature on client side using automatic javascript link tracking.

@mattab
Copy link
Member Author

mattab commented Mar 11, 2008

(In 361) – deleting useless zend lib
- fix redirect bug in download/outlink tracking refs #5460

@mattab
Copy link
Member Author

mattab commented Mar 12, 2008

(In 366) – refs #5460: removed slash at the beginning of URL. Changed table output now output to datatable instead of dataTable_actions and also includes link to outlink

@zawadzinski
Copy link
Contributor

Attachment: latest piwik patch
[piwik.patch](http://issues.piwik.org/attachments/5460/piwik.patch)

@zawadzinski
Copy link
Contributor

patch submitted:

changed piwik.js so you can override/define in javascript code:

piwik_install_tracker = 1 | 0
piwik_tracker_pause = (time in ms)
piwik_download_extensions = "jpg|png … ";
piwik_hosts_alias = [ “hostname1.com”, “hostname2.com”, … ];
(window.location is added to this array)

you can specify link classes:

piwik_ignore – do not track this link
piwik_download – this link is download
piwik_link – this link is outlink (even if it is from this host/host aliases)

and solved the bug with:
- relative URLs
- tracking image links

(patch attached)

@mattab
Copy link
Member Author

mattab commented Mar 14, 2008

(In 371) – refs #5460 updated test cases, updated function to test if an url looks like an URL in order to support ftp:// news:// etc.

@mattab
Copy link
Member Author

mattab commented Mar 14, 2008

(In 374) – refs #5460 one more test

@mattab
Copy link
Member Author

mattab commented Mar 14, 2008

(In 375) – refs #5460 added test with link text being image

@anonymous-matomo-user
Copy link

(In 386) Commited some very good patch by Maciej Zawadzi?\197?\132ski :
-fix #5526, #112 : Admin index and menu
-fix #5508 : nice login screen
-fix #5525 : nice plugin admin management,
-fix #5460 : outlink/download tracking, solves bugs and adds some options

+Some code cleanup regarding new coding standard

@mattab
Copy link
Member Author

mattab commented Mar 28, 2008

(In 423) – changed default timeout to 500 refs #5460
- fix #5583 and added new test case
- added new configuration value Default date to load in piwik interface

@mattab mattab added this to the Future releases milestone Jul 8, 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. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

3 participants