Issue
- How can we test and confirm that the documentDownloaded and DocumentPreviewed events are getting tracked by Analytics Cloud?
Environment
- Analytics Cloud
Resolution
- After connecting Liferay DXP to Analytics Cloud, the following instructions can be executed to test documentDownloaded and DocumentPreviewed events:
-
- Upload a document to Documents and Media.
- Add a Documents and Media widget to a page displaying the uploaded document.
- Open the browser console > Network tab and filter by Fetch/XHR.
- Refresh the page and then click into the document.
-
Look for a request starting with
osbasahpublisher
and observe that the documentPreviewed event has been triggered(see below for screen shot). - Select the document through the checkbox > click on the Info button/icon > scroll down and click on the Download button.
-
Look for a request starting with
osbasahpublisher
and observe that the documentDownloaded event has been triggered. - From your Analytics workspace, navigate to Assets > Documents and Media and filter for "last 24 hours". Notice that the document now appears on the list.
Additional Information
- For more information on Documents and Media metrics, please visit Liferay Analytics Cloud article for Assets: Documents and Media.
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In