If you store it via js code , then you can store it in the browser.Con: It will be flushed when user deletes the cookies..etc If you use profile script , you can maintain the counter in the server side (at the target server side). This is the right way for capture such data.