We built a way to determine the performance of the pieces of content on any page of the website or app. You might be wondering how often a specific ad or a banner was displayed and viewed by your visitors on any of your pages and how often a visitor actually interacted with them. We call these two parts content impression and content interaction.
This feature is not only limited to ads or banners. You can use it for any kind of content. Once a page has loaded we log a content impression for each content block that is visible to the user. A content block consists of a content name (My Product 1), a content piece (« product1.jpg » or « Buy Product 1 now ») and a content target (http://landingpage.example.com). As soon as a visitor clicks on a content block a content interaction is logged allowing you to analyze the ratio of content impressions to content interactions. As soon as a visitor scrolls down the page and sees more ads/banners/blocks, we automatically log the impression for each block.
Viewing Content Tracking reports
Go to Matomo. In the menu click Behaviour and then Contents.
Content Name report
The list of all your Content names along with the metrics Impressions, Content Interactions and Interaction click rate (%).
Each Content Name can be clicked to view the list of Content pieces with this name:
This lets you see at a glance all the elements you may be measuring (banners, listings, thumbnails, etc.).
Content Piece report
The list of all your Content pieces along with the metrics Impressions, Content Interactions and Interaction click rate (%).
Each Content piece can be clicked to view the list of Content Names for this piece.
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:
To track all content blocks within a page.
To track only visible content blocks within a page.
Tracking Content with HTTP API
Use Content Tracking from any application or server, with the Tracking API. View the Content Tracking HTTP API here.
Requesting Content Tracking report data
You may use the Contents API to request all data for Contents.