Reference > Analytics for IBM WebSphere Commerce > Analytics tag library for IBM WebSphere Commerce
Generic tag
The generic tag is available for use as a pass-through tag to communicate additional information about site usage to an external analytics system. This tag can be used for customization, or to forward information to the vendor tags that are not currently supported in the tag library the vendor provides to support Web analytics for IBM WebSphere Commerce.
The abstract base tag implementation class for the generic tag is:
Analytics vendors who want to provide a generic tag in their Web analytics tag library can implement a tag class by extending this abstract base class.
Parameters
The generic tag takes the following parameters:
- tag
- A required parameter that specifies the custom tag to reference when passing information to an external analytics system.
Generic tag for Coremetrics
WebSphere Commerce provides a default implementation of the generic tag for Coremetrics; however, this tag does not currently map to any Coremetrics tags.
To use this tag, include the tag library in the JSP page. The tag library must be referenced prior to the main page content. Use the following tag so that the JSP page refers to the tag library:
<%@ taglib uri="http://commerce.ibm.com/coremetrics" prefix="cm" %>
The generic tag must be included in the JSP file before the page view tag.
Examples
In most cases, to add the generic tag, you only need to include the following code:
<cm:generic tag="cmCustomTag(\"param1\", \"param2\");" />
XML definition
<tag> <name>generic</name> <tag-class>com.ibm.commerce.bi.taglib.coremetrics.GenericTag</tag-class> <body-content>empty</body-content> <description>Sets any arbitrary Coremetrics tag. Used for custom tags or tags not implemented in this tag library. </description> <attribute> <name>tag</name> <required>true</required> <rtexprvalue>true</rtexprvalue> <description>Any JavaScript-compliant code</description> </attribute> </tag>
Related concepts
Analytics tag library for IBM WebSphere Commerce
Related tasks
Tag the store pages for Coremetrics
Related reference