3 12 Event Logging

LANSA Web Functions

3.12 Event Logging

LANSA for the Web provides support for event logging. Event logging is also commonly known as 'click tracking'. Event logging allows you to track the navigation of the users of your Web Function Applications. It creates a log record for every page served up by LANSA for the Web. The information from the event logger can help you answer typical questions like:

  • How long did the user stay at my site?
  • How many pages did the user access at my site?
  • How is the customer using my site?

LANSA for the Web also allows you to trace user defined data as well as system data. The data traced can be easily queried for data mining purposes.

You can trace two levels of information – summary information and detailed information. The summary information provides information about:

  • Date and time the user first accessed your site. The page accessed is also logged.
  • Date and time the last page was accessed.
  • Number of pages accessed.
  • Web user profile, if any.
  • IP Address, if available.
  • HTTP Referrer, if available.

The summary information is stored in a LANSA table, DC@W26.

The detailed information provides information about each page accessed, including:

  • Date and time the page was accessed.
  • User defined trace information.

The detailed information is stored in a LANSA table, DC@W27.

To remove recorded event logging entries in these files on the iSeries, call the Cleanup program as follows:

CALL W3@P2210 PARM('<WEBPGMLIB>' '<DATE>')

where

<WEBPGMLIB> is your lansa web program library

<DATE> is the date in YYYYMMDD format