If this content did not answer your questions, try searching or contacting our support team for further assistance.
acquia-dam-sdk / Components / AnalyticsApi
new AnalyticsApi(
client
):AnalyticsApi
Create an instance of the AnalyticsApi class.
The Analytics endpoints provide information about asset usage from the Insights application. The API will return download, view, and share details for a single asset.
Events may take up to 24 hours before appearing in analytics API results.
Note: Three years of analytics data is available, starting from January 1, 2021 onward. The default date_range
filter is from this date until today.
Provide an instance of ApiClient.
listAssetDownloads(
params
):Promise
<ListAssetDownloadsResponse
>
Retrieve a list of Asset Download events
Information about the request
Promise
<ListAssetDownloadsResponse
>
Promise containing the Download Asset events that meet the request criteria
https://widenv2.docs.apiary.io/#reference/analytics/analytics/list-asset-downloads
listAssetShares(
params
):Promise
<ListAssetSharesResponse
>
Retrieve a list of Asset Share events
Information about the request
Promise
<ListAssetSharesResponse
>
Promise containing the Share Asset events that meet the request criteria
https://widenv2.docs.apiary.io/#reference/analytics/analytics/list-asset-shares
listAssetViews(
params
):Promise
<ListAssetViewsResponse
>
Retrieve a list of View Asset events
Information about the request
Promise
<ListAssetViewsResponse
>
Promise containing the View Asset events that meet the request criteria
https://widenv2.docs.apiary.io/#reference/analytics/analytics/list-asset-views