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.
https://docs.acquia.com/acquia-dam/api-v2#tag/Analytics
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://docs.acquia.com/acquia-dam/api-v2#tag/Analytics/operation/listAssetDownloads
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://docs.acquia.com/acquia-dam/api-v2#tag/Analytics/operation/listAssetShares
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://docs.acquia.com/acquia-dam/api-v2#tag/Analytics/operation/listAssetViews