Hi Andrea!
I’m sorry for replying so late, I completely forgot about this.
Anyways, just tested and you were right: even with the latest version of the plugin attachments won’t be tracked. For it to work, the plugin needs a couple of modifications:
- Go to Plugins > Editor and select WordPress Popular Posts from the dropdown at the right.
- Find:
AND p.post_status = 'publish'
… and replace every one of them (there are four text strings like that) with:
AND p.post_status IN('publish', 'inherit')
- Find:
(is_single() || is_page())
… and replace it with:
(is_single() || is_page() || is_attachment())
- Hit the Update file button to save changes.
This will make WPP track attachments as well. Make sure you add the attachment
post type to the Stats dashboard and to your widget(s), too.
Keep in mind that this modification will be lost the next time WPP gets an update, so make sure you bookmark this topic somewhere for future reference.