Reference > Analytics for IBM WebSphere Commerce > Analytics tag library for IBM WebSphere Commerce
Registration tag
The registration tag collects information about the customers related to registration data.
The data generated by the registration tag includes:
- Customer identifier
- Customer e-mail
- Customer city
- Customer state
- Customer ZIP code
- Customer country
- Age
- Gender
- Marital status
- Number of children in household
- Company name
- Hobbies
- Income
- Store identifier
- Any extra parameters for tag customization
WebSphere Commerce provides an abstract base tag implementation class for the registration tag:
The base tag class collects information about an analytics registration event. Analytics vendors who want to provide a registration tag in their Web analytics JSP tag library can extend this base tag class to get the registration tag data and implement their own logic to generate the vendor-specific registration tagging APIs.
Parameters
The registration tag takes the following parameters:
- personType
- An optional parameter that is a populated instance of the PersonType class. If missing, the current customer's member ID is used to fetch the data required to generate the registration tag.
- extraparms
- An optional parameter that communicates additional information to the external analytics service as necessary. This parameter is provided for cases in which you might have negotiated with the external analytics vendor to generate some custom report that requires additional information. Any information specified as a value for this parameter is appended to the argument list in the analytics tag output and should be properly escaped JavaScript.
To pass more than one parameter, separate values with a comma, as shown in this example:
extraparms="\"field1\", \"field2\""
Registration tag for Coremetrics
WebSphere Commerce provides a default implementation of the registration tag for Coremetrics. The registration tag must be included in the customer account display JSP file.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 registration tag must be included in the JSP file before the page view tag.
Examples
In most cases, to add the registration tag, you only need to include the following code:
<cm:registration />
or
<cm:registration personType="${personType}"/>
XML definition
<tag> <name>registration</name> <tag-class>com.ibm.commerce.bi.taglib.coremetrics.RegistrationTag</tag-class> <body-content>empty</body-content> <description>Sets the Registration tag with user registration and demographic data.</description> <attribute> <name>personType</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description>Uses the PersonType object to get the details</description> </attribute> <attribute> <name>extraparms</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description>Additional fields that will be appended to argument list in the Coremetrics tag output.To pass more than 1 parameter, use an input like extraparms="\"field1\", \"field2\"".</description> </attribute> </tag>
Related tasks
Tag the store pages for Coremetrics
Related reference