SAP Knowledge Base Article - Preview

3059934 - Clickstream events are sent from Commerce to CDS even when browsing websites for which Profile Tag is not configured

Symptom

In your setup, you have a catalog version having Sub Catalogs, e.g. an Electronics Content Catalog having a US and EU version.

Each of these catalogs are associated with an independent website, e.g. electronics, electronics-us and electronics-eu.

A Profile Tag configuration is created in CDS and associated to a single base site only in commerce, e.g. electronics. The websites having for content the sub catalogs (US & EU) do not have a corresponding Profile Tag configuration:

When using the browser inspector on the configured site, e.g. electronics, you will find the content of the ProfileTagScriptComponent as highlighted below.

Problem

The problem is observed when the above script can also be seen for all websites, even the ones that are not associated with a ProfileTag configuration in CDS.

For example, the ProfileTagScriptComponent is rendered for the electronics-us and electronics-eu sites despite no profile tag configured for these websites. It results in clickstream events being sent to CDS even for these websites.

Expectation

The expectation is that the ProfileTagScriptComponent will not be present on the sites corresponding to the sub catalogs, e.g. electronics-us and electronics-eu, and that clickstream events are thus not sent to CDS for these websites.

Additionally, in normal circumstances one would expect to see the following statement in the tomcat logs of the Commerce application, indicating that no ProfileTagUrl was found for the given base site.

{"thread":"hybrisHTTP32","level":"WARN","loggerName":"de.hybris.platform.site.impl.DefaultBaseSiteConsumedDestinationLocatorStrategy","message":"Failed to find consumed destination for the given id [ProfileTagUrl] and the current base site [electronics-eu]","endOfBatch":false,"loggerFqcn":"org.apache.logging.slf4j.Log4jLogger","instant":{"epochSecond":1616180489,"nanoOfSecond":43746000},"contextMap":{"RemoteAddr":"[199.87.112.25] ","Tenant":""},"threadId":142,"threadPriority":5,"origin":"PLATFORM"}


Read more...

Environment

SAP Commerce Cloud integrated with Context-Driven Services.

Product

SAP Commerce all versions

Keywords

cds, context driven services, click stream, base site, event, hybris, site, multi, country, language, catalogversion, subcatalog, TBD , KBA , CEC-CDS , SAP Commerce Cloud, context-driven services & ISS , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.