SAP Web Analytics: Analytics on your Fiori Launchapad with new plugin code
Every Site Owner is interested in seeing the website usage, performance, across which regions, browsers, operating systems its being widely used. Web Analytics is one such solution which has integration with S4 On premise systems and site owner can achieve the analytics through fiori launchpad.
SAP Web Analytics is a Software-as-a-service (SaaS) on the Business Technology Platform(BTP). The application lets you collect, report, and analyse your website usage data that helps you to identify meaningful patterns from various digital channels. The application can offer insights on how well your websites perform in key channels. These insights can lead you to implement critical improvements that help you optimize web usage to measure organisational goals, drive strategy, and improve the overall user experience of your web applications.
Purpose and Solution
Many customers already using “Web Analytics” are facing issue with the page title and also some of the FLP apps not being tracked which is because ui5 “routeMatched” is not triggered for some of the FLP apps leading to incorrect page title of apps and thus incorrect report data for some apps.
UI5 supports routeMatched Event from 1.65 version and above. This does a similar thing as hashChange but for some of the application this event is not triggered as its application construction dependent. This is the drawback for SWA as for some of the applications load event is not triggered which somehow differentiates and lead us to data incorrectness.
This has been solved with latest ui5 releases from 1.92.0 version onwards and also by changing the custom plugin code if users are using custom code and not standard ui5 code with the new one as explained in the below sections.
appOpened is a UI5 event which should be subscribed explicitly and on click of any app this appOpened event is triggered which gives insights like type of application, text of app, url does it rendered on new window and so on.
Custom Plugin Code
After you deploy this code, all the FLP apps would be tracked correctly with right page title.
After going this blog and implementing the code for your application, the FLP apps will be tracked appropriately and analyse different kind of analytics reports for your FLP applications.