AdobeDataLayer Custom attribute issue with Dispatcher Facing URL | Community
Skip to main content
August 30, 2025
Solved

AdobeDataLayer Custom attribute issue with Dispatcher Facing URL

  • August 30, 2025
  • 1 reply
  • 429 views

Hello Team,

We are utilizing the out-of-the-box adobeDataLayer Object for analytics purposes. We have added some custom attributes to this object using the approach outlined below:

 

Sling Delegation Pattern:
This is a recommended approach for customizing data layer attributes for components.
  • Extend the com.adobe.cq.wcm.core.components.models.datalayer.ComponentData interface.
  • Override the get Data() function to include your custom variables within the returned ComponentData object.

 

Problem Statement: 

 

1) All custom attributes are correctly added to the adobeDataLayer object in the Publish environment.

 

2) However, when accessing the same page via the dispatcher URL, the adobeDataLayer only shows out-of-the-box attributes, and none of the custom attributes are present.

 

 

We have reviewed all logs in the dispatcher but found no indications of the issue. Is there a specific URL that is called with certain extensions that might be blocked at the dispatcher level? We have gone through multiple articles but could not find any details. Any help or pointers would be appreciated. Thank you.

 

 

 

 

 

Best answer by arunpatidar

Hi @arvindpa2 

If everything looks good on all the publish instances then end user will see the same. The reason for not seeing the correct content is due to caching at various level like dispatcher or CDN or browser.

 

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
September 1, 2025

Hi @arvindpa2 

If everything looks good on all the publish instances then end user will see the same. The reason for not seeing the correct content is due to caching at various level like dispatcher or CDN or browser.

 

Arun Patidar