You are here

README.txt in Track da files 7

Track da files module
------------------------
by Federiko_ from Koriolis, drupal.org/node/1142418


Description
-----------

Track da files module enables the possibility to track
how much visitors are viewing files on site.

Every link to a file can be configured to be tracked. 
A record is registered each time a visitor access the file
from this specific link. 

Configure file fields to be tracked in content interface, 
by selecting the corresponding display.

Links to be tracked can also be integrated in templates
or html source of contents, by customizing links. 

This module works with public and private file system. 


Features 
-----

- Diferents availables reports : main report, reports by file, reports by user.

- Datas provided : displays count, total ips by file, average ips by file, 
date of last display, users having displayed file, internal or external URI 
where the link was visited.

Download and enable browscap module if you want to track browser related datas. 

- Enable and disable datas which you don’t want to appear in reports

- Export all datas in CSV files

- Clear datas by file or by user. 

- Rules integration

- Colorbox integration (by file, no gallery)


Installation 
------------

 * Copy the module's directory to your modules directory
 and activate the module.
 
 * Install it here : admin/modules
 
 * View reports here : admin/reports/track_da_files
 
 * Configure Track da files module here : admin/config/media/track_da_files


How it works
-----
  
 1. The easiest way to proceed is to activate the counting of displays
 for a specific file field.
 
 For a specific content type, select one of these display formats
 for the field : 
 
 "tdf: Generic File"
 "tdf: Table of files"
 "tdf: Image"
 or if colorbox is enabled "tdf : Colorbox image".     
 
 2. Another way to activate file displays tracking is to adapt your link
 to files in the wysiwyg or in the code source of custom templates 
 and modules.   
       
 * The links should look like this for public files:  
	  
  http://www.domain.com/system/tdf/[file path]/?file=1&type=node&id=457 
	-> In this example we want to track a file related to node 457 : 
	the two last parameters are entity id and entity type 	
  
  If you want to track a file attached to a comment, 
  type will be comment and id the cid of the comment : 
  
  http://www.domain.com/system/tdf/[file path]/?file=1&type=comment&id=186   
  
  This will work too without related content parameters
  (no related content will be recorded) :
  
  http://www.domain.com/system/tdf/[file path]/?file=1 
  
  [file path] have to be replaced with the path to the file
  under the files directory : 
   
    - the filename if you file is put in the root of the files directory.
    
    - docs/[file name] if the file is in the docs directory
    under the files directory

  Example : 
  domain.com/system/tdf/docs/myfile.jpg/?file=1&type=node&id=457 
 
  - Implementation in PHP with Drupal l() function :  
 
  l('Some link text','system/tdf/[file path]', 
  array('query' => array('file' => 1, 'type' => 'node', 'id' => 457)));

  * For private files the links to the file to be tracked
  should look like this : 
 
  http://www.domain.com/system/files/[file path]/?file=1&type=node&id=457
  
  - Implementation in PHP with Drupal l() function :  
  
  l('Some link text','system/files/[file path]',
  array('query' => array('file' => 1, 'type' => 'node','id' => 457)));

File

README.txt
View source
  1. Track da files module
  2. ------------------------
  3. by Federiko_ from Koriolis, drupal.org/node/1142418
  4. Description
  5. -----------
  6. Track da files module enables the possibility to track
  7. how much visitors are viewing files on site.
  8. Every link to a file can be configured to be tracked.
  9. A record is registered each time a visitor access the file
  10. from this specific link.
  11. Configure file fields to be tracked in content interface,
  12. by selecting the corresponding display.
  13. Links to be tracked can also be integrated in templates
  14. or html source of contents, by customizing links.
  15. This module works with public and private file system.
  16. Features
  17. -----
  18. - Diferents availables reports : main report, reports by file, reports by user.
  19. - Datas provided : displays count, total ips by file, average ips by file,
  20. date of last display, users having displayed file, internal or external URI
  21. where the link was visited.
  22. Download and enable browscap module if you want to track browser related datas.
  23. - Enable and disable datas which you don’t want to appear in reports
  24. - Export all datas in CSV files
  25. - Clear datas by file or by user.
  26. - Rules integration
  27. - Colorbox integration (by file, no gallery)
  28. Installation
  29. ------------
  30. * Copy the module's directory to your modules directory
  31. and activate the module.
  32. * Install it here : admin/modules
  33. * View reports here : admin/reports/track_da_files
  34. * Configure Track da files module here : admin/config/media/track_da_files
  35. How it works
  36. -----
  37. 1. The easiest way to proceed is to activate the counting of displays
  38. for a specific file field.
  39. For a specific content type, select one of these display formats
  40. for the field :
  41. "tdf: Generic File"
  42. "tdf: Table of files"
  43. "tdf: Image"
  44. or if colorbox is enabled "tdf : Colorbox image".
  45. 2. Another way to activate file displays tracking is to adapt your link
  46. to files in the wysiwyg or in the code source of custom templates
  47. and modules.
  48. * The links should look like this for public files:
  49. http://www.domain.com/system/tdf/[file path]/?file=1&type=node&id=457
  50. -> In this example we want to track a file related to node 457 :
  51. the two last parameters are entity id and entity type
  52. If you want to track a file attached to a comment,
  53. type will be comment and id the cid of the comment :
  54. http://www.domain.com/system/tdf/[file path]/?file=1&type=comment&id=186
  55. This will work too without related content parameters
  56. (no related content will be recorded) :
  57. http://www.domain.com/system/tdf/[file path]/?file=1
  58. [file path] have to be replaced with the path to the file
  59. under the files directory :
  60. - the filename if you file is put in the root of the files directory.
  61. - docs/[file name] if the file is in the docs directory
  62. under the files directory
  63. Example :
  64. domain.com/system/tdf/docs/myfile.jpg/?file=1&type=node&id=457
  65. - Implementation in PHP with Drupal l() function :
  66. l('Some link text','system/tdf/[file path]',
  67. array('query' => array('file' => 1, 'type' => 'node', 'id' => 457)));
  68. * For private files the links to the file to be tracked
  69. should look like this :
  70. http://www.domain.com/system/files/[file path]/?file=1&type=node&id=457
  71. - Implementation in PHP with Drupal l() function :
  72. l('Some link text','system/files/[file path]',
  73. array('query' => array('file' => 1, 'type' => 'node','id' => 457)));