Tagging your store pages for IBM Digital Analytics

Manually add WebSphere Commerce analytics tags to the correct locations in your 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.

About this task

The Madisons and Elite starter stores are already pretagged for IBM Digital Analytics, formerly known as Coremetrics Analytics. If your 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 that contains your store JSP pages.
  2. Add the WebSphere Commerce analytics tags to your store JSP pages as required.
    You 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 your store pages; however, you 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 Using the page view tag with IBM Digital Analytics
    Order tag <cm:order /> Order tag Using the order tag with IBM Digital Analytics
    Shopping cart tag <cm:cart /> Shopping cart tag Using the shopping cart tag with IBM Digital Analytics
    Product tag <cm:product /> Product tag Using the product tag with IBM Digital Analytics
    Registration tag <cm:registration /> Registration tag Using the registration tag with IBM Digital Analytics
    Campaign tag <cm:campurl /> Campaign tag Using the campaign tag with IBM Digital Analytics
    Conversion event tag <cm:conversion /> Conversion event tag Using the conversion event tag with IBM Digital Analytics
    Element tag <cm:element/> Element tag Using 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 your store pages and the full page refreshes.

What to do next

If your 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.