Mark each content block with a data-track-content HTML attribute or piwikTrackContent CSS class. Then activate content tracking by calling one of those two methods:

_paq.push(['trackAllContentImpressions']);

To track all content blocks within a page.

_paq.push(['trackVisibleContentImpressions']);

To track only visible content blocks within a page.

For a list of all available methods have a look at the JavaScript Tracker reference. Developers should have a look at the in-depth guide on how to track content.

Tracking Content with HTTP API

Use Content Tracking from any application or server, with the Tracking API. View the Content Tracking HTTP API here.