statistics with external text file

58 views
Skip to first unread message

Wim

unread,
Dec 10, 2012, 6:36:21 AM12/10/12
to tiddl...@googlegroups.com
Hello,
 
I would like to have some statistics to see what tiddlers are visited in my TW and when.
 
Is there a plugin or macro that can "update" a simple external text-file with the data of the visited tiddler.  Of course, in each tiddler that has to be tracked, there must be a link to that external text-file.
 
Something like :
(in the TW-tiddler) : <<update "log.txt">>
 
(in the external log.txt) > adding a new line (after each "visit") with this information:      tiddler name      date of visit
 
So the log.txt becomes a file like:
 
tiddler1     01-01-2012
tiddler2     01-01-2012
tiddler1     02-01-2012
tiddler3     03-01-2012
etc.
 
That log.txt-file can then be imported in Excel for further analyzing.
 
Can someone help me?
 
Thanks.

Wim

unread,
Dec 10, 2012, 10:24:08 AM12/10/12
to tiddl...@googlegroups.com
I just found Eric's MessageLogPlugin that appends log-messages to a shadow-tiddler.
Maybe this plugin can be used as base for my "statistics-problem". 
Instead of appending each log-item, the viewed tiddler (parameter ?) could be used as "message".  The date and time are already there...  And then, I don't need an external file.
 
Maybe someone can help me to change (a copy of) that plugin.
 
Wim
 
 

Op maandag 10 december 2012 12:36:21 UTC+1 schreef Wim het volgende:

PMario

unread,
Dec 11, 2012, 5:37:21 AM12/11/12
to tiddl...@googlegroups.com
Hi Wim,
Is your TW online, or is it a local / network copy, where several users have write access.

If you want to change a tiddlers content. Every user has to have _full_ write access to your TW just to let the tracking do its job. So they can change the tiddlers content too.

Direct saving to external files, has been made much more complicated due to security restrictions. The TW list is full of issues about saving, updating ....

The new TW 2.7 version will fix some issues but I'm sure it won't make your tracking possible out of the box.

So if you could specify your needs a bit closer, there may be solutions.

Do you use TiddlySapce.com?

have fun!
mario

Wim

unread,
Dec 11, 2012, 5:46:44 AM12/11/12
to tiddl...@googlegroups.com
Hi Mario,
 
my TW is on a network.  Several users have write access, but none of my colleagues knows how to change something.
Navigation is with a own-build navigationbar and the TW is only used as a "knowledge-center", not for collaboration (writing).  So I'm not afraid someone will change the content :)
 
As I wrote, maybe the MessageLog plugin can be "adapted" to append the date and visited-tiddlername (*) instead of the message.  I looked at the source of the plugin, but I don't understand where (and what) to change.
 
(*) only if the plugin is called as a macro from within the tiddler(s) I want to log.
 
So every help is welcome.
 
Wim
 

Op dinsdag 11 december 2012 11:37:21 UTC+1 schreef PMario het volgende:
Reply all
Reply to author
Forward
0 new messages