May 13, 2020
Estimated Post Reading Time ~

AEM integration with Adobe Analytics

We have integrated AEM with Analytics for multiple projects. Integration with Analytics is a choice of the client whether they want to add development team to update all the components with Analytics data attributes or only Adobe Analytics team provides a JS that manages all the analytics by itself.

Both of these approaches has its own benefits.

If Analytics is maintained by Adobe Analytics JS file – it does saves some of the development efforts but the issue with this approach is that it analyzes the DOM structure of each page at the time of content load at the client-side and increases the page load time i.e. makes the pages slow.

To address the issue, we integrated AEM with Analytics where we added data attributes that the Analytics team wanted to have on different DOM element in the site components.

For adding Analytics we updated all the existing components with required data-attributes. We also added the Analytics Library JS file in the header section based on the AEM environment i.e. There are 2 different Analytics library files provide by Adobe Analytics for Stage environment and Production environment so we made these files configurable base on AEM environment run modes. We used stage analytics library on Dev, QA, and Stage environments and used the prod Analytics Library for the Production environment.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.