Marketing query parameters missing in backend requests in AEMaaCS
In AEM as a Cloud Service, marketing query parameters such as utm_*, cid, and bid are not available to backend servlets or services. The CDN removes these parameters before requests reach the dispatcher or AEM, which impacts server-side logic that relies on them for business processing. To fix this issue, update the CDN configuration to retain marketing query parameters.
Description description
Environment
- Product: Adobe Experience Manager as a Cloud Service – Sites
- Scope: Environments created in October 2023 or later (default behavior)
Issue/Symptoms
- Marketing and campaign-related query parameters such as
utm_source,cid, andbidappear in browser requests. - These query parameters do not reach backend servlets or services.
- Server-side logic cannot access the marketing query parameter values.
Resolution resolution
To fix this issue, follow these steps:
- Open the
cdn.yamlconfiguration file for the affected environment. - Locate the section related to
requestTransformations. - Set the
removeMarketingParamsflag tofalseunderrequestTransformations. - Save and commit the updated configuration to your repository.
- Deploy the updated
cdn.yamlfile by using the environment’s configuration pipeline. - After deployment completes, confirm that backend servlets and services receive the marketing query parameters.
Notes:
- This behavior applies by default only to environments created in October 2023 or later. Older environments require explicit enablement.
- Client-side scripts running in browsers continue to access marketing query parameters because removal occurs only at the CDN level.
- Adobe recommends handling marketing parameters on the client side or passing them through the request body or custom headers when backend processing requires them.
- No global enforcement date exists for environments created before October 2023. Enable this behavior manually when needed.
Related reading
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f