Keeping track of the number of hits

Hi,
I'm developing a website in JSP and what I want is to keep track of how many times a link on my site has been clicked on...
Let me explain a little further: I have a links section with all types of links and i want to know how often these links are used
Now, what's the "best" solution for this problem?
Putting my links in a database or a just a file or XML, and how can I detect when someone has clicked on that link?
Every solution is welcome
Thx in advance
GekkeGwuido

The traditional way to do this is with a redirect. Basically you have a servlet or JSP that will be called anytime anyone clicks on a like. It contains a redirect parameter. For example, your HTML might look something like:
<a href="http://www.yourdomain.tld/redirector.jsp?linkid=1234" />Then, in redirector.jsp you look up in, likely, a database what linkid 1234 is. Assuming you find it you update your database with whatever information you want about link 1234 and send a redirect to the URL that link 1234 is for.

Similar Messages

  • Adding a counter that keeps track of the total number of times a loop has run, even if LabVIEW has been restarted.

    Hi all,
    I am writing a VI for measuring data and inserting it into a database. The measurements are controlled by a loop that runs once every minute. I want to give each measurement a unique id number and store this too in the database.
    To do this, I want to add a counter to this loop so that I can count the number of times the loop has executed in total. This is, even if the VI, LabVIEW or even th PC is restarted, I want the counter to keep track of the number of executions. If say, the loope executes two times and then the VI is stopped and restarted, I want the following number on the counter to be three.
    Does anyone have an idea about how to do this? I am gratefule for any help!
    Clara
    Message Edited by Clara G on 05-11-2010 08:21 AM
    Solved!
    Go to Solution.

    Not allowed to give away code but I can describe one of my "Totalizers" used to keep track of how much stuff has passed through a fliter so we know when to change it.
    THe Total izer is implemented as an Action Engine.
    It has three actions (methods)
    1) Init - Opens an ini file and reads the last values read and cahces these in shift registers. It also inits a timer so we now how long since the last file I/O.
    2) Update - Uses the data passed by the caller to update the totals. It also checks how long since the last save and if more than one minute it writes to the ini file (forced write).
    3) Read - returns the totals for display and evealuating if a an alarm should be triggered to change the filter.
    Note:
    THe pre-LV 8.6 version of the ini file exposed methods to allow writing to the file. The new ini functions do not expose that functionality and require closing the file.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How do I keep track of when a signal hits a certain voltage?

    I am fairly new to Labview, and I am having trouble with the following.  I am working on replacing a Digital Vector Filter with Labview software.  I have a rotating shaft with eccentricities, which are measured by X and Y proximitors.  Also, a keyphasor voltage keeps track of the rotation rate, which enables me to relate X and Y to each other. Essentially, I have to find when the keyphasor voltage hits -11 volts, and keep track of when that happens, then, keep track of the next time that happens, in order to get the time it takes for one revolution. I don't know if this makes a difference, but the data is coming in as dynamic data.  I want to be able to tell the user what the rotational rate is as the program is running.

    Thanks for the help!
    I have taken the vi you gave me and changed it to a bit.  The voltage going in is being sampled rather quickly, and thus there is no actual point that equals -11 Volts. I want to do something like the following: Check timer time, tm, and check:
    if tm-1 > -11 Volts   and tm < -11  
    do the following calculation to get the actual value time that voltage crosses -11 Volts, tk.
    tk= (tm-1) + (  (tm- (tm-1)     ) / ( Km - (Km-1)  ) )  *  (-11-(Km-1)),      where Km is the voltage at tm.
    I want to be able to do this streaming, to show the user what the tk value is live.  The only times I really need to save are tm and tm-1, from there I can save all the tk's in an array for further analysis.
    Please let me know if this is possible.
    Thanks 
    Attachments:
    keyphasordata.xls ‏1773 KB
    Barebones.vi ‏90 KB

  • I have lost track of the number of websites that do not work properly on the iPad without Adobe Flash player which is unsupported. I cannot use retail sites, billing sites and most important of all job application sites. All are missing tabs, links, info

    I have lost track of the number of websites which do not work properly on my iPad. They include retail sites, billing sites and most important of all job application sites. They all seem to require Adobe Flash Player which cannot be downloaded onto an iPad. Skyfire does not solve the problem. They all load without vital parts of the site such as tabs, links and correct formatting. Any suggestions?

    Most such brower/service combinations have a difficult time working with Flash-based apps and often fail completely. Flash videos are usually the most successful content these browers can handle. You can try the others apps - Puffin, iSwifter, etc - but you may find that none of them work, in which case you will not be able to use your iPad with these sites other than by using one of the various remote control solutions to take over a computer running the full Flash Player.
    IMHO, any developer that built a Flash application for a billing or job application site was an idiot, but I know that's out of the control of anyone but the relevant company.
    Regards.

  • How to keep track of the users who are all currently logged in

    Hi All,
    I have basic knowledge of Session and Servlets. I am wondering how to keep track of the users who are all currently logged in. There should be some way of achieving it.
    I thought of it and come up with having an Application variable that hold it when ever a user successfully logged in.
    Thanks in advance for any reply.

    You can do this by keeping data in a static veriable in a some class of yours. The variable will need to be a collection.
    Whenever a user loogs in to the site a servlet/jsp should put the users information in to the collection and when logs off or when the session expires the entry should be take off.
    You can achive this by storing the velues in a some sort of a week collection where the entries are automaticaly removed when all the other refferences to the entry goes out of scope.
    You might need to read bit about java.lang.ref package and WeekReference
    Or you can make the entry in the collection contain the last time that the user visited any of the pages and a thread can run time to time and clean up the older entries which have timed out

  • How to keep track of the changes done in ALV GRID Report

    Hi Experts,
    how to keep track of the changed record in ALV GRID Report. how to set the field to be editable even for the entire row also. Can anybody guide along with code also?...
    Valuable answers will be rewarded.
    Thanks,
    Satish.

    Hi,
    Access the table through SM30. It comes blank as standard. Click "New Entries" and make entries for changes to be tracked. For example, whenever an org. unit changes 002 and 003 relationship, you will make entries like:
    01 O 1001 B002 Activate box checked
    01 O 1001 B003 Activate box checked
    Here, 01 is your active plan version, O is org. unit, 1001 is infotype and B002 and B003 are the subtypes. You can also use * for infotype and subtype which means every change will be logged.
    If you then run the report RHCDOC_DISPLAY through SA38, it will pick up all the changes pertaining to B002 and B003 relationship for org. units (in the above example).
    Similarly, you can set up this table for other object types.
    For more information, follow SPRO>Personnel Management>OM>Basic Settings>Activate change documents and go through the documentation for that node. Also, read up the documentation for the report.
    Hope this helps.
    Donnie

  • How to keep Track of the wagetype Changes

    Hi Experts,
    How to keep Track of the Changes after changing the wagetype values.If any body has made changes to the existing wagetype, how do we keep a track of what changes has done, is there any standard Tcode through  which we can get the information.
    Thanks in advance,
    Regards,
    Magesh.S

    Hi,
    Access the table through SM30. It comes blank as standard. Click "New Entries" and make entries for changes to be tracked. For example, whenever an org. unit changes 002 and 003 relationship, you will make entries like:
    01 O 1001 B002 Activate box checked
    01 O 1001 B003 Activate box checked
    Here, 01 is your active plan version, O is org. unit, 1001 is infotype and B002 and B003 are the subtypes. You can also use * for infotype and subtype which means every change will be logged.
    If you then run the report RHCDOC_DISPLAY through SA38, it will pick up all the changes pertaining to B002 and B003 relationship for org. units (in the above example).
    Similarly, you can set up this table for other object types.
    For more information, follow SPRO>Personnel Management>OM>Basic Settings>Activate change documents and go through the documentation for that node. Also, read up the documentation for the report.
    Hope this helps.
    Donnie

  • How to keep track of the sequence of the BSP Pages being invoked.

    Hi,
    How to keep track of the sequence of the BSP Pages being invoked.
    I have a BSP Page A.htm. There are two other pages B.HTM and C.HTM in the same BSP Application.
    The page B.HTM has a link A.HTM. The page C.HTM also has a link A.HTM. On clicking  these links the Page A.HTM would be invoked. Is there any way to keep track which BSP Page  (i.e B.HTM or C.HTM) invoked the page A.HTM.
    Any input on this Regard would be of great help.
    Thanks and Regards,
    Pavithra

    Hi Pavithra,
    Declare in page attributes:
    appl_url type string
    In the onClick event of the link that calls the A.htm page , use:
    call method runtime->get_url
    receiving
    URL = appl_url.
    Now appl_url contains the url (also name) of the page that invoked A.htm .
    Hope it helps.
    Anubhav.

  • How to keep track of the filter/choices in a dashboard

    Hello all,
    I have created an analysis which contains the following columns: YEAR, TRANSACTION DESCRIPTION, NO OF TRANSACTION
    I have added the above analysis in a dashboard tab. When I click a particular TRANSACTION DESCRIPTION it can get further drill down in time hierarchy like below:
    YEAR     QUARTER     MONTH     TRANSACTION DESCRIPTION     NO OF TRANSACTION
    2012        Q1               JANUARY                      X                                        10
    2012        Q1               FEBRUARY                   X                                        20
    2012        Q1               MARCH                         X                                        30
    I was wondering if there is way to keep track of the drill-down in the analysis or dashboard, for example
    2012> Q1> JANUARY    
    so that the user can know he is exactly.
    Thanks in advance for your time.
    Konstantina

    Hi Konstantina,
    Yes You can do like that 2012-->q1-->January
    Steps:
    1. Create time dimension hierarchy as by following like Total--> year--> Quarter--> Month--> if you need you can keep Description.
    2. Drag the Year column from period dimension table to the dimension hierarchy of year.
    3. Drag the quarter column from period dimension table to the dimension hierarchy of Quarter.
    4. Drag the month column from period dimension table to the dimension hierarchy of month.
    5. Drag the hierarchy to period dimension table in presentation layer.
    In Answer side keep as it as Default: drill in primary and secondary interaction under column properties.
    For more refer : http://mkashu.blogspot.com
    Regards
    VG

  • Keep track of the shopping cart for anonymous user

    Hi,
    I have the following problem on b2c site. Anonymous user can browse through the site and adds items to the shopping cart. At the checkout the login page is prompted, however login page is located on the different application server where the actual login happening. After that control is returned to my server where I need to create login object and associate the shopping cart with it. My problem is how to maintain shopping cart without losing it.
    I came with that solution : On checkout attach shopping cart to context object with unique key, then pass this unique key to the remote server, then remote server passes it back to me together with the login id, then I create new session and attach shopping cart to it after retrieving shopping cart from the context.
    I hope it will work, however I think there is a standard solution for this type of the problems. Any ideas, hints, suggestions are strongly appreciated.
    We use WebLogic 9.0 and Servlets.

    Do you have a problem keeping track of the shopping cart for a user who is logged in? No, I didn't think so. So give the anonymous user an internal name, just for your own convenience. Then keep track of the shopping cart for the user with that name. You already know how to do that.

  • Problems with getting the number of hits in the document.

    I need to get the number of hits in the document.
    I use the query template for this porpose as:
    SELECT d.id, score(1)
    FROM document d
    WHERE contains(d.content,'<query>
    <textquery>SEARCHWORD</textquery>
    <score datatype="INTEGER" algorithm="COUNT"/></query>',1)>0
    AND d.id=1
    problems:
    1. If I have some synonyms associated with SEARCHWORD in OracleThesaurus and in case if document contains these synonyms they are not counted.
    2. could you explain the following results returned by query above:
    search query: word1 - numberOfHits=10
    search query: word2 - numberOfHits=8
    search query: word1 OR word2 - numberOfHits=10
    i suppose that numberOhHits=18 for a query: word1 OR word2

    Hi.<br><br>
    1.Synonyms (and generally thesaurus query extensions) cannot automatically uses in queries. You MUST expand you query using SYN function yourself. Query you write just applicable for only KEYWORD search.<br><br>
    2. Ask yourself. I'm not seen your data. ;)<br>
    Rgrds, Yuri.<br><br>
    PS. Just read Oracle Text Reference - you can find many answers here. ;)

  • Watch the number of hits on a char while reporting

    Hi all,
    I want to create an aggregate for a characteristic in a report. But i don't know on which char i have to build  the aggregate. How can i know that, as far as i know based on number of hits for a char we can decide this. Where can we watch the number of hits?

    Hi Kishore,
    If you don't know on which characteristic you have to create the aggregate its good to created aggregates based on system proposals, for that statistical data should be available in the system upto date.
    while creating the aggregate you can consider the system proposal, then the system will  check the statistical data ans based on that aggregates will be created.
    After the above task observe the new aggregates some days, so that you can judge which aggreage is used frequently based on the column "valuation", it it contains more number of "+" symbols that is good aggregate and eventually you can retain the effective aggregates and you can delete the unwanted.
    you can run the report in RSRT debug mode to know which underlying objectes (aggregates / info cubes of a multiprovider etc) being hit.
    Hope it helps !!!
    Regards
    Prasad.

  • [svn:fx-trunk] 11641: A simple fix - we need to keep track of the display list index for non-clipping masks such as luminosity masks , not just alpha masks.

    Revision: 11641
    Author:   [email protected]
    Date:     2009-11-10 18:29:57 -0800 (Tue, 10 Nov 2009)
    Log Message:
    A simple fix - we need to keep track of the display list index for non-clipping masks such as luminosity masks, not just alpha masks.
    QE notes: Please include tests for multiple graphic content nodes with masks under a .
    Doc notes: N/A
    Bugs:
    SDK-24133 - Multiple non-Group maskees don't work when using maskType="luminosity"
    Reviewer: Deepa
    Tests run: Checkintests, Bug test case
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24133
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java

    Revision: 11641
    Author:   [email protected]
    Date:     2009-11-10 18:29:57 -0800 (Tue, 10 Nov 2009)
    Log Message:
    A simple fix - we need to keep track of the display list index for non-clipping masks such as luminosity masks, not just alpha masks.
    QE notes: Please include tests for multiple graphic content nodes with masks under a .
    Doc notes: N/A
    Bugs:
    SDK-24133 - Multiple non-Group maskees don't work when using maskType="luminosity"
    Reviewer: Deepa
    Tests run: Checkintests, Bug test case
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24133
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java

  • Keeping track of the time i work on a project

    Is there a program that will keep track of the time i work on a project?

    Three really good ones.
    A clock, a piece of paper and a pencil.
    Or a clock and EXCEL.
    OR...you can get one of those time clocks that they have on those REALLY strict jobs, like at McDonalds. The stuff you see the Flintstones using...minus the dinosaur.
    Sorry...I don't know of anything...just lightening the mood.
    Shane

  • Monitoring the number of Hits

    Hi all,
    Is there any business package or any feature in the portal, which enables the admin to determine the number of hits to the portal by the different users.
    Please explain me in detail.
    Thanks for your help in advance.
    Reg
    Henry

    You can do this by creating Portal Activity Report iView. go through this
    http://help.sap.com/saphelp_nw04/helpdata/en/fb/144120ea5b4e9c9385d493a578d6c9/frameset.htm
    regards,
    Piyush
    ps: please reward points if this information is useful.

Maybe you are looking for

  • Multiple Apple ID's on 1 machine (over 2 users)

    I am using a new Mini mac & have created 2 administrative users. Although the system allows us to set a seperate Apple ID for each user, it automatically reverts to 1 Apple ID when updating / purchasing. Could anyone advise how we can set a seperate

  • External MiniDP/TB to VGA Adapter Issue

    Hi, I work for a university in the classroom technology department. We have over 220+ classrooms on our campus utilizing technology. We utiltize a handful of models of projectors as well as VGA switchers/control systems. It seems recently, in (so far

  • Microsoft Office 2004 only works on 1 client despite open license?

    Can anyone offer some advice? I have 11 clients on my network. I have installed office 2004 on each client and the server. Whenever a user logs on and opens offic it firstly installs the all the fonts and stuff and then works fine. When a second user

  • About receiver determination. a message contains multiple records

    there is  a message which contains multiple records. how to make receiver determination for the scenario. like: <root> <orders>      <order>            <id>1<id/>             <adress>A<adress/>      <order/>      <order>             <id>2<id/>       

  • How do i get a licence for cc

    Hello I joined up and downloaded CC, but it downloaded as a trial,which has finished, how do i comfirm i joined and get my licence I have had 3 payments taken from my bank