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.
No comments:
Post a Comment
If you have any doubts or questions, please let us know.