trackSocialInteraction

The trackSocialInteraction() method tracks likes, shares and comments on social media in 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 here the interaction happened. Example: Facebook, Instagram, YouTube.

Examples

To track a Facebook like in your app:

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