Integrate a store with multiple analytics providers
WebSphere Commerce provides you with the option to use multiple analytics providers for one store, allowing for greater data collection and accuracy of shopper activity. As a result, we can compare and analyze multiple sets of data from different analytics providers.In your biConfig.xml configuration file, we can specify multiple analytics providers. This means that we can include analytics tags from multiple analytics providers in the store pages. When you specify multiple analytics providers, we must also include the additional analytics provider in the store JSP files, unless you set a default analytics provider.
Setting a default analytics provider
In the biConfig.xml configuration file, we can define a default analytics provider. This configuration can save you time if the store pages already contain a set of analytics tags.For example, if your pages are already tagged with analytics tags for , we can specifyIBM Digital Analytics as your default analytics provider. Then, you do not need to go into each tag for IBM Digital Analytics in the store JSP files and add this parameter: biprovider="coremetrics". However, add the biprovider parameter to each tag in the store JSP files for the additional analytics providers to distinguish those tags from your default provider tags. The following steps outline the step-by-step process used to specify an analytics provider:
- Use the provider specified in the analytics tag.
- If no provider is explicitly specified in the analytics tag:
- Use the default provider set in the biConfig.xml configuration file for the store.
- If there is no default provider configured and only one provider is configured in the biConfig.xml configuration file, use that provider.
- If there is no default provider set, and no provider is specified in the biConfig.xml configuration file, use "coremetrics".
To integrate a store with multiple analytics providers, including setting up a default analytics provider, complete these steps:
- Adding multiple analytics providers to the biConfig.xml file
Add multiple analytics providers to the store by updating the <biproviders> element in your biConfig.xml configuration file. Indicate the storeId and the analytics provider you would like to use for that store. To save time, we can also indicate a default analytics provider by updating the <defaults> element.- Specifying multiple analytics providers in store page analytics tags
After you update the <biproviders> element in your biConfig.xml configuration file, we must specify the analytics provider in the store page analytics tags. This distinguishes those tags from your default analytics provider tags that are indicated in your biConfig.xml configuration file.