Tagging the store pages for IBM Digital Analytics

Manually add WebSphere Commerce analytics tags to the correct locations in the store JSP pages. For example, add the <cm:product /> tag to your product display pages and the <cm:cart /> tag to your shopping cart page.


Task info

The Madisons and Elite starter stores are already tagged for . If the store is built from one of these starter stores, the default store pages already contain the appropriate WebSphere Commerce analytics tags. You might need to add tags to any custom pages you created. To check store JSP files for existing tags, search the files for occurrences of <cm:.


Procedure

  1. Navigate to the folder containing the store JSP pages.

  2. Add the WebSphere Commerce analytics tags to the store JSP pages as required. We can find information about tag parameters, placement, and examples in the following topics:

    WebSphere Commerce analytics tag See these topics
    Page view tag
    <cm:pageview />

    The auto tagging utility adds the <cm:pageview /> tags to the store pages; however, we might need to add parameters to the tag on certain pages to pass more data to IBM Digital Analytics, such as Explore attributes.

    Page view tag

    Use the page view tag with IBM Digital Analytics
    Order tag
    <cm:order />
    Order tag

    Use the order tag with IBM Digital Analytics
    Shopping cart tag
    <cm:cart />
    Shopping cart tag

    Use the shopping cart tag with IBM Digital Analytics
    Product tag
    <cm:product />
    Product tag

    Use the product tag with IBM Digital Analytics
    Registration tag
    <cm:registration />
    Registration tag

    Use the registration tag with IBM Digital Analytics
    Campaign tag
    <cm:campurl />
    Campaign tag

    Use the campaign tag with IBM Digital Analytics
    Conversion event tag
    <cm:conversion />
    Conversion event tag

    Use the conversion event tag with IBM Digital Analytics
    Element tag
    <cm:element/>
    Element tag

    Use the element tag with IBM Digital Analytics


Results

Your store is now tagged with WebSphere Commerce analytics tags that send data to IBM Digital Analytics when customers interact with the store pages and the full page refreshes.


What to do next

If the store uses Rich Internet Application (RIA) technologies such as Ajax (Asynchronous JavaScript and XML) and Dojo widgets, certain customer interactions with store page content do not result in a full page refresh. To find out more about sending data to IBM Digital Analytics when the full page does not refresh, see IBM Digital Analytics, formerly known as Coremetrics Analytics integration with Web 2.0 starter stores.

Previous topic: Running the auto tagging utility


Related concepts
Integrating a store with IBM Digital Analytics for WebSphere Commerce


Related reference
Auto tagging utility