trackSocialInteraction

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

Syntax

await FlutterPiwikPro.sharedInstance.trackSocialInteraction( interaction: '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:

await FlutterPiwikPro.sharedInstance.trackSocialInteraction( interaction: 'like', network: 'Facebook);

Did this page help you?