sendContentImpressionWithName

The sendContentImpressionWithName() method tracks the impressions of a content block and passes data about the content name, piece and target.

Syntax

[[PiwikTracker sharedInstance] sendContentImpressionWithName:@"contentName" 
                                                       piece:@"contentPiece" 
                                                      target:@"contentTarget"];

Parameters

contentName (string, required)

The name of the tracked content block.

contentPiece (string, required)

The piece of the tracked content block. Example: a creative, banner or video.

contentTarget (string, required)

The target of the tracked content block. Example: a link in the content block.

Examples

To track the impression of a content block on your mobile app:

[[PiwikTracker sharedInstance] 
    sendContentImpressionWithName:@"gravel bikes collection" 
                            piece:@"banner" 
                           target:@"https://example.com/bikes/"];

Notes

  • To track content impressions, this option needs to be turned on: Menu > Tag Manager > Tags > Piwik PRO (tracking code) > Data collection > Interactions with popups and content (on). Read more
  • Tracked impressions will be visible in Analytics > Reports > Content performance.

Related methods