Permalink
Browse files

Fixes #4786 Adding ebook formats to piwik.js download tracking and lo…

…g importer
  • Loading branch information...
1 parent ef05c6c commit df72733fe1ee6ee3d518d59984a7b49f0da04a0b @mattab mattab committed Mar 4, 2014
Showing with 3 additions and 2 deletions.
  1. +1 −1 js/piwik.js
  2. +1 −0 misc/log-analytics/import_logs.py
  3. +1 −1 piwik.js
View
@@ -1094,7 +1094,7 @@ if (typeof Piwik !== 'object') {
configTitle = documentAlias.title,
// Extensions to be treated as download links
- configDownloadExtensions = '7z|aac|apk|ar[cj]|as[fx]|avi|bin|csv|deb|dmg|docx?|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|ms[ip]|od[bfgpst]|og[gv]|pdf|phps|png|pptx?|qtm?|ra[mr]?|rpm|sea|sit|tar|t?bz2?|tgz|torrent|txt|wav|wm[av]|wpd||xlsx?|xml|z|zip',
+ configDownloadExtensions = '7z|aac|apk|ar[cj]|as[fx]|avi|azw3|bin|csv|deb|dmg|docx?|epub|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mobi|mp(2|3|4|e?g)|mov(ie)?|ms[ip]|od[bfgpst]|og[gv]|pdf|phps|png|pptx?|qtm?|ra[mr]?|rpm|sea|sit|tar|t?bz2?|tgz|torrent|txt|wav|wm[av]|wpd||xlsx?|xml|z|zip',
// Hosts or alias(es) to not treat as outlinks
configHostsAlias = [domainAlias],
@@ -63,6 +63,7 @@
'jar mpg mp2 mp3 mp4 mpeg mov movie msi msp odb odf odg odp '
'ods odt ogg ogv pdf phps ppt qt qtm ra ram rar rpm sea sit tar tbz '
'bz2 tbz tgz torrent txt wav wma wmv wpd xls xml xsd z zip'
+ 'azw3 epub mobi'
).split()
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit df72733

Please sign in to comment.