sendSocialInteractionWithAction

The sendSocialInteractionWithAction() method records likes, shares and comments on social media on your app.

Syntax

[[PiwikTracker sharedInstance] sendSocialInteractionWithAction:@"interaction" network:@"network"];

Parameters

interaction (string, required)

The interaction type. Example: like, share, comment.

network (string, required)

The social media for which the interaction happened. Example: Facebook, Instagram, YouTube.

Examples

To track a Facebook like on your app:

[[PiwikTracker sharedInstance] sendSocialInteractionWithAction:@"like" network:@"Facebook"];