Use the registration tag with IBM Digital Analytics

If the site is integrated with IBM Digital Analytics, we can use the default implementation of the <cm:registration /> tag that WebSphere Commerce provides. The <cm:registration /> tag generates the following IBM Digital Analytics tag: cmCreateRegistrationTag.


Tag placement in store pages

Include the <cm:registration /> tag in our customer account display JSP page. In the page, place the <cm:registration /> tag before the <cm:pageview /> tag.

To use the <cm:registration /> tag, we must also include the tag library in the JSP file before the main page content. Use the following code to include the tag library:

The data that the <cm:registration /> tag generates is different depending on which version of the IBM Digital Analytics library the store uses.


Example of tag usage and output for IBM Digital Data Exchange (DDX)

If the WebSphere Commerce store is integrated with DDX to simplify collecting analytics data, the <cm:registration /> tag generates data into the digitalData JavaScript object that is sent to DDX. DDX can then relay the data to IBM Digital Analytics. The generated data that in this JavaScript object can look like the following output:

In this output, the format user[0].profile[0] is used to include the user data. This format is the only format that WebSphere Commerce and IBM Digital Analytics supports.

For more information about integrating with DDX, see IBM Digital Data Exchange integration.


Examples of tag usage: for the custom IBM Digital Analytics library

The <cm:registration /> tag generates the following IBM Digital Analytics data tag:

Example 1:

To pass basic registration data to IBM Digital Analytics:

Include tag in your
store page with the following code:
If the store uses data beans and URL commands for registration runtime functions, we can include the tag with no parameters:

    <cm:registration />

If the store uses web services for registration runtime functions, use the personType parameter:

    <cm:registration personType="${personType}"/>

Example of IBM Digital Analytics
data tag generated:

    cmCreateRegistrationTag("2002", "user1@test.com", "LA", "CA", "45123", 
    null, null, "10101", "US", null, "N", null, null, null, null, null, null);

Example 2:

To pass Explore attributes to IBM Digital Analytics, use the extraparms parameter (first position):

Note: The examples in this topic use the simplified syntax for specifying extraparms values. We must specify the values using properly escaped JavaScript:

If any of your extraparms values are JavaScript variables, see the syntax rules explained in Syntax for passing JavaScript variables as extra parameters.

Include tag in your
store page with the following code:

    <cm:registration personType="${personType}" 
    extraparms="attr1-_-attr2-_-attr3"/>

Example of IBM Digital Analytics, formerly known as Coremetrics Analytics
data tag generated:

    cmCreateRegistrationTag("2002", "user1@test.com", "LA", "CA", "45123", 
    null, null, "10101", "US", null, "N", null, null, null, null, null, null, 
    "attr1-_-attr2-_-attr3");

For details about each parameter in the IBM Digital Analytics data tag, see the documentation that is provided by IBM Digital Analytics.


Related concepts
Passing extra data to IBM Digital Analytics with the extraparms parameter
IBM Digital Analytics JavaScript library types: standard and custom
IBM Digital Analytics, formerly known as Coremetrics Analytics integration with Web 2.0 starter stores


Related reference
Registration tag