Page Attachments Reports

Julian C. asked on October 18, 2018 19:04

Is there an easy way to view page attachments reports? I just need to find how many times a page attachment has been downloaded. There are no attachments (/getattachment/) showing under Reporting and under Web Analytics. Am I missing something? Maybe there is an example on how to create a custom report for all attachments using this URL format: http://mysite.com/getattachment/MyDocument.pdf

Correct Answer

Julian C. answered on October 22, 2018 23:35

Since you cannot use Kentico to track page attachments, I found a way to track them using Google Tag Manager: http://kenticode.com/view-page-attachments-reports/

0 votesVote for this answer Unmark Correct answer

Recent Answers


Eric Dugre answered on October 18, 2018 20:58

Kentico only supports the tracking of file downloads for the CMS.File page type. See https://docs.kentico.com/k11/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/configuring-activities/enabling-activity-tracking:

"The system can track file downloads as Page visit activities for files stored as pages of the CMS.File type in the content tree of a website. The Track file downloads (cms.file) for these extensions setting in the General section specifies which types of files the tracking includes."

Once enabled, there is a pre-built report named File downloads - Daily report (and other variants) where you can view the tracked analytics, but it is not retroactive.

0 votesVote for this answer Mark as a Correct answer

Julian C. answered on October 18, 2018 22:20

Eric, thanks for replying. All the recommended settings were in place already. But none of the page attachments (/getattachment/) are displaying in the reports.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on October 19, 2018 09:45

That is because /getattachment/ is a call to a virtual path. And handled by Kentico internally. If you want to have more influence on files (also in case of security) you should use the CMS.File page type and give it a physical place in your content tree.

0 votesVote for this answer Mark as a Correct answer

Julian C. answered on October 19, 2018 16:13

So, that means there is no way to track page attachments (/getattachment/) on Kentico, correct?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.