3

In Sitecore, we can set a goal when a user downloads a media item.
Is it possible OOB to do the same in Content Hub?

There is no Sitecore integration for this project, just the Content Hub.

This is to capture analytics data for marketing, say how often an image has been viewed/downloaded.

1 Answer 1

5

There are some reporting events that get initiated automatically in the Content Hub. For example, you will be interested in an asset.download.completed event. Whenever an asset is downloaded, a log entry with the event_type asset.download.completed will be recorded in reporting index.

The full list of reporting events see here.

Then you can view the triggered events in the Reports section. Some tweaks of the reporting filters & dimensions might be required before you will see the expected result.

For external integration, you can query the audit indexes through Audit REST API to fetch the captured events as follows:

GET /api/audit/business/query{/entityId}{?logType*,raw,from,to,fullText,skip,take,sort,order}
2
  • If the user is downloading the asset from a website and not from Content Hub, can we still achieve this.
    – sukesh
    Sep 12, 2022 at 6:48
  • 1
    Reporting events take place in Sitecore Content Hub only and are captured in the reporting index. Audit API provides only GET endpoints, so you can't write yourself to the reporting index on demand. Suggest to consider GTM for the custom event tracking on a website decoupled from Sitecore or Sitecore Content Hub. Sep 12, 2022 at 19:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.