Expand my Community achievements bar.

SOLVED

CQ5.5 Analytics framework.getMapping(key) vs. cmp.getInherited(key, null)

Avatar

Level 2

Within the sitcatalyst.js under /foundation/vault/web/apps/cq/analytics/components/sitecatalyst/

if(framework != null) { for (String name : framework.getAllComponents().keySet()) { FrameworkComponent cmp = framework.getAllComponents().get(name); for (String key : cmp.inheritedKeySet()) { if(key.indexOf(":") < 0) { String value = framework.getMapping(key); if (value == null) continue; if (value.startsWith("eventdata.events.")) { value = key; key = framework.getMapping(key); } %> mapping.push({scVar:"<%= key %>",cqVar:"<%= value %>",resourceType:"<%= name %>"});<% } } } }

When retrieving the value for key, why does it use 

framework.getMapping(key) 

instead of 

cmp.getInherited(key, null)
1 Accepted Solution

Avatar

Correct answer by
Level 10

AFAIK It is fixed request for hotfix NPR-2789

View solution in original post

3 Replies

Avatar

Level 10

That could be a bug. I will double check with the Eng team to make sure. Good question. 

Avatar

Level 6

Have you heard anything back from the Eng team?

Avatar

Correct answer by
Level 10

AFAIK It is fixed request for hotfix NPR-2789