Log the user Access to a Channel

It's possible to log the access to a channel with the system log facility or a simple file when an user click in the desktop link... the link can be an external URL.

The log must have the user id and the name of the URL for tracking user action in the desktop.

It's possible using the Rewriter Rules and Rulesets to perfome this?

If it's impossible we're the better solution?

Obsiously it's possible to redirect all the channel link of the desktop in a new servelets o jsp page that provides this functionality and log the access but I think there is not the better solution...

Thank for the help

Best Regards

Fausto

[678 byte] By [.faust.] at [2007-11-25 10:51:58]
# 1

Hi, this functionality is not available "out the box",

but I just wrote an extensive portal metrix report

application which can log/report access for

channels, tabs and sessions per user/org...

So it is possible, but it takes about two weeks

to make it right. If you need a "fast demo"

you can do it with "One pixel Frame" - trick...

Tip: If you have gateway - use JS to access CGI variables.

Cheers,

Alex :-)

Alexej@Kupin.net at 2007-7-1 21:50:59 > top of Java-index,Web & Directory Servers,Portal Servers...
# 2

Alex,

thank you for the help,but I haven't understood where is the fast demo... and what it means the tip and the "One pixel Frame". The final release of this application for the extensive portal metric report will be GNU/GPL?

I read the api for the desktop and I've token the idea to overwrite the URLScraperProvider class to perfome the logging... Someone have experience in this?

.faust. at 2007-7-1 21:50:59 > top of Java-index,Web & Directory Servers,Portal Servers...
# 3

Hi Fausto,

- Fast "One pixel Frame" trick:

Place one pixel Frame in a channel or template,

This Frame has URL of your logger JSP

another channel could view the reports...

- I wrote SunONE portal reporting webapp not for SUN.

So I don't know if this will ever make to GNU/GPL

- Don't use the "URLScraperProvider" -

Use desktop templates!

Cheers,

Alex :-)

Alexej@Kupin.net at 2007-7-1 21:50:59 > top of Java-index,Web & Directory Servers,Portal Servers...
# 4

Hi Alex,

I've understood, but I don't like too much the "hidden" frames... perhaps it's better to use a javascript function that open the link and post in the jsp url logging the data for tracking user.

I'm wating your demo, please contact me when it's finished and if you want some help to develop send me a mail...

Thank you again

Fausto

.faust. at 2007-7-1 21:50:59 > top of Java-index,Web & Directory Servers,Portal Servers...
# 5

Hi Fausto,

Of course there are several cool tricks ;-)

- Your "JS trick with post " will refresh the page - no good...

(Also what if you log several channels etc.... )

- For reporting I actually used "JS hidden image" trick.

Note: You will loose the browser handle from logging jsp

- "One Pixel Frame" is good only if you need to have a browser handle.

For example on click e.g. TabSwitch you can show immediate statistics

(e.g. how many time user spend with this channel and how much he has to pay!)

PS: I am actually done with the reporting tool.

Send me a mail if you wanna see it.

Cheers,

Alex :-)

Alexej@Kupin.net at 2007-7-1 21:50:59 > top of Java-index,Web & Directory Servers,Portal Servers...
# 6
Alex,did you've received my e-mail?I'm waiting for the application.best wishes and thank you againfaust
.faust. at 2007-7-1 21:50:59 > top of Java-index,Web & Directory Servers,Portal Servers...
# 7
Hi Fausto,I was biz-traveling this week.Check your mail.Cheers,Alex :-)
Alexej@Kupin.net at 2007-7-1 21:50:59 > top of Java-index,Web & Directory Servers,Portal Servers...