1. Help Center
  2. Analyze
  3. Data Export and Integration

IBM Digital Analytics

Note: IBM Digital Analytics was formerly known as Coremetrics.

Use WATTS to pass SiteSpect data to IBM Digital Analytics with the following macros:

Macro Data Type Description
__SS_TCID__ Integer Campaign ID. The TestCampaign_ID listed in the URL when you are editing a Campaign or the ID visible in the tooltip when you hover over the Campaign on the Campaign List.
__SS_VGID__ Integer Variation Group ID. The VariationGroup_ID listed in Summary View when you are editing a Campaign in the New Builder or the ID visible in the tooltip when you hover over the Variation Group Edit button in the Old Builder.

Implement Using an Element Tag Event

 

When you use the cmCreateElementTag function, the results are separate element events for each Campaign for the visitor. Create a Site Variation and use the following for the Search Text and Replacement Text fields.

Search Text:

(<!-- END DIGITAL ANALYTICS SUPPORT -->)

Replacement Text:

  <script>
__SS_LISTCAMPAIGNCOUNTED{cmCreateElementTag("__SS_TCID__:__SS_VGID__");}{ }__
</script>
$1

Example Result:

  <script>
cmCreateElementTag("SS298:1784");
cmCreateElementTag("SS322:3119");
  </script>
<!-- END DIGITAL ANALYTICS SUPPORT -->

Implement by Appending to the Existing Tag Events

 

You can append the WATTS data to the attributes or extraFields parameters of existing Digital Analytics tag events such as cmCreatePageviewTag and cmCreateTechPropsTag function calls.

Digital Analytics accepts the extra data in most functions as the last parameter. Sometimes this parameter is named "attributes" (cmCreateTechPropsTag) and sometimes "extraFields" (cmCreatePageviewTag). The number of parameters for each function varies. The JavaScript in the Replacement Text below replaces calls to the existing Digital Analytics "create tag" functions with a new invocation that inserts the WATTS data delimited by "-_-" (separator commonly used in Digital Analytics lists) into the last parameter for each function call.

Create a Site Variation and use the following for the Search Text and Replacement Text fields.

Contact the SiteSpect Help Desk at helpdesk@sitespect.com or +1-844-859-1900 for more information.

Attributes in cmCreateTechPropsTag

Search Text:

  cmCreateTechPropsTag\(([^)]*)

Replacement Text:

  function (window) {
// Pad the number of parameters to 3 with nulls
var a = [$1].concat(null, null, null).slice(0, 3);
// Append WATTS data to the attributes parameter in standard Digital Analytics
// cmCreateTechPropsTag(pageID, categoryID, attributes)
a[2] = (a[2] ? a[2] + "-_-" : "") +
"__SS_LISTCAMPAIGNCOUNTED{SS__SS_TCID__:__SS_VGID__}{-_-}__";
cmCreateTechPropsTag.apply(window, a);
  }(this));

Example Result:

  (function (window) {
// Pad the number of parameters to 3 with nulls
var a = ['Homepage A','HOME_PAGE'].concat(null, null, null).slice(0, 3);
// Append WATTS data to the attributes parameter
// cmCreateTechPropsTag(pageID, categoryID, attributes)
a[2] = (a[2] ? a[2] + "-_-" : "") + "SS298:1784-_-SS322:3119";
cmCreateTechPropsTag.apply(window, a);
}(this));

ExtraFields in cmCreatePageviewTag

Search Text:

  cmCreatePageviewTag\(([^)]*)

Replacement Text:

  (function (window) {
// Pad the number of parameters to 6 with nulls
var a = [$1].concat(null, null, null, null, null, null).slice(0, 6);
// Append WATTS data to the extraFields parameter in standard Digital Analytics
// cmCreatePageviewTag(pageID, categoryID, searchString, searchResults, attributes, extraFields)
a[5] = (a[5] ? a[5] + "-_-" : "") +
"__SS_LISTCAMPAIGNCOUNTED{SS__SS_TCID__:__SS_VGID__}{-_-}__";
cmCreateTechPropsTag.apply(window, a);
}(this));

Example Result:

  (function (window) {
// Pad the number of parameters to 6 with nulls
var a = [document.title, null, null, null].concat(null, null, null, null, null, null).slice(0, 6);
// Append WATTS data to the extraFields parameter in standard Digital Analytics
// cmCreatePageviewTag(pageID, categoryID, searchString, searchResults, attributes, extraFields)
a[5] = (a[5] ? a[5] + "-_-" : "") + "SS298:1784-_-SS322:3119";
cmCreatePageViewTag.apply(window, a);
}(this));