# <BehaviorTracking:displayContentEvent> Tag

The <BehaviorTracking:displayContentEvent> tag generates a behavior event when a user has received (viewed) any HTML content, such as images, text, PDF files, and Web-compatible multimedia content.

## Syntax

<tagName attribute="value" />

## Attributes

documentId

Optional (String) - The path of the item that is displayed, if applicable.

documentType

Optional (String) - Type or category of the item that is displayed, if applicable.

## Example

This example shows a code snippet of processing that would follow the retrieval of content from a content management system. For each document returned but not displayed in this example, the <BehaviorTracking:displayContentEvent> tag generates an event and passes the document's ID and type.

    <es:forEachInArray id="nextRow" array="<%=headlines%>" type="com.bea.content.Node">
    <es:notNull item="<%=nextRow%>">
    <BehaviorTracking:displayContentEvent documentId="<%=nextRow.getPath()%>"
    documentType="<%=headingProp%>"/>
    </es:notNull>
    </es:forEachInArray>

Related Topics

<BehaviorTracking:clickContentEvent> Tag

<es:forEachInArray> Tag

<es:notNull> Tag