COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Starfish2201 on 02 Oct 2012 04:11:33 PM

Title: Keeping a count of how many times a hyperlink is clicked
Post by: Starfish2201 on 02 Oct 2012 04:11:33 PM
Hi Cognos Gurus,

Lets say I have a report with some hyperlinks. User clicks on the hyperlink and a new report opens up (dril-through). Can I some how keep a count of how many times the hyperlink is clicked?

I know each individual report is specific to the that particular user and is static. But is there a way? 

Or lets say can I keep a log of how many times the hyperlink is clicked irrespective of any particular user? If I can get a log (may be writing to a file or table), then I can do a count on the same.

Thanks tons for your help !!!
Title: Re: Keeping a count of how many times a hyperlink is clicked
Post by: lm8 on 03 Oct 2012 07:49:53 AM
If you're using an HTML item in Report Studio to do a hyperlink, you can add JavaScript code to count how many times the link was clicked.  You can combine it with services like Google Analytics and use their JavaScript and their services to do the counting (plus some user statistics logging).  We use these techniques with our own system.

Another option is to turn on web server logging so that it tracks what links are clicked.  Most web servers have the options to log any time you access a file on that server and can even track additional information about the user.