Configuring the IBM Digital Data Exchange integration
Before you begin
- Integrate your store with IBM Digital Analytics. The following steps use an integration with IBM Digital Analytics to demonstrate how to integrate WebSphere Commerce with DDX to relay data to an analytics provider.
Procedure
-
Go to the following directory, which contains the deployed biConfig.xml
file for your integration between WebSphere Commerce
and your analytics provider, such as IBM Digital
Analytics.
- WC_eardir/xml/config/bi
- WCDE_installdir\workspace\WC\xml\config\bi
-
Open the biConfig.xml file for editing.
This file includes the configuration settings for how WebSphere Commerce integrates with IBM Digital Analytics.
For more information about configuring the values for an analytics provider in this file, see Configuring the store to communicate with IBM Digital Analytics(biConfig.xml).
-
Update the analytics provider configuration for your site or stores to include the
"useDDX"
configuration option.When the value for this option is set to"true"
or is included with no value, the JavaScript output for all analytics tags is included in a JavaScript object and sent to DDX. Include the option in the<biprovider/>
element to set the configuration to be the default value for every store that is associated with that analytics provider. You can also override the setting for a store, by including the option with a different value in the<store/>
element configuration for a store.- All
stores
<biprovider name="coremetrics" enabled="true"> ... <options> <attribute name="useDDX" /> </options> ... </biprovider>
- Specific
stores
Where<store storeId="10101,10102,10103" biprovider="coremetrics" enabled="true"> ... <options> <attribute name="useDDX" value="true" /> </options> ... </store>
storeId
is the store ID value or list of store ID values. For example,"10101,10102,10103"
.
- All
stores
-
Update the
output
configuration for your site or stores to include thecmSetClientID
function in your JavaScript if the setting is not already configured. Set the appropriate values for the function as shown in the following example.
Where<output section="header"> <![CDATA[ ... <script type="text/javascript"> cmSetupNormalization("krypto-_-krypto"); cmSetClientID(Client_ID,Data_collection_method,Analytics_Provider_site,WebSphere_Commerce_server); </script> ]]> </output>
Client_ID
- The client ID that is provided by your analytics provider. For example,
"99999999"
. Data_collection_method
- The data collection method. Set one of the following values:
- true
- The data collection browser cookies are managed at the browser client, which is set in the domain that is specified as the WebSphere_Commerce_server value.
- false
- The data collection browser cookies are managed by your analytics provider, which is set in the domain that is specified as the Analytics_Provider_site value.
Analytics_Provider_site
- The domain name for your analytics site. For example,
"data.coremetrics.com"
. WebSphere_Commerce_server
- The domain name of your WebSphere Commerce server.
For example,
"thesite.com"
.
<output section="header"> <![CDATA[ ... <script type="text/javascript"> cmSetupNormalization("krypto-_-krypto"); cmSetClientID("99999999",true,"data.coremetrics.com","thesite.com"); </script> ]]> </output>
-
Save and close the file.
For an example of a complete biConfig.xml file and for more configuration settings that you can configure when you use IBM Digital Analytics as your analytics provider, see Sample biConfig.xml file for IBM Digital Analytics.
-
Add page type parameter values to the page view tags on your store pages to identify the
analytics data entries in the JavaScript object that is being sent to DDX.
Stores that are based on the WebSphere Commerce Aurora starter store already include page type (unique page identifier) values defined in
digitalData.pageInstanceID
. If your store is not based on this starter store, or you want to change the default page type values sent to DDX, include the page type values on your store pages.By default, all pages for stores that are based on the WebSphere Commerce Aurora starter store include a default configuration that associates the"wcs-standardpages"
value with the page view tag. Some pages also include other values. For example, the OrderItemDisplay.jsp Aurora starter store page includes the following page type parameter configuration:<cm:pageview pageType="wcs-cart"/>
Note: If the support for integrating with DDX is not enabled, the page type parameter and value is ignored.The page view tag collects information about store pages that a customer viewed. For more information about this tag, see Page view tag.
WebSphere Commerce defines the page type parameter value in
digitalData.pageInstanceID
. ThepageInstanceID
value is referenced when you are configuring page group rules in DDX to determine whether the tags that are assigned to that page group are deployed to a store page. In this way, tags can be logically grouped within DDX for deployment to types of pages that should receive those tags. For example, tags needed to collect page and product information from a shopping cart page are added to a DDX page group with a rule ofpageInstanceID = 'wcs-cart'
.
Results
- Using the page view tag with IBM Digital Analytics
- Using the order tag with IBM Digital Analytics
- Using the shopping cart tag with IBM Digital Analytics
- Using the product tag with IBM Digital Analytics
- Using the registration tag with IBM Digital Analytics
- Using the conversion event tag with IBM Digital Analytics
- Using the element tag with IBM Digital Analytics