AEM integration with Adobe Analytics - not working/tracking in Publisher
Hi,
We have integrated AEM with Adobe Analytics. The integration is working in author instance and we are able to capture the tracking information when we access a page(say /content/en/sample) using Adobe DigitalPulse Debugger tool.
The configuration and pages are published/installed in publisher instance successfully.
But the same integration is not working in publisher instance and tracking is not happening.
When we access the page enabled for tracking in publisher, we can see the below required analytics scripts loaded.
<script type="text/javascript" src="/etc/clientlibs/foundation/sitecatalyst/sitecatalyst.min.js"></script>
<script type="text/javascript" src="/etc/clientlibs/foundation/sitecatalyst/util.min.js"></script>
<script type="text/javascript" src="/content/sample/dfssdsdsds991232cdfd9991/pdf/_jcr_content/analytics.sitecatalyst.js"></script>
<script type="text/javascript" src="/etc/clientlibs/foundation/sitecatalyst/plugins.min.js"></script>
And below the above script tags, we can see inline analytics script which maps cq variables to site catalyst variables.
CQ_Analytics.Sitecatalyst.updateEvars = function(options) {
this.frameworkMappings = [];
// code for mapping cq variables to sc variables
for (var i=0; i<this.frameworkMappings.length; i++){
var m = this.frameworkMappings[i];
if (!options || options.compatibility || (options.componentPath == m.resourceType)) {
CQ_Analytics.Sitecatalyst.setEvar(m);
}
}
}
But tracking is not happening. In Browser console we can see below JAVASCRIPT errors
Uncaught ReferenceError: CQ_Analytics is not defined
Please let us know, any other specific configuration is required in Publisher instance.
Regards
Sreeni