What is Asset Insights?
Asset Insights feature in AEM is an armour to the modern day marketers which enables them to keep an eye on asset’s effectiveness and impact on their business across the IOT. It helps to track down usage statistics of the images that are used in third-party websites, Social channels, marketing campaigns, and Adobe’s creative solutions including AEM sites.
Adobe Analytics is an integral part of this solution, so the license has to be purchased separately if customer does not have an existing account. AEM is then integrated with Adobe Analytics which captures user activity details on the assets, such as the number of times an image is rated, clicked, and impressions (number of times an image is loaded on the website). Then, based on these statistics AEM assigns scores to images. The scores and performance statistics are used to select popular images for inclusion in catalogs, marketing campaigns, and so on. We can even formulate archival and license renewal policies based on these statistics.
Architecture
The following diagram illustrates the solution design using Adobe Launch:
Implementation
3 products i.e. Analytics, Launch and AEM has to configured along with installation of core components. Skip the piece which is already present in the existing implementation.
Analytics
Launch
- Login to Launch : https://activation.adobe.com
- Create new web property
- Enable Adobe Analytics extension and attach the report suite created
- Go to Rules – Create New Rule
Events – Library Loaded
Actions- Custom Code – HTML
<script type="text/javascript" src="http://localhost:4503/etc.clientlibs/dam/clientlibs/assetinsights/pagetracker.js"></script> - Add one more rule:
Events- Dom Ready
Actions- Custom Code – Java script
Add tracker javascript- dom-ready-tracker.js
Add one more action - image-click.js - Publish all changes
- Integrate Launch with AEM- https://console.adobe.io/home
- Create Integration -> Access an API -> Experience Platform Launch API
- Follow article here for all steps- https://docs.adobe.com/content/help/en/experience-manager-learn/assets/analytics/asset-insights-launch-tutorial-setup.html
AEM
- Go to Tools -> Assets -> Insights Configuration
Username/ Shared secret is found at Analytics > Admin > Company Settings > Web Services - Check Embed options
- Go to Tools -> Cloud Services -> Legacy -> Analytics -> performance
- If Asset Id not created- Use JMX Mbean to fix it: http://localhost:4502/system/console/jmx/com.day.cq.dam%3Atype%3DAssociate+Asset+IDs
- Launch (or DTM) Integration: Tools -> Cloud Services -> Adobe Launch Configurations
Validate Header and Footer code that of Embed from Launch - it should be same.
- Go to /content/we-retail.html -> page properties and setup cloud services to use Launch
- Install latest Core components- https://github.com/adobe/aem-core-wcm-components/releases
- Install sample image component supporting insights tracking:
https://docs.adobe.com/content/help/en/experience-manager-learn/assets/analytics/assets/aem-assets-insights-sample.zip - Use sample component on an AEM page to enable asset tracking.
Data from Adobe Analytics server is synced with AEM by default. If we want to change the schedule, it can be done from this OSGi configuration:
No comments:
Post a Comment