Track clicks to buttons, tabs and anchors and other HTML elements in IBM Digital Analytics aka Coremetrics.

The Element tag populates values in the Element Categories and Top Viewed Elements reports. The Element tag and its associated reports provide organizations with the flexibility to track interaction with various intra-page elements and how these elements.

To document the clicks to elements on a page such as buttons, tabs and links, we need to use the element tag in conjunction using a javascript onclick event.

Coremetrics Element tag example

The following example shows an element tag which sends 2 parameters, an element ID (Company FAQ Page) and an element category (Linked In), where the category element is not related to the CDF categories.

<a href=”/online/wcm/connect/productSpecs” title=”Download product specifications sheet” onclick=”cmCreateElementTag(‘Company FAQ Page’, ‘Linked In’); return true;”>Linked In</a>

  • Function Spec: cmCreateElementTag(ElementID, ElementCategory, AttributeString);

blogCookbook03

Coremetrics Element tag testing example

blogCookbook04

Coremetrics Element tag reporting example

blogCookbook05

Track pages, sessions, visitors, browsers and hosts on my site using IBM Digital Analytics aka Coremetrics.

Ensure that a pageview tag is on every page of your site and includes values for page Id and category. Ensure every page title is unique and content category is setup in the CDF.

Coremetrics Pageview tag code

<script language=”JavaScript1.1″ type=”text/JavaScript”>

cmCreatePageviewTag(“Home”, “SiteBrowsing”, null, null);

</script>

Coremetrics Testing showing tags generated

blogCookbook01

Coremetrics Reporting Example

blogCookbook02