# Enabling Anonymous User Tracking

Here are specific instructions for enabling your Web application to track anonymous users. Using this feature requires that cookies be enabled on the user's browser.

Anonymous User Tracking is not enabled by default. It must be enabled in order to function by completing the following tasks:

- Enable Anonymous user Duration Checking
- Configure Visit Duration

## To Enable Tracked Anonymous Users

Anonymous User Tracking is implemented by configuring the PortalServletFilter by adding the following entry to the web.xml file inside your Web application:

    <!-- Portal Servlet Filter, always required for Portal -->
        <filter>
        <filter-name> PortalServletFilter </filter-name>
        <filter-class> com.bea.p13n.servlets.PortalServletFilter </filter-class>
        <init-param>
            <param-name>fireSessionLoginEvent</param-name>
            <param-value>false</param-value>
            <description> Option to fire SessionLoginEvent , defaults to false if not set</description>
        </init-param>
        <init-param>
            <param-name>createAnonymousProfile</param-name>
            <param-value>true</param-value>
            <description> Filter will create an anonymous profile for every session. Defaults to true if not set</description>
        </init-param>
        <init-param>
            <param-name>enableTrackedAnonymous</param-name>
            <param-value>true</param-value>
            <description> Option to track anonymous users , defaults to false if not set. 'createAnonymousProfile' is ignored if this is true</description>
        </init-param>
        <init-param>
            <param-name>trackedAnonymousVisitDuration</param-name>
            <param-value>5</param-value>
            <description> Length in seconds visitor must be on site before we start tracking them . Defaults to 60 seconds if not set</description>
    </init-param>
    </filter>

Related Topics

Creating Anonymous User Profiles

Tracking Anonymous Users

Adding Personalization and Interaction Management to a Portal