Wednesday, October 9, 2013

CoreMetrics | basics !!

Coremetrics provides web analytics and the other big competitor in this space is Omniture. The analytics integration is provided using Javascript. In Websphere commerce there is a tighter integration in the form of tags that are provided out of the box and  coremetrics reports are provided in management center in newer versions of WCS and older versions still need to use coremetrics site to view reports.

  1. Create a coremetrics account.
  2. Update WC\xml\config\bi\biConfig.xml with correct configuration for coremetrics configuration. clientId is the contract ID is usually one for test environments and 1 for production and ssoKey is generated from Coremetrics support.
  3. Configuration in wc-server.xml 
    • <configuration
                    cmClientID=""
                    password=""
                    serviceURL="https://wscreceiver.coremetrics.com/Receiver/sendEventData"
                    sslKeyPassphrase="WebAS"
                    sslKeyStore="/usr/WebSphere/AppServer/profiles/demo/etc/DummyServerKeyFile.jks"
                    sslTrustPassphrase="WebAS"
                    sslTrustStore="/usr/WebSphere/AppServer/profiles/demo/etc/DummyServerTrustFile.jks"
                    transmitClassName="com.ibm.commerce.bi.events.transmit.CMWebServiceTransmitter"
                    transmitEnabled="false" username=""/&gt
  4. Access Coremetrics reports
    • Open a Web browser to the following URL: https://welcome.coremetrics.com
    • Log in using your Client ID, username, and password. 
    • Starting V7, Feature Pack 3. We can also view reports directly from Management Center using links in the Catalogs, Marketing and Promotions tool.
    There are several tags for CoreMetrics, one example is pageView and most commonly used is cm

    Include the tag library in the pages
    <%@ taglib uri="http://commerce.ibm.com/coremetrics"  prefix="cm" %>

    PageView Tag: Most commonly used tag to track pages.

        <flow:ifEnabled feature="Analytics">
            <c:choose>
                <c:when test="${isCSR}">
                    <cm:pageview pagename="${storeCountryCode}:SEARCH PAGE" extraparms="YES" />
                </c:when>
                <c:otherwise>
                    <cm:pageview pagename="${storeCountryCode}:
    SEARCH PAGE" extraparms="NO" />
                </c:otherwise>
            </c:choose>
        </flow:ifEnabled>


    Conversion tag: For Ajax calls

    <cm:conversion eventId="${WCParam.eventId}" category="WISHLIST" actionType="2" points="10" returnAsJSON="true"/>

    campurl Tag: Mostly for static pages

                                  <cm:campurl espotData="${marketingSpotDatas}" id="clickInfoCommand" url="${clickInfoURLForAnalytics}" 

    References: More tags
    http://pic.dhe.ibm.com/infocenter/wchelp/v7r0m0/topic/com.ibm.commerce.Coremetrics.doc/refs/rmttagsinstorejsps.htm
    Web 2.0 integration:
    http://pic.dhe.ibm.com/infocenter/wchelp/v7r0m0/topic/com.ibm.commerce.Coremetrics.doc/concepts/cmtweb20intro.htm



    7 comments:

    1. I think basic info about biconfig.xml needs to be added which is main configuration file for coremetrics.

      ReplyDelete
    2. Thank you Vivek, updated biConfig.xml for coremetrics configuration.

      ReplyDelete
    3. Me parece un artículo súper interesante, además de estar super bien redactado y quedarme todo super claro.
      Gracias

      ReplyDelete
    4. Me parece un artículo súper interesante, además de estar super bien redactado y quedarme todo super claro.
      Gracias

      ReplyDelete
    5. Me encanta el articulo, es super interesante y curioso, se lee genial con mucha fluidez. Estoy deseando leer más artículos vuestros, sois geniales.

      ReplyDelete
    6. Enhorabuena por el artículo, muy buena redacción, se nota claramente que le pones esfuerzo y ganas.

      ReplyDelete
    7. Muy buen post, gracias por compartir esta información, sin duda seguiré esperando a que subas más contenido.

      ReplyDelete